CVE-2024-9050
Networkmanager-libreswan: local privilege escalation via leftupdown
- Published
- Updated
- Reserved
- Assigned by
- redhat
Description
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.
Timeline
ID reserved
By redhat
- 32 days later
· 32 days later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Deferred | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.46% · top 60% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Weakness
- CWE-94: Improper Control of Generation of Code (opens in a new tab)All about CWE-94 and its CVEs
- CWE-noinfo Not enough information
Affected products
NetworkManager-libreswan
- affected < 1.2.24
Red Hat · Red Hat Enterprise Linux 7.7 Advanced Update Support
- unaffected 0:1.2.4-4.el7_7 – < *
Red Hat · Red Hat Enterprise Linux 7 Extended Lifecycle Support
- unaffected 0:1.2.4-4.el7_9 – < *
Red Hat · Red Hat Enterprise Linux 8
- unaffected 0:1.2.10-7.el8_10 – < *
Red Hat · Red Hat Enterprise Linux 8.2 Advanced Update Support
- unaffected 0:1.2.10-6.el8_2 – < *
Red Hat · Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- unaffected 0:1.2.10-6.el8_4 – < *
Red Hat · Red Hat Enterprise Linux 8.4 Telecommunications Update Service
- unaffected 0:1.2.10-6.el8_4 – < *
Red Hat · Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions
- unaffected 0:1.2.10-6.el8_4 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- unaffected 0:1.2.10-6.el8_6 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Telecommunications Update Service
- unaffected 0:1.2.10-6.el8_6 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
- unaffected 0:1.2.10-6.el8_6 – < *
Red Hat · Red Hat Enterprise Linux 8.8 Extended Update Support
- unaffected 0:1.2.10-6.el8_8 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:1.2.22-4.el9_5 – < *
Red Hat · Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
- unaffected 0:1.2.14-3.el9_0 – < *
Red Hat · Red Hat Enterprise Linux 9.2 Extended Update Support
- unaffected 0:1.2.14-6.el9_2 – < *
Red Hat · Red Hat Enterprise Linux 9.4 Extended Update Support
- unaffected 0:1.2.18-6.el9_4 – < *
Red Hat · Red Hat Enterprise Linux 10
All versions: affected
What to do
Workaround: A mitigation for this issue is either unavailable or the existing options do not meet Red Hat Product Security's standards for ease of use, deployment, widespread applicability, or stability. One potential approach is to prevent local users from controlling networking through polkit. However, this would also block them from connecting to new Wi-Fi networks, which is not ideal for laptops but might be acceptable for workstations. Server customers typically don't need to be concerned, as they generally don't have local users capable of exploiting the bug.
References (16)
- RHSA-2024:8312 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:8338 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:8352 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:8353 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:8354 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:8355 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:8356 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:8357 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:8358 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:9555 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2024:9556 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2024-9050 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2313828 (opens in a new tab)issue-trackingx_refsource_REDHAT
- https://gitlab.gnome.org/GNOME/NetworkManager-libreswan/-/commit/dcf8acfb25bd31e4b8cbd20c229da660238b5c1b (opens in a new tab)
- https://www.openwall.com/lists/oss-security/2024/10/25/1 (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2024/10/25/1 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2024-9050)Record last updated .