CVE-2015-8371 Composer allows cache poisoning from other projects built on the same host

High 8.8 Published Updated

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.

PackageAffectedFixed in
composer/composer PackagistAll versions1.0.0
composer/composer PackagistAll versions1.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.

Sources

Also known as DEBIAN-CVE-2015-8371, GHSA-725m-w832-q973.

Is CVE-2015-8371 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free