Read the docs
TI-2026-42754 Aliases CVE-2026-59948GHSA-499r-g7pc-vmp9

Composer: Arbitrary file write outside vendor via malicious transitive package name

Priority LOW 32CWE-22Published · Updated

Key facts

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

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-787 and the CVSS impact.

Summary

Composer is a dependency Manager for the PHP language. Prior to 2.2.29 and 2.10.2, a maliciously crafted package from an untrusted repository other than Packagist.org or Private Packagist can cause Composer to write attacker-controlled files outside the vendor directory and outside the project during install or update by using an invalid package name that is not correctly validated before dependency-resolution results are written or installed. This issue is fixed in versions 2.2.29 and 2.10.2.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00138 3rd percentileScored 2026-11-07
Fix Fixed composer (composer): 2.2.29, 2.10.2composer/composer (Packagist): 2.10.2, 2.2.29

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
composercomposer1.0 to before 2.2.29; 2.3.0 to before 2.10.22.2.29, 2.10.2Patch availableCNA
—composer/composer (Packagist)2.3.0 to before 2.10.22.10.2Patch availableGHSA-499r-g7pc-vmp9
—composer/composer (Packagist)1.0.0 to before 2.2.292.2.29Patch availableGHSA-499r-g7pc-vmp9
  • composer Vendorcomposer Affected 1.0 to before 2.2.29; 2.3.0 to before 2.10.2 Fixed in 2.2.29, 2.10.2 Patch available CNA
  • composer/composer (Packagist) Vendor— Affected 2.3.0 to before 2.10.2 Fixed in 2.10.2 Patch available GHSA-499r-g7pc-vmp9
  • composer/composer (Packagist) Vendor— Affected 1.0.0 to before 2.2.29 Fixed in 2.2.29 Patch available GHSA-499r-g7pc-vmp9

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*——composer
  • cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:* Versions — — ·composer

Remediation

  • Fix · CNA composer (composer) Fixed in 2.2.29, 2.10.2
  • Fix · GHSA-499r-g7pc-vmp9 composer/composer (Packagist) Fixed in 2.10.2 Advisory →
  • Fix · GHSA-499r-g7pc-vmp9 composer/composer (Packagist) Fixed in 2.2.29 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat Hardened Images

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-59948
  2. 2026-10-03 Alias added: GHSA-499r-g7pc-vmp9

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-2024-23311 Composer vulnerable to command injection via malicious git/hg branch names CVSS 3.1HIGH 8.8
  • TI-2021-10185 Code injection in composer CVSS 3.1HIGH 8.8
  • TI-2022-08641 Missing input validation can lead to command execution in composer CVSS 3.1HIGH 8.8
  • TI-2026-29055 Composer has Command Injection via Malicious Perforce Reference CVSS 3.1HIGH 8.8
See all 17 →

Sources