
CVE catalog
CVE-2024-35242
Composer vulnerabilities
- Severity
- High · CVSS 7.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 3.28% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | composer | sid | 2.10.3-1 | fixed |
| Debian | composer | forky | 2.10.3-1 | fixed |
| Debian | composer | trixie | 2.8.8-1+deb13u3 | fixed |
| Debian | composer | bookworm | 2.5.5-1+deb12u5 | fixed |
| Debian | composer | bookworm-security | 2.5.5-1+deb12u2 | fixed |
| Ubuntu | composer | noble | 2.7.1-2ubuntu0.1~esm1 | fixed |
| Ubuntu | composer | pro | 2.5.8-1 | vulnerable |
| Ubuntu | composer | pro | 2.6.5-1 | vulnerable |
| Ubuntu | composer | pro | 2.6.6-1 | vulnerable |
| Ubuntu | composer | pro | 2.7.1-2 | vulnerable |
| Ubuntu | composer | pro | 2.7.1-2ubuntu0.1~esm1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | composer | source | sid | 2.7.7-1 | not yet assigned | Not reported | [1073126] |
| Debian | composer | source | forky | 2.7.7-1 | not yet assigned | Not reported | [1073126] |
| Debian | composer | source | trixie | 2.7.7-1 | not yet assigned | Not reported | [1073126] |
| Debian | composer | source | bookworm | 2.5.5-1+deb12u2 | not yet assigned | Not reported | [1073126] |
| Ubuntu | composer | deb | noble | 2.7.1-2ubuntu0.1~esm1 | Not reported | Not reported | Not reported |
| Ubuntu | composer | deb | pro | 2.7.1-2ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2024-35242 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [composer]Fixed
Details (4)
2.5.5-1+deb12u5· all · bookwormFixed · Fixed:
2.5.5-1+deb12u2usn · composer · debian · bookworm; usn · composer · debian · 12
2.5.5-1+deb12u5· all · bookwormFixed · Fixed:
2.5.5-1+deb12u2usn · composer · debian · bookworm; usn · composer · debian · 12
2.5.5-1+deb12u2· all · bookworm-securityFixed · Fixed:
2.5.5-1+deb12u2usn · composer · debian · bookworm; usn · composer · debian · 12
2.5.5-1+deb12u2· all · bookworm-securityFixed · Fixed:
2.5.5-1+deb12u2usn · composer · debian · bookworm; usn · composer · debian · 12
[Debian 13 (Trixie)]
- [composer]Fixed
Details (2)
2.8.8-1+deb13u3· all · trixieFixed · Fixed:
2.7.7-1usn · composer · debian · 13
2.8.8-1+deb13u3· all · trixieFixed · Fixed:
2.7.7-1usn · composer · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2026_3105-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-35242]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2024-35242]
- [https://security-tracker.debian.org/tracker/CVE-2024-35242]
- [https://ubuntu.com/security/notices/USN-7603-1]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]