CVE-2022-24828
Last modified
CVE-2022-24828 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 1.78% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Getcomposer | Composer | < 1.10.26 |
| Getcomposer | Composer | >= 2.0.0, < 2.2.12 |
| Getcomposer | Composer | >= 2.3.0, < 2.3.5 |
| Tenable | Tenable.Sc | < 5.21.0 |
| Fedoraproject | Fedora | 34 |
| Fedoraproject | Fedora | 35 |
| Fedoraproject | Fedora | 36 |
References
- https://github.com/composer/composer/commit/2c40c53637c5c7e43fff7c09d3d324d632734709Patch, Third Party Advisory
- https://github.com/composer/composer/security/advisories/GHSA-x7cr-6qr6-2hh6Third Party Advisory
- https://www.tenable.com/security/tns-2022-09Patch, Third Party Advisory
- https://github.com/composer/composer/commit/2c40c53637c5c7e43fff7c09d3d324d632734709Patch, Third Party Advisory
- https://github.com/composer/composer/security/advisories/GHSA-x7cr-6qr6-2hh6Third Party Advisory
- https://www.tenable.com/security/tns-2022-09Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-24828?
How severe is CVE-2022-24828?
How do I fix CVE-2022-24828?
Are you affected by CVE-2022-24828?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
