CVE-2024-35241
PHP vulnerability analysis and mitigation

Overview

Composer, a dependency manager for PHP, disclosed a critical security vulnerability (CVE-2024-35241) affecting versions prior to 2.2.24 and 2.7.7. The vulnerability was discovered in the status, reinstall, and remove commands when packages are installed from source via git containing specially crafted branch names in the repository (GitHub Advisory, NVD).

Technical details

The vulnerability is classified as a command injection flaw (CWE-77) with a CVSS v3.1 base score of 8.8 (HIGH). The issue specifically affects the package management commands when interacting with git repositories containing maliciously crafted branch names, potentially leading to code execution (GitHub Advisory, Security Online).

Impact

If exploited, this vulnerability allows attackers to execute arbitrary code on affected systems through specially crafted git branch names. While popular repositories like Packagist.org are not directly vulnerable to remote code execution, users who install packages from untrusted sources could be at risk (Security Online).

Mitigation and workarounds

Users are advised to upgrade to version 2.2.24 for 2.2 LTS or 2.7.7 for mainline. As a workaround, users can avoid installing dependencies via git by using the --prefer-dist option or setting the preferred-install: dist configuration (NVD, Fedora Update).

Community reactions

The vulnerability has prompted immediate response from distribution maintainers, with Fedora Project quickly releasing security updates for both Fedora 39 and 40 to address the issue (Fedora Update 39, Fedora Update 40).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-54236CRITICAL9.1
  • PHPPHP
  • cpe:2.3:a:adobe:commerce
NoYesSep 09, 2025
GHSA-9v82-vcjx-m76jHIGH8.8
  • PHPPHP
  • shopware/core
NoYesSep 10, 2025
CVE-2025-52277MEDIUM6.1
  • PHPPHP
  • yeswiki/yeswiki
NoNoSep 09, 2025
CVE-2025-58759MEDIUM5.1
  • PHPPHP
  • datahihi1/tiny-env
NoYesSep 09, 2025
CVE-2025-58758MEDIUM5.1
  • PHPPHP
  • datahihi1/tiny-env
NoYesSep 09, 2025

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