# CVE-2022-24828: Missing input validation can lead to command execution in composer

- Priority: **Routine**
- Reason: Not severe (CVSS 8.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-04-13 · Modified: 2025-04-23
- Aliases: SUSE-SU-2022:3020-1, UBUNTU-CVE-2022-24828, DEBIAN-CVE-2022-24828, openSUSE-SU-2024:12048-1, openSUSE-SU-2024:12054-1, ALPINE-CVE-2022-24828
- Record: https://cvemate.com/vulnerability/CVE-2022-24828 · JSON: https://cvemate.com/vulnerability/CVE-2022-24828/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.886%, percentile 80.225%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine composer (Alpine Linux): ≥ 2.0.0, \< 2.3.5-r0 \| ≥ 2.0.0, \< 2.2.12-r0 \| ≥ 2.3.0, \< 2.3.5-r0
- composer composer: \< 1.10.26 \| ≥ 2.0.0, \< 2.2.12 \| ≥ 2.3, \< 2.3.6
- debian composer (Debian): \< 2.2.12-1
- ubuntu composer (Ubuntu): \< 1.0.0~beta2-1ubuntu0.1~esm2 \| \< 1.6.3-1ubuntu0.1~esm2 \| \< 1.10.1-1ubuntu0.1~esm2 \| \< 2.2.6-2ubuntu4+esm1
- fedoraproject fedora: 34 \| 35 \| 36
- getcomposer composer: \< 1.10.26 \| ≥ 2.0.0, \< 2.2.12 \| ≥ 2.3.0, \< 2.3.5
- opensuse php-composer2&distro=openSUSE Leap 15.4 (openSUSE): \< 2.2.3-150400.3.3.1
- opensuse php-composer2&distro=openSUSE Tumbleweed (openSUSE): \< 2.3.5-1.1
- opensuse php-composer&distro=openSUSE Tumbleweed (openSUSE): \< 1.10.26-1.1
- suse php-composer2&distro=SUSE Linux Enterprise Module for Web and Scripting 15 SP4 (SUSE Linux Enterprise): \< 2.2.3-150400.3.3.1
- tenable tenable.sc: \< 5.21.0

## References

- <https://github.com/composer/composer/security/advisories/GHSA-x7cr-6qr6-2hh6>
- <https://github.com/composer/composer/commit/2c40c53637c5c7e43fff7c09d3d324d632734709>
- <https://www.tenable.com/security/tns-2022-09>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QD7JQWL6C4GVROO25DTXWYWM6BPOPPCG/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GWT6LDSRY7SFMTDZWJ4MS2ZBXHL7VQEF/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/625MT3IKWKFVIWLSYZFSXHVUA2LES7YQ/>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20223020-1/>
- <https://bugzilla.suse.com/1198494>
- <https://www.suse.com/security/cve/CVE-2022-24828>
- <https://ubuntu.com/security/CVE-2022-24828>
- <https://www.cve.org/CVERecord?id=CVE-2022-24828>
- <https://ubuntu.com/security/notices/USN-7603-1>
- <https://security-tracker.debian.org/tracker/CVE-2022-24828>
- <https://security.alpinelinux.org/vuln/CVE-2022-24828>

---

Data as of 2026-12-05T03:44:16.413Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
