CVE-2024-35242
Composer vulnerable to command injection via malicious git/hg branch names
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
1Exploited in Wild
-Decision
Descriptions
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 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.
Composer es un administrador de dependencias para PHP. En la rama 2.x anterior a las versiones 2.2.24 y 2.7.7, el comando `composer install` que se ejecuta dentro de un repositorio git/hg que tiene nombres de rama especialmente manipulados puede provocar la inyección de comandos. Esto requiere clonar repositorios que no sean de confianza. Los parches están disponibles en la versión 2.2.24 para 2.2 LTS o 2.7.7 para la línea principal. Como workaround, evite clonar repositorios potencialmente comprometidos.
CVSS Scores
SSVC
- Decision:Track*
Timeline
- 2024-05-14 CVE Reserved
- 2024-06-10 CVE Published
- 2024-06-11 EPSS Updated
- 2024-07-15 First Exploit
- 2024-08-02 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
CAPEC
References (6)
URL | Date | SRC |
---|---|---|
https://github.com/KKkai0315/CVE-2024-35242 | 2024-07-15 |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Composer Search vendor "Composer" | Composer Search vendor "Composer" for product "Composer" | >= 2.0.0 < 2.2.24 Search vendor "Composer" for product "Composer" and version " >= 2.0.0 < 2.2.24" | en |
Affected
| ||||||
Composer Search vendor "Composer" | Composer Search vendor "Composer" for product "Composer" | >= 2.3.0 < 2.7.7 Search vendor "Composer" for product "Composer" and version " >= 2.3.0 < 2.7.7" | en |
Affected
|