CVE-2024-9050: Networkmanager-libreswan: local privilege escalation via leftupdown
A flaw was found in the libreswan client plugin for NetworkManager (NetkworkManager-libreswan), where it fails to properly sanitize the VPN configuration from the local unprivileged user. In this configuration, composed by a key-value format, the plugin fails to escape special characters, leading the application to interpret values as keys. One of the most critical parameters that could be abused by a malicious user is the `leftupdown`key. This key takes an executable command as a value and is used to specify what executes as a callback in NetworkManager-libreswan to retrieve configuration settings back to NetworkManager. As NetworkManager uses Polkit to allow an unprivileged user to control the system's network configuration, a malicious actor could achieve local privilege escalation and potential code execution as root in the targeted machine by creating a malicious configuration.
Security readout for executives and security teams
Plain-English summary
CVE-2024-9050 lets a local, low-privileged user on affected Red Hat systems potentially gain root privileges through NetworkManager-libreswan VPN configuration handling. This is not a remote internet-facing bug by itself, but it can turn ordinary local access into full system compromise.
Executive priority
Treat as a high-priority Linux endpoint and server hardening issue. It is most urgent where many users share systems or where compromised user accounts are plausible. Patch through normal emergency or accelerated Linux update processes.
Technical view
NetworkManager-libreswan fails to sanitize key-value VPN configuration supplied by an unprivileged local user. Special characters can cause values to be interpreted as keys, including the leftupdown parameter, which can define a callback executable. Red Hat rates it High with CVSS 7.8, requiring local access and low privileges.
Likely exposure
Exposure is most likely on Red Hat Enterprise Linux systems with NetworkManager-libreswan installed, especially listed RHEL 7 ELS/AUS, RHEL 8 variants, RHEL 9 variants, and RHEL 10. Systems without the package or without local untrusted users are less exposed.
Exploitation context
The source bundle does not show CISA KEV listing or confirmed active exploitation. Exploitation requires local low-privileged access and abuse of NetworkManager’s Polkit-enabled ability for users to control network configuration.
Researcher notes
The key issue is configuration injection in NetworkManager-libreswan parsing, enabling leftupdown manipulation and possible root execution. Public sources include Red Hat advisories, the Red Hat CVE page, Bugzilla, upstream commit, and oss-security discussion. Evidence is sufficient for affected Red Hat packages, but exploitation-in-the-wild is not shown.
Mitigation direction
Apply the relevant Red Hat security advisory update for your RHEL release.
Prioritize multi-user workstations, VPN endpoints, jump hosts, and shared Linux servers.
If updates are unavailable, check Red Hat guidance for supported compensating controls.
Review whether untrusted local users can configure NetworkManager VPN connections.
Validation and detection
Inventory systems for the NetworkManager-libreswan package.
Map installed package versions to the affected Red Hat product list.
Confirm the applicable RHSA advisory has been applied.
Verify local user and Polkit permissions for NetworkManager VPN configuration.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-94: Code execution behavior lookup
Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The CVE wording references privilege impact, so privilege escalation and authorization behavior review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
5Timeline events
2ADP providers
16Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-94 · source CWE mapping
Improper Control of Generation of Code ('Code Injection')
Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.