Skip to main content
No exploitation reportedFix available

CVE-2024-35241

No exploitation reported by the sources we read.

  • Published2024-06-10
  • Fixed in2.7.7 · 2.2.24
  • WeaknessCWE-77

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-06-1022:15CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-10-23 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2024-35241?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2024-35241?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

CISA-ADP · OSV
Getcomposer composer
BranchAffectedFixed in
2.x≥ 2.3, < 2.7.72.7.7
2.x≥ 2.3.0, < 2.7.72.7.7
2.x≥ 2.0, < 2.2.242.2.24
2.x≥ 2.0.0, < 2.2.242.2.24
Fedoraproject fedora
BranchAffectedFixed in
39.x= 39no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Fix

  1. Update Getcomposer composer to 2.7.7 · 2.2.24

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
none listed
PoC-in-GitHub

Sources

  • NVDCVE recordread 2026-10-23
  • CISA-ADPSSVC decisionnone2024-07-15
  • OpenCVESSVC decisionnone—
  • CNACVSS 3.18.8read 2026-10-23
  • CNAweakness (CWE)CWE-77read 2026-10-23
  • FIRST EPSSEPSS score1.1 %2026-10-23
  • OSVaffected packages—

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
2024-06-10
Last Modified
2026-06-17
NVD status
Deferred

Frequently asked questions

What is CVE-2024-35241?

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.

Is CVE-2024-35241 actively exploited?

Active exploitation of CVE-2024-35241 has not been confirmed. Its EPSS score was 1.1% on 2026-10-23, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-35241?

CVE-2024-35241 has a CVSS v3 base score of 8.8 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Running composer? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month