Path Traversal in Composer
CVE-2026-59946
Composer is a dependency Manager for the PHP language. Prior to 2.2.29 and 2.10.2, a Composer package bin entry containing .. path segments can resolve outside the package install directory and cause Composer's binary installation flow to chmod an existing host file to a world-readable and world-executable mode during composer install, update, or require. This issue is fixed in versions 2.2.29 and 2.10.2.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N.
EPSS exploit prediction
EPSS: 0.002 (6.1th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 6th percentile — 6.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.002 · change: 0.000
Affected products
- Composer — versions >= 1.0, < 2.2.29, >= 2.3.0, < 2.10.2
Weakness classification (CWE)
References
- github.com/composer/composer/security/advisories/GHSA-gjfg-22fp-rrxx
- github.com/composer/composer/commit/502c6c4f699802d9cf464728b3e8a95674f919a0
- github.com/composer/composer/commit/c50b1efd13ebd73f6dca19b31424c5a02bf93cc1
- github.com/composer/composer/releases/tag/2.10.2
- github.com/composer/composer/releases/tag/2.2.29
Frequently asked questions
- What is CVE-2026-59946?
- CVE-2026-59946 is a medium-severity vulnerability in Composer, classified under Path Traversal. CVSS score: 6.1/10. Published 2026-07-08.
- How severe is CVE-2026-59946?
- Medium severity. CVSS v3 base score is 6.1 out of 10.