{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2024-2947 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2024-2947 is a high-severity command injection vulnerability in Red Hat Enterprise Linux 10, published on 28 Mar 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-2947 and fix it if it is affected.\n\nWhat it is: CVE-2024-2947 is a high-severity command injection vulnerability in Red Hat Enterprise Linux 10, published on 28 Mar 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-2947 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-2947/ (Markdown: https://insights.sbomify.com/CVE-2024-2947/index.md)","id":"CVE-2024-2947","markdown":"https://insights.sbomify.com/CVE-2024-2947/index.md","name":"CVE-2024-2947","record":{"aliases":["ALSA-2024:3667","ALSA-2024:3843","CLSA-2025-1764085222","DEBIAN-CVE-2024-2947","DSA-5655-1","GHSA-8rqc-wx6q-m4qc","RHSA-2024:3667","RHSA-2024:3843","RLSA-2024:3667"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Cockpit web console","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary commands and escalate privileges by deleting a sosreport with a crafted name in the Cockpit web interface.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"A flaw was found in Cockpit. Deleting a sosreport with a crafted name via the Cockpit web interface can lead to a command injection vulnerability, resulting in privilege escalation. This issue affects Cockpit versions 270 and newer.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Rocky Linux:8"],"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":"Cockpit: command injection when deleting a sosreport with a crafted name","id":"CVE-2024-2947","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":33,"n_references":4,"next":{"headline":"Favorites \u003c= 2.3.3 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode","id":"CVE-2024-2948"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["310.4-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"cockpit","purl":"pkg:rpm/almalinux/cockpit","source":"ALSA-2024:3667"},{"ecosystem":"AlmaLinux:8","fixed":["310.4-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"cockpit-bridge","purl":"pkg:rpm/almalinux/cockpit-bridge","source":"ALSA-2024:3667"},{"ecosystem":"AlmaLinux:8","fixed":["310.4-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"cockpit-doc","purl":"pkg:rpm/almalinux/cockpit-doc","source":"ALSA-2024:3667"},{"ecosystem":"AlmaLinux:8","fixed":["310.4-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"cockpit-system","purl":"pkg:rpm/almalinux/cockpit-system","source":"ALSA-2024:3667"},{"ecosystem":"AlmaLinux:8","fixed":["310.4-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"cockpit-ws","purl":"pkg:rpm/almalinux/cockpit-ws","source":"ALSA-2024:3667"},{"ecosystem":"AlmaLinux:9","fixed":["311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit","purl":"pkg:rpm/almalinux/cockpit","source":"ALSA-2024:3843"},{"ecosystem":"AlmaLinux:9","fixed":["311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-bridge","purl":"pkg:rpm/almalinux/cockpit-bridge","source":"ALSA-2024:3843"},{"ecosystem":"AlmaLinux:9","fixed":["311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-doc","purl":"pkg:rpm/almalinux/cockpit-doc","source":"ALSA-2024:3843"},{"ecosystem":"AlmaLinux:9","fixed":["311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-packagekit","purl":"pkg:rpm/almalinux/cockpit-packagekit","source":"ALSA-2024:3843"},{"ecosystem":"AlmaLinux:9","fixed":["311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-pcp","purl":"pkg:rpm/almalinux/cockpit-pcp","source":"ALSA-2024:3843"},{"ecosystem":"AlmaLinux:9","fixed":["311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-storaged","purl":"pkg:rpm/almalinux/cockpit-storaged","source":"ALSA-2024:3843"},{"ecosystem":"AlmaLinux:9","fixed":["311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-system","purl":"pkg:rpm/almalinux/cockpit-system","source":"ALSA-2024:3843"},{"ecosystem":"AlmaLinux:9","fixed":["311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-ws","purl":"pkg:rpm/almalinux/cockpit-ws","source":"ALSA-2024:3843"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:310.4-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"cockpit","purl":"pkg:rpm/redhat/cockpit","source":"RHSA-2024:3667"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:310.4-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"cockpit-bridge","purl":"pkg:rpm/redhat/cockpit-bridge","source":"RHSA-2024:3667"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:310.4-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"cockpit-debuginfo","purl":"pkg:rpm/redhat/cockpit-debuginfo","source":"RHSA-2024:3667"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:310.4-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"cockpit-debugsource","purl":"pkg:rpm/redhat/cockpit-debugsource","source":"RHSA-2024:3667"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:310.4-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"cockpit-doc","purl":"pkg:rpm/redhat/cockpit-doc","source":"RHSA-2024:3667"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:310.4-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"cockpit-system","purl":"pkg:rpm/redhat/cockpit-system","source":"RHSA-2024:3667"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:310.4-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"cockpit-ws","purl":"pkg:rpm/redhat/cockpit-ws","source":"RHSA-2024:3667"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-debuginfo","purl":"pkg:rpm/redhat/cockpit-debuginfo","source":"RHSA-2024:3843"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-debugsource","purl":"pkg:rpm/redhat/cockpit-debugsource","source":"RHSA-2024:3843"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-packagekit","purl":"pkg:rpm/redhat/cockpit-packagekit","source":"RHSA-2024:3843"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-pcp","purl":"pkg:rpm/redhat/cockpit-pcp","source":"RHSA-2024:3843"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-storaged","purl":"pkg:rpm/redhat/cockpit-storaged","source":"RHSA-2024:3843"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit","purl":"pkg:rpm/redhat/cockpit","source":"RHSA-2024:3843"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-bridge","purl":"pkg:rpm/redhat/cockpit-bridge","source":"RHSA-2024:3843"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-debuginfo","purl":"pkg:rpm/redhat/cockpit-debuginfo","source":"RHSA-2024:3843"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-debugsource","purl":"pkg:rpm/redhat/cockpit-debugsource","source":"RHSA-2024:3843"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-doc","purl":"pkg:rpm/redhat/cockpit-doc","source":"RHSA-2024:3843"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-system","purl":"pkg:rpm/redhat/cockpit-system","source":"RHSA-2024:3843"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:311.2-1.el9_4"],"introduced":["0"],"last_affected":[],"package":"cockpit-ws","purl":"pkg:rpm/redhat/cockpit-ws","source":"RHSA-2024:3843"},{"ecosystem":"Rocky Linux:8","fixed":["0:310.4-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"cockpit","purl":"pkg:rpm/rocky-linux/cockpit?distro=rocky-linux-8\u0026epoch=0","source":"RLSA-2024:3667"}],"prev":{"headline":"Cross-site scripting in ShopLentor – All-in-One WooCommerce Growth \u0026 Store Enhancement Plugin","id":"CVE-2024-2946"},"products":["Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 7","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 9"],"published":"2024-03-28","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":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"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":"2025-11-20","vendors":["Red Hat"]},"summary":"Attackers can execute arbitrary commands and escalate privileges by deleting a sosreport with a crafted name in the Cockpit web interface.","url":"https://insights.sbomify.com/CVE-2024-2947/"}