8.8

CVE-2024-35241: composer Command Injection

CVSS: 8.8v3.1HighDeferred
AliasesUBUNTU-CVE-2024-35241DEBIAN-CVE-2024-35241CGA-9xff-5wvp-wf49
Published 10-06-2024Last modified 21-04-2025

Vulnerability summary

CVE-2024-35241 is a high (CVSS 8.8) Command Injection vulnerability in composer. EPSS estimates a 1.05% chance of exploitation in the next 30 days, higher than 63.7% of scored vulnerabilities.

Overall risk
35/100
0100
Medium · default modelHow is this calculated?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
1.05%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 7 · Related 7

Timeline

  1. 10-06-2024
    PublishedVulnerability first disclosed.
  2. 21-04-2025
    Last modifiedVulnerability information updated.

Description

Composer is a dependency manager for PHP. On the 2.x branch prior to versions 2.2.24 and 2.7.7, the `status`, `reinstall` and `remove` commands with packages installed from source via git containing specially crafted branch names in the repository can be used to execute code. Patches for this issue are available in version 2.2.24 for 2.2 LTS or 2.7.7 for mainline. As a workaround, avoid installing dependencies via git by using `--prefer-dist` or the `preferred-install: dist` config setting.

CVSS metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

1.05%

Chance of exploitation in the next 30 days

Percentile

64%

Versus all other CVEs

30-day change

0.00 pp

From 1.05% on 19-09-2026

19-09-202619-10-2026
EPSS score
1.05%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard1 product
  • composer< 2.7.7-r0
Composer1 product
  • composer≥ 2.0, < 2.2.24 | ≥ 2.3, < 2.7.7
Debian1 product
  • composer< 2.5.5-1+deb12u2 | < 2.7.7-1
Ubuntu1 product
  • composer< 1.0.0~beta2-1ubuntu0.1~esm2 | < 1.6.3-1ubuntu0.1~esm2 | < 1.10.1-1ubuntu0.1~esm2 | < 2.2.6-2ubuntu4+esm1 | < 2.7.1-2ubuntu0.1~esm1
Wolfi1 product
  • composer< 2.7.7-r0

5 vendors · 5 products

References

13 links
Show all 13 references