Skip to content

Composer allows cache poisoning from other projects built on the same host

High severity GitHub Reviewed Published Sep 21, 2023 to the GitHub Advisory Database • Updated Jan 24, 2024

Package

composer composer/composer (Composer)

Affected versions

<= 1.0.0-alpha11

Patched versions

1.0.0

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.

References

Published by the National Vulnerability Database Sep 21, 2023
Published to the GitHub Advisory Database Sep 21, 2023
Reviewed Sep 21, 2023
Last updated Jan 24, 2024

Severity

High
8.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2015-8371

GHSA ID

GHSA-725m-w832-q973

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.