synced 1 MIN AGO
01 Record

CVE-2024-35242

Composer vulnerable to command injection via malicious git/hg branch names

HighPUBLISHEDCNA: GitHub_M
CNA base score8.8 CVSS v3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

02 Description

Composer vulnerable to command injection via malicious git/hg branch names

03 Exploitation and scoring

Exploitation
Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
SSVC decision
  • ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
  • AutomatablenoAt least one step from reconnaissance to exploitation cannot be reliably automated.
  • Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
3.28% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 88.3% of scored records. A rank, not a probability.
NVD base score
8.8 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD analysis status
Deferred. NVD last modified this record on 2026-06-17.
Red Hat severity
No Red Hat rating. Red Hat rates the CVEs that affect its products.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2024-06-10 21:23Z2 YR AGO
Last updated
2025-02-13 17:52Z1 YR AGO
Reserved
2024-05-14
Assigning CNA
GitHub_M
Record state
PUBLISHED
Severity
High (CVSS 8.8)
CNA CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
  • CWE-77Improper Neutralization of Special Elements used in a Command ('Command Injection')Class
Data version
5.1
Document digest
eb4ebaf053fd3020ba66576f1d165e170c35ccadc445a87b4641e126148f0068

05 Affected products

VendorProductVersionsPlatforms
composercomposer>= 2.0, < 2.2.24, >= 2.3, < 2.7.7—
fedoraprojectfedora39, 40—
getcomposercomposer2.0 to < 2.2.24, 2.3 to < 2.7.7—

06 References

07 Fixed in

Debian 12

  • composer
    Fixed in 2.5.5-1+deb12u2

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 13

  • composer
    Fixed in 2.7.7-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Debian 14

  • composer
    Fixed in 2.7.7-1

Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 16.04 LTS

  • composer
    Fixed in 1.0.0~beta2-1ubuntu0.1~esm2
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 18.04 LTS

  • composer
    Fixed in 1.6.3-1ubuntu0.1~esm2
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 20.04 LTS

  • composer
    Fixed in 1.10.1-1ubuntu0.1~esm2
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 22.04 LTS

  • composer
    Fixed in 2.2.6-2ubuntu4+esm1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

Ubuntu Pro 24.04 LTS

  • composer
    Fixed in 2.7.1-2ubuntu0.1~esm1
    Available with Ubuntu Pro: https://ubuntu.com/pro

Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.