Vulnerability · Published Jul 8, 2026 · Assigned by GitHub_M
CVE-2026-59946Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files
Medium 6.1
In plain English
A medium-severity path traversal in composer from composer. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | composer | no fix listed | DEBIAN-CVE-2026-59946 |
| Debian:13 | composer | no fix listed | DEBIAN-CVE-2026-59946 |
| Debian:14 | composer | 2.10.2-1 | DEBIAN-CVE-2026-59946 |
| Packagist | composer/composer | 2.2.29 | GHSA-gjfg-22fp-rrxx |
| Packagist | composer/composer | 2.10.2 | GHSA-gjfg-22fp-rrxx |
| Ubuntu:25.10 | composer | no fix listed | UBUNTU-CVE-2026-59946 |
| Ubuntu:26.04:LTS | composer | no fix listed | UBUNTU-CVE-2026-59946 |
| Ubuntu:26.10 | composer | no fix listed | UBUNTU-CVE-2026-59946 |
Affected products (as reported)
Weakness: CWE-22, CWE-732 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
References
- https://github.com/composer/composer/security/advisories/GHSA-gjfg-22fp-rrxx x_refsource_CONFIRM
- https://github.com/composer/composer/commit/502c6c4f699802d9cf464728b3e8a95674f919a0 x_refsource_MISC
- https://github.com/composer/composer/commit/c50b1efd13ebd73f6dca19b31424c5a02bf93cc1 x_refsource_MISC
- https://github.com/composer/composer/releases/tag/2.10.2 x_refsource_MISC
- https://github.com/composer/composer/releases/tag/2.2.29 x_refsource_MISC