Networkmanager-libreswan: local privilege escalation via leftupdown

Summary

CVECVE-2024-9050
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2024-10-22 13:15:02 UTC
Updated2026-06-26 00:16:44 UTC
DescriptionA 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.

Risk And Classification

Primary CVSS: v3.1 7.8 HIGH from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS: 0.004520000 probability, percentile 0.360500000 (date 2026-06-29)

Problem Types: CWE-94 | CWE-94 Improper Control of Generation of Code ('Code Injection') | CWE-noinfo Not enough information


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1CNACVSS7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Red Hat Red Hat Enterprise Linux 7.7 Advanced Update Support unaffected 0:1.2.4-4.el7_7 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support unaffected 0:1.2.4-4.el7_9 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8 unaffected 0:1.2.10-7.el8_10 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support unaffected 0:1.2.10-6.el8_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support unaffected 0:1.2.10-6.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service unaffected 0:1.2.10-6.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.4 Update Services For SAP Solutions unaffected 0:1.2.10-6.el8_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support unaffected 0:1.2.10-6.el8_6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service unaffected 0:1.2.10-6.el8_6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.6 Update Services For SAP Solutions unaffected 0:1.2.10-6.el8_6 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 8.8 Extended Update Support unaffected 0:1.2.10-6.el8_8 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9 unaffected 0:1.2.22-4.el9_5 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.0 Update Services For SAP Solutions unaffected 0:1.2.14-3.el9_0 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support unaffected 0:1.2.14-6.el9_2 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support unaffected 0:1.2.18-6.el9_4 * rpm Not specified
CNA Red Hat Red Hat Enterprise Linux 10 Not specified Not specified

References

ReferenceSourceLinkTags
access.redhat.com/errata/RHSA-2024:8355 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2024:8312 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2024:8338 [email protected] access.redhat.com
bugzilla.redhat.com/show_bug.cgi [email protected] bugzilla.redhat.com
access.redhat.com/errata/RHSA-2024:8356 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2024:8358 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2024:8353 [email protected] access.redhat.com
www.openwall.com/lists/oss-security/2024/10/25/1 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
access.redhat.com/errata/RHSA-2024:9556 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2024:8357 [email protected] access.redhat.com
access.redhat.com/security/cve/CVE-2024-9050 [email protected] access.redhat.com
www.openwall.com/lists/oss-security/2024/10/25/1 [email protected] www.openwall.com
access.redhat.com/errata/RHSA-2024:8354 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2024:9555 [email protected] access.redhat.com
access.redhat.com/errata/RHSA-2024:8352 [email protected] access.redhat.com
gitlab.gnome.org/GNOME/NetworkManager-libreswan/-/commit/dcf8acfb25bd31e4b8cbd... [email protected] gitlab.gnome.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Additional Advisory Data

SourceTimeEvent
CNA2024-09-19T00:00:00.000ZReported to Red Hat.
CNA2024-10-22T12:00:00.000ZMade public.

Workarounds

CNA: 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.

© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report