Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-9050

HIGH 7.8EPSS 41%

Networkmanager-libreswan: local privilege escalation via leftupdown

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.

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

Vulnerability facts

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 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
Fixed in
NetworkManager-libreswan 1.2.24
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.57% chance of exploitation in 30 days (percentile 41, 2026-11-26)
CWE
CWE-94
Published
Modified

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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors