{"answers":{"affected":"7 open source packages ship an affected version, including composer/composer and composer. It affects 3 products.","exploited":"There is no known exploitation of CVE-2022-24828 in the wild and no public exploit code.","fix":"Upgrade composer/composer to a fixed version for your release line: 1.10.26, 2.2.12 or 2.3.5.","what":"CVE-2022-24828 is a high-severity command injection vulnerability in Fedoraproject Fedora, published on 13 Apr 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-24828 and fix it if it is affected.\n\nWhat it is: CVE-2022-24828 is a high-severity command injection vulnerability in Fedoraproject Fedora, published on 13 Apr 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-24828 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- composer/composer (Packagist): affected all versions; fixed in 1.10.26\n- composer/composer (Packagist): affected all versions; fixed in 1.10.26\n- composer/composer (Packagist): affected from 2.0; fixed in 2.2.12\n- composer/composer (Packagist): affected from 2.0; fixed in 2.2.12\n- composer/composer (Packagist): affected from 2.3; fixed in 2.3.5\n- composer/composer (Packagist): affected from 2.3; fixed in 2.3.5\n- composer (Bitnami): affected all versions; fixed in 1.10.26, 2.2.12, 2.3.5\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-2022-24828/ (Markdown: https://insights.sbomify.com/CVE-2022-24828/index.md)","id":"CVE-2022-24828","markdown":"https://insights.sbomify.com/CVE-2022-24828/index.md","name":"CVE-2022-24828","record":{"aliases":["BIT-composer-2022-24828","CLEANSTART-2024-VD23894","DEBIAN-CVE-2022-24828","GHSA-x7cr-6qr6-2hh6","SUSE-SU-2022:3020-1","UBUNTU-CVE-2022-24828","openSUSE-SU-2024:12048-1","openSUSE-SU-2024:12054-1"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"PHP dependency manager","requires_auth":"none","summary":"Attackers can execute arbitrary commands via crafted input in VcsDriver::getFileContent when integrators allow user-controlled file or identifier arguments.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"composer","vendor":"getcomposer"},{"product":"tenable.sc","vendor":"tenable"}],"cvss":{"score":8.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"Composer is a dependency manager for the PHP programming language. Integrators using Composer code to call `VcsDriver::getFileContent` can have a code injection vulnerability if the user can control the `$file` or `$identifier` argument. This leads to a vulnerability on packagist.org for example where the composer.json's `readme` field can be used as a vector for injecting parameters into hg/Mercurial via the `$file` argument, or git via the `$identifier` argument if you allow arbitrary data there (Packagist does not, but maybe other integrators do). Composer itself should not be affected by the vulnerability as it does not call `getFileContent` with arbitrary data into `$file`/`$identifier`. To the best of our knowledge this was not abused, and the vulnerability has been patched on packagist.org and Private Packagist within a day of the vulnerability report.","ecosystems":["Bitnami","Packagist","SUSE:Linux Enterprise Module for Web and Scripting 15 SP4","openSUSE:Leap 15.4","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":"Missing input validation can lead to command execution in composer","id":"CVE-2022-24828","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":"command_injection","year":"2022"},"n_packages":11,"n_references":6,"next":{"headline":"Missing authentication in Garden","id":"CVE-2022-24829"},"packages":[{"ecosystem":"Bitnami","fixed":["1.10.26","2.2.12","2.3.5"],"introduced":["0","2.0.0","2.3.0"],"last_affected":[],"package":"composer","purl":"pkg:bitnami/composer","source":"BIT-composer-2022-24828"},{"ecosystem":"Packagist","fixed":["1.10.26"],"introduced":["0"],"last_affected":[],"package":"composer/composer","purl":null,"source":"GHSA-x7cr-6qr6-2hh6"},{"ecosystem":"Packagist","fixed":["1.10.26"],"introduced":["0"],"last_affected":[],"package":"composer/composer","purl":"pkg:composer/composer/composer","source":"GHSA-x7cr-6qr6-2hh6"},{"ecosystem":"Packagist","fixed":["2.2.12"],"introduced":["2.0"],"last_affected":[],"package":"composer/composer","purl":null,"source":"GHSA-x7cr-6qr6-2hh6"},{"ecosystem":"Packagist","fixed":["2.2.12"],"introduced":["2.0"],"last_affected":[],"package":"composer/composer","purl":"pkg:composer/composer/composer","source":"GHSA-x7cr-6qr6-2hh6"},{"ecosystem":"Packagist","fixed":["2.3.5"],"introduced":["2.3"],"last_affected":[],"package":"composer/composer","purl":null,"source":"GHSA-x7cr-6qr6-2hh6"},{"ecosystem":"Packagist","fixed":["2.3.5"],"introduced":["2.3"],"last_affected":[],"package":"composer/composer","purl":"pkg:composer/composer/composer","source":"GHSA-x7cr-6qr6-2hh6"},{"ecosystem":"SUSE:Linux Enterprise Module for Web and Scripting 15 SP4","fixed":["2.2.3-150400.3.3.1"],"introduced":["0"],"last_affected":[],"package":"php-composer2","purl":"pkg:rpm/suse/php-composer2\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Web%20and%20Scripting%2015%20SP4","source":"SUSE-SU-2022:3020-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["2.2.3-150400.3.3.1"],"introduced":["0"],"last_affected":[],"package":"php-composer2","purl":"pkg:rpm/opensuse/php-composer2\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2022:3020-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.10.26-1.1"],"introduced":["0"],"last_affected":[],"package":"php-composer","purl":"pkg:rpm/opensuse/php-composer\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12054-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.3.5-1.1"],"introduced":["0"],"last_affected":[],"package":"php-composer2","purl":"pkg:rpm/opensuse/php-composer2\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12048-1"}],"prev":{"headline":"SQL Injection in elide-datastore-aggregation","id":"CVE-2022-24827"},"products":["composer"],"published":"2022-04-13","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"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-04-23","vendors":["composer"]},"summary":"Attackers can execute arbitrary commands via crafted input in VcsDriver::getFileContent when integrators allow user-controlled file or identifier arguments.","url":"https://insights.sbomify.com/CVE-2022-24828/"}