cve.bz

CVE-2024-35241 composer composer

8.8 highEPSS 1.1%Fix available

High (8.8) in composer composer. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in composer/composer 2.2.24, 2.7.7.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 65th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-07-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-77 Improper Neutralization of Special Elements used in a Command
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-35241 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-35241?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-35241?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-35241 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
composer>= 2.0, < 2.2.24
composer>= 2.3, < 2.7.7

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-47f6-5gq3-vx9cPackagistcomposer/composer>=2.0 <2.2.242.2.24
GHSA-47f6-5gq3-vx9cPackagistcomposer/composer>=2.3 <2.7.72.7.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10composer1.8.4-1+deb10u4DLA-3838-1
Debian11composer2.0.9-2+deb11u3DSA-5715-1
Debian12composer2.5.5-1+deb12u2DEBIAN-CVE-2024-35241 DSA-5715-1
Debian13, 14composer2.7.7-1DEBIAN-CVE-2024-35241
UbuntuPro:16.04:LTScomposer1.0.0~beta2-1ubuntu0.1~esm2UBUNTU-CVE-2024-35241 USN-7603-1
UbuntuPro:18.04:LTScomposer1.6.3-1ubuntu0.1~esm2UBUNTU-CVE-2024-35241 USN-7603-1
UbuntuPro:20.04:LTScomposer1.10.1-1ubuntu0.1~esm2UBUNTU-CVE-2024-35241 USN-7603-1
UbuntuPro:22.04:LTScomposer2.2.6-2ubuntu4+esm1UBUNTU-CVE-2024-35241 USN-7603-1
UbuntuPro:24.04:LTScomposer2.7.1-2ubuntu0.1~esm1UBUNTU-CVE-2024-35241 USN-7603-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Module for Web and Scripting 15 SP5 and 3 morephp-composer22.2.3-150400.3.12.1SUSE-SU-2024:2106-1
SUSELinux Enterprise Module for Web and Scripting 15 SP6php-composer22.6.4-150600.3.3.1SUSE-SU-2024:2107-1
SUSELinux Enterprise Module for Web and Scripting 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6php-composer22.6.4-150600.3.12.1SUSE-SU-2026:3105-1
openSUSELeap 15.5php-composer22.2.3-150400.3.12.1SUSE-SU-2024:2106-1
openSUSELeap 15.6php-composer22.6.4-150600.3.3.1SUSE-SU-2024:2107-1
openSUSETumbleweedphp-composer22.7.7-1.1openSUSE-SU-2024:14040-1
Alpinev3.19, v3.20, v3.21 and 3 morecomposer2.7.7-r0ALPINE-CVE-2024-35241

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-40 Manipulating Writeable Terminal Devices Likelihood: High · Severity: Very High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-136 LDAP Injection Likelihood: High · Severity: High
  • CAPEC-183 IMAP/SMTP Command Injection Severity: Medium
  • CAPEC-248 Command Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON