CVE-2024-35241: Composer is a dependency manager for PHP
Affects composerSource GCVE Database
Not known to be exploited · CVSS 8.8 High · fixed in 1.0.0~beta2-1ubuntu0.1~esm2 : patch composer soon.
Data as of 24 Nov 2026, 19:26 UTC
- Patch
- Available – fixed in 1.0.0~beta2-1ubuntu0.1~esm2, 1.6.3-1ubuntu0.1~esm2, 1.10.1-1ubuntu0.1~esm2 +2
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 10 Jun 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu Pro 24.04 LTScomposerpkg:deb/ubuntu/composer?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTScomposerpkg:deb/ubuntu/composer?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTScomposerpkg:deb/ubuntu/composer?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTScomposerpkg:deb/ubuntu/composer?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in
|
Ubuntu Pro 16.04 LTScomposerpkg:deb/ubuntu/composer?arch=source&distro=esm-apps/xenialOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Composer is a dependency manager for PHP. On the 2.x branch prior to versions 2.2.24 and 2.7.7, the `status`, `reinstall` and `remove` commands with packages installed from source via git containing specially crafted branch names in the repository can be used to execute code. Patches for this issue are available in version 2.2.24 for 2.2 LTS or 2.7.7 for mainline. As a workaround, avoid installing dependencies via git by using `--prefer-dist` or the `preferred-install: dist` config setting.
References
- ubuntu.com/security/CVE-2024-35241 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-35241 (opens in a new tab)
- github.com/composer/composer/security/advisories/GHSA-47f6-5gq3-vx9c (opens in a new tab)
- github.com/composer/composer/commit/b93fc6ca437da35ae73d667d0618749c763b67d4 (opens in a new tab)
- github.com/composer/composer/commit/ee28354ca8d33c15949ad7de2ce6656ba3f68704 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VLPJHM2WWSYU2F6KHW2BYFGYL4IGTKHC/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PO4MU2BC7VR6LMHEX4X7DKGHVFXZV2MC/ (opens in a new tab)
- ubuntu.com/security/notices/USN-7603-1 (opens in a new tab)