CVEfocus › CVE database › CVE-2024-9050

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

CVSS 7.8 HighEPSS 0.6% (higher than 41% of CVEs)Published 2024-10-22Updated 2026-11-23Assigner: redhat

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.

CWE-94

What to do

Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Red Hat has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
2Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Red Hat Enterprise Linux 10NetworkManager-libreswanFix pending
Affected
Red Hat Enterprise Linux 10NetworkManager-libreswan-gnomeFix pending
Affected
Red Hat Enterprise Linux 9NetworkManager-libreswanFixed0:1.2.22-4.el9_5RHSA-2024:9555
Red Hat Enterprise Linux 9NetworkManager-libreswan-gnomeFixed0:1.2.22-4.el9_5RHSA-2024:9555
Red Hat Enterprise Linux 8NetworkManager-libreswanFixed0:1.2.10-7.el8_10RHSA-2024:8353
Red Hat Enterprise Linux 8NetworkManager-libreswan-gnomeFixed0:1.2.10-7.el8_10RHSA-2024:8353
AlmaLinux 9NetworkManager-libreswanFixed1.2.22-4.el9_5ALSA-2024:9555
AlmaLinux 9NetworkManager-libreswan-gnomeFixed1.2.22-4.el9_5ALSA-2024:9555
AlmaLinux 8NetworkManager-libreswanFixed1.2.10-7.el8_10ALSA-2024:8353
AlmaLinux 8NetworkManager-libreswan-gnomeFixed1.2.10-7.el8_10ALSA-2024:8353
Rocky Linux 9NetworkManager-libreswanFixed0:1.2.22-4.el9_5RLSA-2024:9555
Rocky Linux 8NetworkManager-libreswanFixed0:1.2.10-7.el8_10RLSA-2024:8353

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

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.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.