CVE-2022-24828

composer: Composer is a dependency manager for the PHP programming language

CVE-2022-24828 is fixed in composer on 1 platform, first by DEBIAN-CVE-2022-24828, released April 13, 2022. It is not reported as exploited. Patch Radar priority: High.

High
CVSS
8.8
high
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0189
79th percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
composer · Debian 12.15 (bookworm) 2.2.12-1 DEBIAN-CVE-2022-24828 Apr 13, 2022
composer · Debian 13.5 (trixie) 2.2.12-1 DEBIAN-CVE-2022-24828 Apr 13, 2022
composer · Debian 14 2.2.12-1 DEBIAN-CVE-2022-24828 Apr 13, 2022
composer · Ubuntu 18.04.6 LTS (bionic) 1.6.3-1ubuntu0.1~esm2 composer 1.6.3-1ubuntu0.1~esm2 Jun 10, 2024
composer · Ubuntu 20.04 LTS (focal) 1.10.1-1ubuntu0.1~esm2 composer 1.10.1-1ubuntu0.1~esm2 Jun 10, 2024
composer · Ubuntu 22.04.1 LTS (jammy) 2.2.6-2ubuntu4+esm1 composer 2.2.6-2ubuntu4+esm1 Jun 10, 2024

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.