CVE-2024-35242
PHP vulnerability analysis and mitigation

Overview

Composer, a dependency manager for PHP, disclosed a critical security vulnerability (CVE-2024-35242) affecting versions prior to 2.2.24 and 2.7.7. The vulnerability involves a command injection flaw where specially crafted branch names in git/hg repositories can lead to command injection when running the composer install command. This vulnerability requires cloning untrusted repositories to be exploitable (GitHub Advisory).

Technical details

The vulnerability is classified as a command injection vulnerability (CWE-77) with a CVSS v3.1 base score of 8.8 (HIGH), and vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. The issue specifically affects the composer install command when executed inside a git or hg repository containing maliciously crafted branch names (NVD).

Impact

If successfully exploited, this vulnerability could allow attackers to execute arbitrary code on affected systems through command injection. The high CVSS score indicates potential for significant impact on system confidentiality, integrity, and availability when exploited (GitHub Advisory).

Mitigation and workarounds

Two primary mitigation options are available: 1) Upgrade to patched versions - version 2.2.24 for 2.2 LTS or 2.7.7 for mainline, 2) As a workaround, avoid cloning potentially compromised repositories (Security Online, Fedora Update).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management