CVE-2022-24828

Missing input validation can lead to command execution in composer

HIGH
8.8
CVSS Score
Published: April 13, 2022 at 09:00 PM UTC
Updated: June 17, 2026 at 04:32 AM UTC
4 products affected across 4 vendorsFedoraTenable.ScComposer

Using composer by composer?

Get instant alerts when new vulnerabilities affect composer - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.10.262.0.0 ≤ v < 2.2.122.3.0 ≤ v < 2.3.5
Affected range stops below 1.10.26, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.2.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.3.5, so it looks safe — our inference, not a vendor statement
v < 5.21.0
Affected range stops below 5.21.0, so it looks safe — our inference, not a vendor statement
v < 1.10.26v < 2.2.12v < 2.3.6
Affected range stops below 1.10.26, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.2.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.3.6, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-20CWE-88

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card