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.
CVE-2026-59946
This medium-severity CVE scores 6.1 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit-prediction score not yet available (the EPSS model rescores nightly; freshly-published CVEs typically appear within 48 hours). GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- Lower severity and no public exploit yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 6.1
- EG Score
- 6.1(low)
- EPSS
- —
- KEV
- Not listed
Published
July 8, 2026
Last Modified
July 8, 2026
Advisory Details (5)
Auto-updated Jul 8, 2026Path traversal in package bin field lets dependencies chmod arbitrary host files · Advisory · composer/composer · GitHub
Affected: 2.2.29 (2.2 LTS line) and 2.10.2 (current 2.x line). Composer 1.x is end of life
https://github.com/composer/composer/security/advisories/GHSA-gjfg-22fp-rrxx2.2.29
Patch available: composer/composer 2.2.29
https://github.com/composer/composer/releases/tag/2.2.292.10.2
Patch available: composer/composer 2.10.2
https://github.com/composer/composer/releases/tag/2.10.2commit c50b1efd13eb (composer/composer)
Patch available: composer/composer 2.2.29 (contains commit c50b1efd13eb)
https://github.com/composer/composer/commit/c50b1efd13ebd73f6dca19b31424c5a02bf93cc1commit 502c6c4f6998 (composer/composer)
Patch available: composer/composer 2.10.2 (contains commit 502c6c4f6998)
https://github.com/composer/composer/commit/502c6c4f699802d9cf464728b3e8a95674f919a0Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 2× in last 7d / 2× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-08 19:46 UTCEG score recompute
- 2026-07-08 19:44 UTCMITRE cvelistV5first tracked
Related CVEs(same CWE)
Same CWE
10 shownCWE-22 · CWE-732
Frequently asked(4)
What is CVE-2026-59946?
When was CVE-2026-59946 disclosed?
What is the CVSS score of CVE-2026-59946?
How do I remediate CVE-2026-59946?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-59946
Is Your Infrastructure Affected by CVE-2026-59946?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.