CVE-2022-24828: Missing input validation can lead to command execution in composer
Vendor fix available · Affected: composer · Exploitation: possible (1 to 10%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 79% of scored CVEs
DescriptionCVE.org
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.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- composer · composer< 1.10.26; >= 2.0.0, < 2.2.12; >= 2.3, < 2.3.6
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Possible (1 to 10%). EPSS between 1% and 10%.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Vendor
- composer
- Published
- April 2022
CoverageNo articles yet
No CyberSIXT article names CVE-2022-24828 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-20cwe.mitre.org
- Vendor advisorylists.fedoraproject.org
- Vendor advisorylists.fedoraproject.org
- Vendor advisorylists.fedoraproject.org
- github.com/composer/composer/security/advisories/GHSA-x7cr-6qr6-github.com
- github.com/composer/composer/commit/2c40c53637c5c7e43fff7c09d3d3github.com
- tenable.com/security/tns-2022-09tenable.com