cbcvebase.
CVE-2022-24828
published 2022-04-13

CVE-2022-24828: Composer is a dependency manager for the PHP programming language. Integrators using Composer code to call `VcsDriver::getFileContent` can have a code…

PriorityP349high8.8CVSS 3.1
AVNACLPRNUIRSUCHIHAH
EPSS
1.86%
77.0th 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.

Affected

23 ranges
VendorProductVersion rangeFixed in
composercomposer< 1.10.261.10.26
composercomposer
composercomposer
composercomposer>= 0 < 2.0.9-2+deb11u12.0.9-2+deb11u1
composercomposer>= 0 < 2.2.12-12.2.12-1
composercomposer>= 0 < 2.2.12-12.2.12-1
composercomposer>= 0 < 2.2.12-12.2.12-1
composercomposer>= 0 < 1.10.261.10.26
composercomposer>= 0 < 1.0.0~beta2-1ubuntu0.1~esm21.0.0~beta2-1ubuntu0.1~esm2
composercomposer>= 0 < 1.6.3-1ubuntu0.1~esm21.6.3-1ubuntu0.1~esm2
composercomposer>= 0 < 1.10.1-1ubuntu0.1~esm21.10.1-1ubuntu0.1~esm2
composercomposer>= 0 < 2.2.6-2ubuntu4+esm12.2.6-2ubuntu4+esm1
composercomposer>= 0 < 2.7.1-2ubuntu0.1~esm12.7.1-2ubuntu0.1~esm1
composercomposer>= 2.0 < 2.2.122.2.12
composercomposer>= 2.3 < 2.3.52.3.5
debiancomposer< composer 2.2.12-1 (bookworm)composer 2.2.12-1 (bookworm)
fedoraprojectfedora
fedoraprojectfedora
fedoraprojectfedora
getcomposercomposer< 1.10.261.10.26
getcomposercomposer>= 2.0.0 < 2.2.122.2.12
getcomposercomposer>= 2.3.0 < 2.3.52.3.5
tenabletenable.sc< 5.21.05.21.0

CVSS provenance

nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv8.8HIGH
vendor_debian8.3HIGH
vendor_ubuntu8.3HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.