Read the docs
TI-2022-08641 Aliases CVE-2022-24828GHSA-x7cr-6qr6-2hh6

Missing input validation can lead to command execution in composer

Priority MEDIUM 44CWE-20Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-88.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.01886 79th percentileScored 2026-11-07
Fix Fixed composer (composer): 1.10.26, 2.2.12, 2.3.6composer/composer (Packagist): 1.10.26, 2.2.12, 2.3.5

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
composercomposerbefore 1.10.26; 2.0.0 to before 2.2.12; 2.3 to before 2.3.61.10.26, 2.2.12, 2.3.6Patch availableCNA
—composer/composer (Packagist)before 1.10.261.10.26Patch availableGHSA-x7cr-6qr6-2hh6
—composer/composer (Packagist)2.0 to before 2.2.122.2.12Patch availableGHSA-x7cr-6qr6-2hh6
—composer/composer (Packagist)2.3 to before 2.3.52.3.5Patch availableGHSA-x7cr-6qr6-2hh6
  • composer Vendorcomposer Affected before 1.10.26; 2.0.0 to before 2.2.12; 2.3 to before 2.3.6 Fixed in 1.10.26, 2.2.12, 2.3.6 Patch available CNA
  • composer/composer (Packagist) Vendor— Affected before 1.10.26 Fixed in 1.10.26 Patch available GHSA-x7cr-6qr6-2hh6
  • composer/composer (Packagist) Vendor— Affected 2.0 to before 2.2.12 Fixed in 2.2.12 Patch available GHSA-x7cr-6qr6-2hh6
  • composer/composer (Packagist) Vendor— Affected 2.3 to before 2.3.5 Fixed in 2.3.5 Patch available GHSA-x7cr-6qr6-2hh6

CPE configurations NVD · 5

CPEVersionsRoleVendor
cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*before 1.10.26; 2.0.0 to before 2.2.12; 2.3.0 to before 2.3.5Vulnerablecomposer
cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:*before 5.21.0VulnerableTenable
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*34VulnerableFedoraproject
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*35VulnerableFedoraproject
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*36VulnerableFedoraproject
  • cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:* Versions before 1.10.26; 2.0.0 to before 2.2.12; 2.3.0 to before 2.3.5 Vulnerable ·composer
  • cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:* Versions before 5.21.0 Vulnerable ·Tenable
  • cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
  • cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* Versions 35 Vulnerable ·Fedoraproject
  • cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Versions 36 Vulnerable ·Fedoraproject

Remediation

  • Fix · CNA composer (composer) Fixed in 1.10.26, 2.2.12, 2.3.6
  • Fix · GHSA-x7cr-6qr6-2hh6 composer/composer (Packagist) Fixed in 1.10.26 Advisory →
  • Fix · GHSA-x7cr-6qr6-2hh6 composer/composer (Packagist) Fixed in 2.2.12 Advisory →
  • Fix · GHSA-x7cr-6qr6-2hh6 composer/composer (Packagist) Fixed in 2.3.5 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-24828
  2. 2026-10-03 Alias added: GHSA-x7cr-6qr6-2hh6

References

  • TI-2015-06892 Composer before 2016-02-10 allows cache poisoning from other projects built on the same… CVSS 3.1HIGH 8.8
  • TI-2021-17955 Command injection in composer on Windows CVSS 3.1CRITICAL 9.8
  • TI-2021-10185 Code injection in composer CVSS 3.1HIGH 8.8
  • TI-2026-29055 Composer has Command Injection via Malicious Perforce Reference CVSS 3.1HIGH 8.8
  • TI-2023-23380 Remote Code Execution via web-accessible composer.phar CVSS 3.1HIGH 8.8
  • TI-2024-16338 Code execution and possible privilege escalation via compromised InstalledVersions.php or installed.php in Composer CVSS 3.1HIGH 8.8
See all 8 →

Sources