# CVE-2026-59948: Composer: Arbitrary file write outside vendor via malicious transitive package name

- Severity: High 7.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- 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:33:48.414Z
- Modified: 2026-12-01T16:30:34.202Z
- Also known as: GHSA-499r-g7pc-vmp9, BIT-COMPOSER-2026-59948
- Weaknesses: CWE-22, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(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 7.0 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/composer/composer/security/advisories/GHSA-499r-g7pc-vmp9> (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-59948> (advisory, web)
- <https://github.com/composer/composer> (package)

## Sources

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

---

Page: https://cve.day/CVE-2026-59948 · Whole record: https://cve.day/CVE-2026-59948.json · Rebuilt by cve.day 2026-12-01T17:07:25.140Z
