# 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.

- Web page: https://patchblox.com/security/cve/CVE-2022-24828
- Priority: High
- CVSS: 8.8 (high)
- EPSS: 0.0189
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 13, 2022

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | composer Debian 12.15 (bookworm) | 2.2.12-1 | [DEBIAN-CVE-2022-24828](https://patchblox.com/security/data/fix/linux/debian-cve-2022-24828.md) | Apr 13, 2022 |
| Linux | composer Debian 13.5 (trixie) | 2.2.12-1 | [DEBIAN-CVE-2022-24828](https://patchblox.com/security/data/fix/linux/debian-cve-2022-24828.md) | Apr 13, 2022 |
| Linux | composer Debian 14 | 2.2.12-1 | [DEBIAN-CVE-2022-24828](https://patchblox.com/security/data/fix/linux/debian-cve-2022-24828.md) | Apr 13, 2022 |
| Linux | composer Ubuntu 18.04.6 LTS (bionic) | 1.6.3-1ubuntu0.1~esm2 | [composer 1.6.3-1ubuntu0.1~esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-composer-1.6.3-1ubuntu0.1-esm2.md) | Jun 10, 2024 |
| Linux | composer Ubuntu 20.04 LTS (focal) | 1.10.1-1ubuntu0.1~esm2 | [composer 1.10.1-1ubuntu0.1~esm2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-composer-1.10.1-1ubuntu0.1-esm2.md) | Jun 10, 2024 |
| Linux | composer Ubuntu 22.04.1 LTS (jammy) | 2.2.6-2ubuntu4+esm1 | [composer 2.2.6-2ubuntu4+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-composer-2.2.6-2ubuntu4-esm1.md) | Jun 10, 2024 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

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.
