CVE-2022-24828

Summary

CVECVE-2022-24828
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-04-13 21:15:00 UTC
Updated2023-11-07 03:44:00 UTC
DescriptionComposer 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.

Risk And Classification

Problem Types: CWE-88

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 34 All All All
Operating System Fedoraproject Fedora 35 All All All
Operating System Fedoraproject Fedora 36 All All All
Application Getcomposer Composer All All All All
Application Tenable Tenable.sc All All All All

References

ReferenceSourceLinkTags
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

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)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report