Fedora
NetworkManager-l2tp: local privilege escalation via ipsec.conf injection
A flaw was found in NetworkManager-l2tp. The plugin writes attacker-controlled VPN connection properties (vpn.data and vpn.secrets values) unescaped into a generated ipsec.conf file that pluto loads as root. A local unprivileged user can create and activate their own L2TP VPN profile containing a newline-injected leftupdown directive; pluto executes that command as root when the IKE security association is established, resulting in local privilege escalation. This is the same bug class as CVE-2018-10900 (NetworkManager-vpnc).
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.0.0, < 1.0.16
- >= 1.2.0, < 1.2.22
- >= 1.8.0, < 1.8.10
- >= 1.20.0, < 1.20.24
- >= 1.52.0, < 1.52.4
Fixed in 1.0.16, 1.2.22, 1.8.10, 1.20.24, 1.52.4
- >= 1.52.0, < 1.52.4
Fixed in 1.52.4
- >= 1.20.0, < 1.20.24
Fixed in 1.20.24
Mitigation
Upgrade the affected product to 1.0.16 or 1.2.22 or 1.8.10 or 1.20.24 or 1.52.4 or later.
Upgrade Fedora to 1.52.4 or later.
Upgrade Extra Packages for Enterprise Linux (EPEL) to 1.20.24 or later.
References
- Patch github.com/nm-l2tp/NetworkManager-l2tp/commit/…
- Patch github.com/nm-l2tp/NetworkManager-l2tp/commit/…
- Release notes github.com/nm-l2tp/NetworkManager-l2tp/release…
1 more
- Vendor advisory bodhi.fedoraproject.org/updates?packages=NetworkManager-l2t…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.