# CVE-2024-9050: Networkmanager-libreswan: local privilege escalation via leftupdown

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.57% (percentile 41, 2026-11-26)
- **CWE:** CWE-94
- **Published:** 2024-10-22T12:14:31.701Z
- **Modified:** 2026-11-23T15:17:13.290Z

## Who should check

- Anyone running NetworkManager-libreswan \< 1.2.24
- Anyone running Red Hat Enterprise Linux 7.7 Advanced Update Support all versions
- Anyone running Red Hat Enterprise Linux 7 Extended Lifecycle Support all versions
- Anyone running Red Hat Enterprise Linux 8 all versions
- Anyone running Red Hat Enterprise Linux 8.2 Advanced Update Support all versions
- Anyone running Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support all versions
- Anyone running Red Hat Enterprise Linux 8.4 Telecommunications Update Service all versions
- Anyone running Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions all versions

## 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.

## Affected and fixed versions

- NetworkManager-libreswan: \< 1.2.24 (cvelist)
- Red Hat Enterprise Linux 7.7 Advanced Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 7 Extended Lifecycle Support: all versions (cvelist)
- Red Hat Enterprise Linux 8: all versions (cvelist)
- Red Hat Enterprise Linux 8.2 Advanced Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 8.4 Telecommunications Update Service: all versions (cvelist)
- Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions: all versions (cvelist)
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 8.6 Telecommunications Update Service: all versions (cvelist)
- Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions: all versions (cvelist)
- Red Hat Enterprise Linux 8.8 Extended Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 9: all versions (cvelist)
- Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions: all versions (cvelist)
- Red Hat Enterprise Linux 9.2 Extended Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 9.4 Extended Update Support: all versions (cvelist)
- Red Hat Enterprise Linux 10: all versions (cvelist)

## Mitigation

- Upgrade NetworkManager-libreswan to 1.2.24 or later.
- Vendor 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-9050. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-9050.md
Affected: NetworkManager-libreswan < 1.2.24; Red Hat Enterprise Linux 7.7 Advanced Update Support all versions; Red Hat Enterprise Linux 7 Extended Lifecycle Support all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8.2 Advanced Update Support all versions; Red Hat Enterprise Li…
Fixed in: NetworkManager-libreswan 1.2.24

Steps:
1. Search this machine and project for NetworkManager-libreswan, Red Hat Enterprise Linux 7.7 Advanced Update Support, Red Hat Enterprise Linux 7 Extended Lifecycle Support, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 8.2 Advanced Update Support, Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-9050 being exploited?

There is no confirmed exploitation: CVE-2024-9050 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.57% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-9050?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-9050?

NetworkManager-libreswan \< 1.2.24; Red Hat Enterprise Linux 7.7 Advanced Update Support all versions; Red Hat Enterprise Linux 7 Extended Lifecycle Support all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8.2 Advanced Update Support all versions; Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support all versions; Red Hat Enterprise Linux 8.4 Telecommunications Update Service all versions; Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support all versions; Red Hat Enterprise Linux 8.6 Telecommunications Update Service all versions; Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 8.8 Extended Update Support all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions all versions; Red Hat Enterprise Linux 9.2 Extended Update Support all versions; Red Hat Enterprise Linux 9.4 Extended Update Support all versions; Red Hat Enterprise Linux 10 all versions.

### Is there a fix for CVE-2024-9050?

Yes. Fixed in NetworkManager-libreswan 1.2.24. Upgrade NetworkManager-libreswan to 1.2.24 or later. Vendor 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.

### How do I check if I'm affected by CVE-2024-9050?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2024:8312>
- vendor: <https://access.redhat.com/errata/RHSA-2024:8338>
- vendor: <https://access.redhat.com/errata/RHSA-2024:8352>
- vendor: <https://access.redhat.com/errata/RHSA-2024:8353>
- vendor: <https://access.redhat.com/errata/RHSA-2024:8354>
- vendor: <https://access.redhat.com/errata/RHSA-2024:8355>
- vendor: <https://access.redhat.com/errata/RHSA-2024:8356>
- vendor: <https://access.redhat.com/errata/RHSA-2024:8357>
- vendor: <https://access.redhat.com/errata/RHSA-2024:8358>
- vendor: <https://access.redhat.com/errata/RHSA-2024:9555>
- vendor: <https://access.redhat.com/errata/RHSA-2024:9556>
- patch: <https://gitlab.gnome.org/GNOME/NetworkManager-libreswan/-/commit/dcf8acfb25bd31e4b8cbd20c229da660238b5c1b>
- other: <https://access.redhat.com/security/cve/CVE-2024-9050>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2313828>
- other: <https://www.openwall.com/lists/oss-security/2024/10/25/1>
- other: <http://www.openwall.com/lists/oss-security/2024/10/25/1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-9050>

HTML: <https://flawdb.com/CVE-2024-9050> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-9050>
