{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2024-9050 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2024-9050 is a high-severity command injection vulnerability in Red Hat Enterprise Linux 10, published on 22 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-9050 and fix it if it is affected.\n\nWhat it is: CVE-2024-9050 is a high-severity command injection vulnerability in Red Hat Enterprise Linux 10, published on 22 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-9050 in the wild and no public exploit code.\n\nAffected product: Red Hat Enterprise Linux 10. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-9050/ (Markdown: https://insights.sbomify.com/CVE-2024-9050/index.md)","id":"CVE-2024-9050","markdown":"https://insights.sbomify.com/CVE-2024-9050/index.md","name":"CVE-2024-9050","record":{"aliases":["ALSA-2024:8353","ALSA-2024:9555","CLSA-2025-1763419211","MGASA-2024-0356","OESA-2024-2331","RHSA-2024:8312","RHSA-2024:8338","RHSA-2024:8352","RHSA-2024:8353","RHSA-2024:8354","RHSA-2024:8355","RHSA-2024:8356","RHSA-2024:8357","RHSA-2024:8358","RHSA-2024:9555","RHSA-2024:9556","RLSA-2024:8353","RLSA-2024:9555","openSUSE-SU-2024:14422-1"],"analysis":{"component_type":"operating_system","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"NetworkManager libreswan plugin","requires_auth":"low_privilege","summary":"Local attackers can escalate privileges to root by injecting commands into the leftupdown parameter of the NetworkManager libreswan plugin configuration.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:rhel_aus:7.7::server","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_e4s:8.4::appstream","Red Hat:rhel_e4s:8.6::appstream","Red Hat:rhel_e4s:9.0::appstream","Red Hat:rhel_els:7","Red Hat:rhel_eus:8.8::appstream","Red Hat:rhel_eus:9.2::appstream","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_tus:8.4::appstream","Red Hat:rhel_tus:8.6::appstream","Rocky Linux:8","Rocky Linux:9","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Networkmanager-libreswan: local privilege escalation via leftupdown","id":"CVE-2024-9050","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":78,"n_references":15,"next":{"headline":"Cross-site scripting in WP Ultimate Post Grid","id":"CVE-2024-9051"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1.2.10-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan","purl":"pkg:rpm/almalinux/NetworkManager-libreswan","source":"ALSA-2024:8353"},{"ecosystem":"AlmaLinux:8","fixed":["1.2.10-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome","purl":"pkg:rpm/almalinux/NetworkManager-libreswan-gnome","source":"ALSA-2024:8353"},{"ecosystem":"AlmaLinux:9","fixed":["1.2.22-4.el9_5"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan","purl":"pkg:rpm/almalinux/NetworkManager-libreswan","source":"ALSA-2024:9555"},{"ecosystem":"AlmaLinux:9","fixed":["1.2.22-4.el9_5"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome","purl":"pkg:rpm/almalinux/NetworkManager-libreswan-gnome","source":"ALSA-2024:9555"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.2.10-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan","purl":"pkg:rpm/redhat/NetworkManager-libreswan","source":"RHSA-2024:8353"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.2.10-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debuginfo","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debuginfo","source":"RHSA-2024:8353"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.2.10-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debugsource","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debugsource","source":"RHSA-2024:8353"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.2.10-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome","purl":"pkg:rpm/redhat/NetworkManager-libreswan-gnome","source":"RHSA-2024:8353"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.2.10-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome-debuginfo","purl":"pkg:rpm/redhat/NetworkManager-libreswan-gnome-debuginfo","source":"RHSA-2024:8353"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.2.22-4.el9_5"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan","purl":"pkg:rpm/redhat/NetworkManager-libreswan","source":"RHSA-2024:9555"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.2.22-4.el9_5"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debuginfo","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debuginfo","source":"RHSA-2024:9555"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.2.22-4.el9_5"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debugsource","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debugsource","source":"RHSA-2024:9555"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.2.22-4.el9_5"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome","purl":"pkg:rpm/redhat/NetworkManager-libreswan-gnome","source":"RHSA-2024:9555"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.2.22-4.el9_5"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome-debuginfo","purl":"pkg:rpm/redhat/NetworkManager-libreswan-gnome-debuginfo","source":"RHSA-2024:9555"},{"ecosystem":"Red Hat:rhel_aus:7.7::server","fixed":["0:1.2.4-4.el7_7"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan","purl":"pkg:rpm/redhat/NetworkManager-libreswan","source":"RHSA-2024:8338"},{"ecosystem":"Red Hat:rhel_aus:7.7::server","fixed":["0:1.2.4-4.el7_7"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debuginfo","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debuginfo","source":"RHSA-2024:8338"},{"ecosystem":"Red Hat:rhel_aus:7.7::server","fixed":["0:1.2.4-4.el7_7"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome","purl":"pkg:rpm/redhat/NetworkManager-libreswan-gnome","source":"RHSA-2024:8338"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:1.2.10-6.el8_2"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan","purl":"pkg:rpm/redhat/NetworkManager-libreswan","source":"RHSA-2024:8358"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:1.2.10-6.el8_2"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debuginfo","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debuginfo","source":"RHSA-2024:8358"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:1.2.10-6.el8_2"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debugsource","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debugsource","source":"RHSA-2024:8358"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:1.2.10-6.el8_2"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome","purl":"pkg:rpm/redhat/NetworkManager-libreswan-gnome","source":"RHSA-2024:8358"},{"ecosystem":"Red Hat:rhel_aus:8.2::appstream","fixed":["0:1.2.10-6.el8_2"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome-debuginfo","purl":"pkg:rpm/redhat/NetworkManager-libreswan-gnome-debuginfo","source":"RHSA-2024:8358"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.2.10-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan","purl":"pkg:rpm/redhat/NetworkManager-libreswan","source":"RHSA-2024:8355"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.2.10-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debuginfo","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debuginfo","source":"RHSA-2024:8355"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.2.10-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debugsource","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debugsource","source":"RHSA-2024:8355"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.2.10-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome","purl":"pkg:rpm/redhat/NetworkManager-libreswan-gnome","source":"RHSA-2024:8355"},{"ecosystem":"Red Hat:rhel_aus:8.4::appstream","fixed":["0:1.2.10-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome-debuginfo","purl":"pkg:rpm/redhat/NetworkManager-libreswan-gnome-debuginfo","source":"RHSA-2024:8355"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:1.2.10-6.el8_6"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan","purl":"pkg:rpm/redhat/NetworkManager-libreswan","source":"RHSA-2024:8356"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:1.2.10-6.el8_6"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debuginfo","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debuginfo","source":"RHSA-2024:8356"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:1.2.10-6.el8_6"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debugsource","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debugsource","source":"RHSA-2024:8356"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:1.2.10-6.el8_6"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome","purl":"pkg:rpm/redhat/NetworkManager-libreswan-gnome","source":"RHSA-2024:8356"},{"ecosystem":"Red Hat:rhel_aus:8.6::appstream","fixed":["0:1.2.10-6.el8_6"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome-debuginfo","purl":"pkg:rpm/redhat/NetworkManager-libreswan-gnome-debuginfo","source":"RHSA-2024:8356"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:1.2.10-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan","purl":"pkg:rpm/redhat/NetworkManager-libreswan","source":"RHSA-2024:8355"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:1.2.10-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debuginfo","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debuginfo","source":"RHSA-2024:8355"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:1.2.10-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debugsource","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debugsource","source":"RHSA-2024:8355"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:1.2.10-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome","purl":"pkg:rpm/redhat/NetworkManager-libreswan-gnome","source":"RHSA-2024:8355"},{"ecosystem":"Red Hat:rhel_e4s:8.4::appstream","fixed":["0:1.2.10-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-gnome-debuginfo","purl":"pkg:rpm/redhat/NetworkManager-libreswan-gnome-debuginfo","source":"RHSA-2024:8355"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:1.2.10-6.el8_6"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan","purl":"pkg:rpm/redhat/NetworkManager-libreswan","source":"RHSA-2024:8356"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:1.2.10-6.el8_6"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debuginfo","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debuginfo","source":"RHSA-2024:8356"},{"ecosystem":"Red Hat:rhel_e4s:8.6::appstream","fixed":["0:1.2.10-6.el8_6"],"introduced":["0"],"last_affected":[],"package":"NetworkManager-libreswan-debugsource","purl":"pkg:rpm/redhat/NetworkManager-libreswan-debugsource","source":"RHSA-2024:8356"}],"prev":{"headline":"Cross-site scripting in Beaver Builder Page Builder – Drag and Drop Website Builder","id":"CVE-2024-9049"},"products":["Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 7 Extended Lifecycle Support","Red Hat Enterprise Linux 7.7 Advanced Update 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","Red Hat Enterprise Linux 8.4 Telecommunications Update Service","Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions","Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support","Red Hat Enterprise Linux 8.6 Telecommunications Update Service","Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions","Red Hat Enterprise Linux 8.8 Extended Update Support","Red Hat Enterprise Linux 9","Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions","Red Hat Enterprise Linux 9.2 Extended Update Support","Red Hat Enterprise Linux 9.4 Extended Update Support"],"published":"2024-10-22","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-06-25","vendors":["Red Hat"]},"summary":"Local attackers can escalate privileges to root by injecting commands into the leftupdown parameter of the NetworkManager libreswan plugin configuration.","url":"https://insights.sbomify.com/CVE-2024-9050/"}