cve.bz

CVE-2024-9050 Code Injection

7.8 highEPSS 0.5%Fix available

High (7.8). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 40th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-10-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 7.7 Advanced Update Support: fixed in 0:1.2.4-4.el7_7
  • Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support: fixed in 0:1.2.4-4.el7_9
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:1.2.10-7.el8_10
  • Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support: fixed in 0:1.2.10-6.el8_2
  • Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support: fixed in 0:1.2.10-6.el8_4
  • Red Hat Red Hat Enterprise Linux 8.4 Telecommunications Update Service: fixed in 0:1.2.10-6.el8_4
  • Red Hat Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions: fixed in 0:1.2.10-6.el8_4
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: fixed in 0:1.2.10-6.el8_6
  • Red Hat, openSUSE, AlmaLinux, Rocky Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2024-9050 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-9050?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-9050?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-9050 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 7.7 Advanced Update Support0:1.2.4-4.el7_7
Red Hat Enterprise Linux 7 Extended Lifecycle Support0:1.2.4-4.el7_9
Red Hat Enterprise Linux 80:1.2.10-7.el8_10
Red Hat Enterprise Linux 8.2 Advanced Update Support0:1.2.10-6.el8_2
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support0:1.2.10-6.el8_4
Red Hat Enterprise Linux 8.4 Telecommunications Update Service0:1.2.10-6.el8_4
Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions0:1.2.10-6.el8_4
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:1.2.10-6.el8_6
Red Hat Enterprise Linux 8.6 Telecommunications Update Service0:1.2.10-6.el8_6
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions0:1.2.10-6.el8_6
Red Hat Enterprise Linux 8.8 Extended Update Support0:1.2.10-6.el8_8
Red Hat Enterprise Linux 90:1.2.22-4.el9_5
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions0:1.2.14-3.el9_0
Red Hat Enterprise Linux 9.2 Extended Update Support0:1.2.14-6.el9_2
Red Hat Enterprise Linux 9.4 Extended Update Support0:1.2.18-6.el9_4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatenterprise_linux:8::appstreamNetworkManager-libreswan, NetworkManager-libreswan-gnome, NetworkManager-libreswan-debuginfo and 2 more0:1.2.10-7.el8_10RHSA-2024:8353
Red Hatenterprise_linux:9::appstreamNetworkManager-libreswan, NetworkManager-libreswan-gnome, NetworkManager-libreswan-debuginfo and 2 more0:1.2.22-4.el9_5RHSA-2024:9555
Red Hatrhel_aus:7.7::serverNetworkManager-libreswan, NetworkManager-libreswan-gnome, NetworkManager-libreswan-debuginfo0:1.2.4-4.el7_7RHSA-2024:8338
Red Hatrhel_aus:8.2::appstreamNetworkManager-libreswan, NetworkManager-libreswan-gnome, NetworkManager-libreswan-debuginfo and 2 more0:1.2.10-6.el8_2RHSA-2024:8358
Red Hatrhel_aus:8.4::appstream, rhel_e4s:8.4::appstream, rhel_tus:8.4::appstreamNetworkManager-libreswan, NetworkManager-libreswan-gnome, NetworkManager-libreswan-debuginfo and 2 more0:1.2.10-6.el8_4RHSA-2024:8355
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamNetworkManager-libreswan, NetworkManager-libreswan-gnome, NetworkManager-libreswan-debuginfo and 2 more0:1.2.10-6.el8_6RHSA-2024:8356
Red Hatrhel_e4s:9.0::appstreamNetworkManager-libreswan, NetworkManager-libreswan-gnome, NetworkManager-libreswan-debuginfo and 2 more0:1.2.14-3.el9_0RHSA-2024:8312
Red Hatrhel_els:7NetworkManager-libreswan, NetworkManager-libreswan-gnome, NetworkManager-libreswan-debuginfo0:1.2.4-4.el7_9RHSA-2024:8357
Red Hatrhel_eus:8.8::appstreamNetworkManager-libreswan, NetworkManager-libreswan-gnome, NetworkManager-libreswan-debuginfo and 2 more0:1.2.10-6.el8_8RHSA-2024:8354
Red Hatrhel_eus:9.2::appstreamNetworkManager-libreswan, NetworkManager-libreswan-gnome, NetworkManager-libreswan-debuginfo and 2 more0:1.2.14-6.el9_2RHSA-2024:8352
Red Hatrhel_eus:9.4::appstreamNetworkManager-libreswan, NetworkManager-libreswan-gnome, NetworkManager-libreswan-debuginfo and 2 more0:1.2.18-6.el9_4RHSA-2024:9556
openSUSETumbleweedNetworkManager-libreswan1.2.24-1.1openSUSE-SU-2024:14422-1
AlmaLinux8NetworkManager-libreswan, NetworkManager-libreswan-gnome1.2.10-7.el8_10ALSA-2024:8353
AlmaLinux9NetworkManager-libreswan, NetworkManager-libreswan-gnome1.2.22-4.el9_5ALSA-2024:9555
Rocky Linux8NetworkManager-libreswan0:1.2.10-7.el8_10RLSA-2024:8353
Rocky Linux9NetworkManager-libreswan0:1.2.22-4.el9_5RLSA-2024:9555

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue marked with an Important severity due to its potential to enable local privilege escalation and arbitrary code execution. Since NetworkManager uses Polkit to allow unprivileged users to manage network configurations, the failure to properly sanitize the VPN configuration, particularly the `leftupdown` key, creates a direct attack vector. By leveraging this vulnerability, an attacker can inject malicious commands into the VPN configuration, bypassing user privilege boundaries and gaining root access.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7.7 Advanced Update SupportNetworkManager-libreswan-0:1.2.4-4.el7_7Fixed 2024-10-22RHSA-2024:8338
Red Hat Enterprise Linux 7 Extended Lifecycle SupportNetworkManager-libreswan-0:1.2.4-4.el7_9Fixed 2024-10-23RHSA-2024:8357
Red Hat Enterprise Linux 8NetworkManager-libreswan-0:1.2.10-7.el8_10Fixed 2024-10-23RHSA-2024:8353
Red Hat Enterprise Linux 8.2 Advanced Update SupportNetworkManager-libreswan-0:1.2.10-6.el8_2Fixed 2024-10-23RHSA-2024:8358
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportNetworkManager-libreswan-0:1.2.10-6.el8_4Fixed 2024-10-23RHSA-2024:8355
Red Hat Enterprise Linux 8.4 Telecommunications Update ServiceNetworkManager-libreswan-0:1.2.10-6.el8_4Fixed 2024-10-23RHSA-2024:8355
Red Hat Enterprise Linux 8.4 Update Services for SAP SolutionsNetworkManager-libreswan-0:1.2.10-6.el8_4Fixed 2024-10-23RHSA-2024:8355
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportNetworkManager-libreswan-0:1.2.10-6.el8_6Fixed 2024-10-23RHSA-2024:8356
Red Hat Enterprise Linux 8.6 Telecommunications Update ServiceNetworkManager-libreswan-0:1.2.10-6.el8_6Fixed 2024-10-23RHSA-2024:8356
Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsNetworkManager-libreswan-0:1.2.10-6.el8_6Fixed 2024-10-23RHSA-2024:8356
Red Hat Enterprise Linux 8.8 Extended Update SupportNetworkManager-libreswan-0:1.2.10-6.el8_8Fixed 2024-10-23RHSA-2024:8354
Red Hat Enterprise Linux 9NetworkManager-libreswan-0:1.2.22-4.el9_5Fixed 2024-11-13RHSA-2024:9555
Red Hat Enterprise Linux 9.0 Update Services for SAP SolutionsNetworkManager-libreswan-0:1.2.14-3.el9_0Fixed 2024-10-22RHSA-2024:8312
Red Hat Enterprise Linux 9.2 Extended Update SupportNetworkManager-libreswan-0:1.2.14-6.el9_2Fixed 2024-10-23RHSA-2024:8352
Red Hat Enterprise Linux 9.4 Extended Update SupportNetworkManager-libreswan-0:1.2.18-6.el9_4Fixed 2024-11-13RHSA-2024:9556
Red Hat Enterprise Linux 10NetworkManager-libreswanAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-9050.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON