CVE catalog

CVE-2024-35242

Composer vulnerabilities

[CVE catalog]

Severity
High · CVSS 7.8CVSS: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.

DistributionPackageReleaseVersionStatus
Debiancomposersid2.10.3-1fixed
Debiancomposerforky2.10.3-1fixed
Debiancomposertrixie2.8.8-1+deb13u3fixed
Debiancomposerbookworm2.5.5-1+deb12u5fixed
Debiancomposerbookworm-security2.5.5-1+deb12u2fixed
Ubuntucomposernoble2.7.1-2ubuntu0.1~esm1fixed
Ubuntucomposerpro2.5.8-1vulnerable
Ubuntucomposerpro2.6.5-1vulnerable
Ubuntucomposerpro2.6.6-1vulnerable
Ubuntucomposerpro2.7.1-2vulnerable
Ubuntucomposerpro2.7.1-2ubuntu0.1~esm1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancomposersourcesid2.7.7-1not yet assignedNot reported[1073126]
Debiancomposersourceforky2.7.7-1not yet assignedNot reported[1073126]
Debiancomposersourcetrixie2.7.7-1not yet assignedNot reported[1073126]
Debiancomposersourcebookworm2.5.5-1+deb12u2not yet assignedNot reported[1073126]
Ubuntucomposerdebnoble2.7.1-2ubuntu0.1~esm1Not reportedNot reportedNot reported
Ubuntucomposerdebpro2.7.1-2ubuntu0.1~esm1Not reportedUBUNTU-CVE-2024-35242Not reported

[Debian bug #1073126]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [composer]Fixed
    Details (4)
    • 2.5.5-1+deb12u5 · all · bookworm

      Fixed · Fixed: 2.5.5-1+deb12u2

      usn · composer · debian · bookworm; usn · composer · debian · 12

    • 2.5.5-1+deb12u5 · all · bookworm

      Fixed · Fixed: 2.5.5-1+deb12u2

      usn · composer · debian · bookworm; usn · composer · debian · 12

    • 2.5.5-1+deb12u2 · all · bookworm-security

      Fixed · Fixed: 2.5.5-1+deb12u2

      usn · composer · debian · bookworm; usn · composer · debian · 12

    • 2.5.5-1+deb12u2 · all · bookworm-security

      Fixed · Fixed: 2.5.5-1+deb12u2

      usn · composer · debian · bookworm; usn · composer · debian · 12

[Debian 13 (Trixie)]

  • [composer]Fixed
    Details (2)
    • 2.8.8-1+deb13u3 · all · trixie

      Fixed · Fixed: 2.7.7-1

      usn · composer · debian · 13

    • 2.8.8-1+deb13u3 · all · trixie

      Fixed · Fixed: 2.7.7-1

      usn · composer · debian · 13

Observed:

References