CVE-2015-8371 Composer allows cache poisoning from other projects built on the same host
Attackers can poison the Composer cache to inject malicious code into server-side build processes on shared hosts.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2015-8371?
CVE-2015-8371 is a high-severity vulnerability in n/a, published on 21 Sep 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Composer before 2016-02-10 allows cache poisoning from other projects built on the same host. This results in attacker-controlled code entering a server-side build process. The issue occurs because of the way that dist packages are cached. The cache key is derived from the package name, the dist type, and certain other data from the package repository (which may simply be a commit hash, and thus can be found by an attacker). Versions through 1.0.0-alpha11 are affected, and 1.0.0 is unaffected.
Weakness: CWE-345
Which versions are affected by CVE-2015-8371?
2 open source packages ship an affected version, including composer/composer. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
composer/composer Packagist | All versions | 1.0.0 |
composer/composer Packagist | All versions | 1.0.0 |
Products include Getcomposer Composer.
How do I fix CVE-2015-8371?
Upgrade composer/composer to 1.0.0 or later.
Is CVE-2015-8371 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2015-8371 exists.
Other vulnerabilities in n/a
- CVE-2026-40261 Composer has Command Injection via Malicious Perforce Reference
- CVE-2024-24821 Code execution and possible privilege escalation via compromised InstalledVersions.php or installed.php in Composer
- CVE-2021-41116 Command injection in composer on Windows
- CVE-2026-40176 Composer is vulnerable to Command Injection via Malicious Perforce Repository
- CVE-2025-67746 Composer vulnerable to ANSI sequence injection
Sources
Also known as DEBIAN-CVE-2015-8371, GHSA-725m-w832-q973.