Security Resilience

CVE-2024-35242

RCE

Published
10 June 2024
Modified
15 April 2026
CVSS Score v3.1 8.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS Score 0.033 89th percentile
Risk Priority 78 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-35242 is a high-severity Command Injection (CWE-77) vulnerability in Fedoraproject (inferred from references). Its CVSS base score is 8.8 (High).

Operationally, ranked in the top 11% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

Composer is a dependency manager for PHP. CVE-2024-35242 is a command-injection vulnerability (CWE-77) affecting the 2.x branch prior to versions 2.2.24 and 2.7.7. When the `composer install` command executes inside a git or Mercurial repository containing specially crafted branch names, arbitrary commands can be injected and run. The flaw carries a CVSS 3.1 score of 8.8.

An attacker who can induce a victim to clone an untrusted repository and subsequently run `composer install` can achieve remote command execution with the privileges of the Composer process, resulting in full confidentiality, integrity, and availability impact.

Patches addressing the issue are available in Composer 2.2.24 (LTS) and 2.7.7 (mainline), with the fixes documented in the associated GitHub commits and security advisory GHSA-v9qv-c7wm-wgmf. As a workaround, users are advised to avoid cloning repositories from untrusted sources. The EPSS score reached a peak of 0.2521 and currently stands at 0.2379 after receding.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

Composer is a dependency manager for PHP. On the 2.x branch prior to versions 2.2.24 and 2.7.7, the `composer install` command running inside a git/hg repository which has specially crafted branch names can lead to command injection. This requires cloning…

more

untrusted repositories. Patches are available in version 2.2.24 for 2.2 LTS or 2.7.7 for mainline. As a workaround, avoid cloning potentially compromised repositories.

CWE(s)

Related Threats

CVEs Like This One

CVE-2025-45489Shared CWE-77
CVE-2026-39054Shared CWE-77
CVE-2025-57633Shared CWE-77
CVE-2025-70161Shared CWE-77
CVE-2024-44400Shared CWE-77
CVE-2025-52046Shared CWE-77
CVE-2025-60838Shared CWE-77
CVE-2023-50274Shared CWE-77
CVE-2026-79846Shared CWE-77
CVE-2024-44570Shared CWE-77

Affected Assets

Fedoraproject
—
inferred from references and description; NVD did not file a CPE for this CVE

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation can discover command-construction flaws before deployment.

Input validation directly stops construction of commands from untrusted data containing special elements.

Secure engineering principles include proper neutralization and safe command construction practices.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development catches command-injection vulnerabilities before release.

prevents

Secure coding standards require proper escaping and parameterization of commands, directly eliminating CWE-77.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-77, a class-level weakness, and none of its children carries one either.

References