# CVE-2026-59946: Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files

- Severity: Medium 6.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-07-08T19:32:38.089Z
- Modified: 2026-07-27T09:00:07.259Z
- Also known as: GHSA-gjfg-22fp-rrxx, BIT-COMPOSER-2026-59946
- Weaknesses: CWE-22, CWE-732
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- composer composer: >= 1.0, < 2.2.29; >= 2.3.0, < 2.10.2
- composer/composer (Packagist): from 2.3.0 before 2.10.2; from 1.0.0 before 2.2.29
- composer (Bitnami): from 1.0.0 before 2.2.29; from 2.3.0 before 2.10.2

## Every score

- GitHub_M: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/composer/composer/security/advisories/GHSA-gjfg-22fp-rrxx> (web)
- <https://github.com/composer/composer/commit/502c6c4f699802d9cf464728b3e8a95674f919a0> (web)
- <https://github.com/composer/composer/commit/c50b1efd13ebd73f6dca19b31424c5a02bf93cc1> (web)
- <https://github.com/composer/composer/releases/tag/2.10.2> (web)
- <https://github.com/composer/composer/releases/tag/2.2.29> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59946> (advisory, web)
- <https://github.com/composer/composer> (package)

## Sources

- CVE List: [CVE-2026-59946](https://www.cve.org/CVERecord?id=CVE-2026-59946), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-gjfg-22fp-rrxx](https://github.com/advisories/GHSA-gjfg-22fp-rrxx), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-59946](https://nvd.nist.gov/vuln/detail/CVE-2026-59946), Public domain, modified 2026-07-10
- Bitnami Vulnerability Database: [BIT-COMPOSER-2026-59946](https://osv.dev/vulnerability/BIT-COMPOSER-2026-59946), Apache-2.0, modified 2026-07-27

---

Page: https://cve.day/CVE-2026-59946 · Whole record: https://cve.day/CVE-2026-59946.json · Rebuilt by cve.day 2026-11-25T22:59:27.425Z
