CVE-2022-24828
Summary
| CVE | CVE-2022-24828 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-04-13 21:15:00 UTC |
| Updated | 2023-11-07 03:44:00 UTC |
| 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| Merge pull request from GHSA-x7cr-6qr6-2hh6 · composer/composer@2c40c53 · GitHub |
MISC |
github.com |
|
| [SECURITY] Fedora 35 Update: composer-2.3.5-1.fc35 - package-announce - Fedora Mailing-Lists |
FEDORA |
lists.fedoraproject.org |
|
| [SECURITY] Fedora 36 Update: composer-2.3.5-1.fc36 - package-announce - Fedora Mailing-Lists |
|
lists.fedoraproject.org |
|
| [R1] Tenable.sc 5.21.0 Fixes Multiple Third-Party Vulnerabilities - Security Advisory | Tenable® |
CONFIRM |
www.tenable.com |
|
| [SECURITY] Fedora 34 Update: composer-2.2.12-1.fc34 - package-announce - Fedora Mailing-Lists |
FEDORA |
lists.fedoraproject.org |
|
| [SECURITY] Fedora 36 Update: composer-2.3.5-1.fc36 - package-announce - Fedora Mailing-Lists |
FEDORA |
lists.fedoraproject.org |
|
| [SECURITY] Fedora 34 Update: composer-2.2.12-1.fc34 - package-announce - Fedora Mailing-Lists |
|
lists.fedoraproject.org |
|
| Missing input validation can lead to command execution via VcsDriver::getFileContent() · Advisory · composer/composer · GitHub |
CONFIRM |
github.com |
|
| [SECURITY] Fedora 35 Update: composer-2.3.5-1.fc35 - package-announce - Fedora Mailing-Lists |
|
lists.fedoraproject.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 180878 Debian Security Update for composer (CVE-2022-24828)
- 282611 Fedora Security Update for composer (FEDORA-2022-47d2e7da46)
- 282612 Fedora Security Update for composer (FEDORA-2022-617a6df23e)
- 502045 Alpine Linux Security Update for composer
- 502254 Alpine Linux Security Update for composer
- 504629 Alpine Linux Security Update for composer
- 690841 Free Berkeley Software Distribution (FreeBSD) Security Update for composer (24a9bd2b-bb43-11ec-af81-0897988a1c07)
- 753117 SUSE Enterprise Linux Security Update for php-composer2 (SUSE-SU-2022:3020-1)