
CVE catalog
CVE-2021-29472
composer: CVE-2021-29472
- Severity
- High · CVSS 8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 4.75% · Oct 27, 2026
Composer is a dependency manager for PHP. URLs for Mercurial repositories in the root composer.json and package source download URLs are not sanitized correctly. Specifically crafted URL values allow code to be executed in the HgDriver if hg/Mercurial is installed on the system. The impact to Composer users directly is limited as the composer.json file is typically under their own control and source download URLs can only be supplied by third party Composer repositories they explicitly trust to download and execute source code from, e.g. Composer plugins. The main impact is to services passing user input to Composer, including Packagist.org and Private Packagist. This allowed users to trigger remote code execution. The vulnerability has been patched on Packagist.org and Private Packagist within 12h of receiving the initial vulnerability report and based on a review of logs, to the best of our knowledge, was not abused by anyone. Other services/tools using VcsRepository/VcsDriver or derivatives may also be vulnerable and should upgrade their composer/composer dependency immediately. Versions 1.10.22 and 2.0.13 include patches for this issue.
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 | pro | 1.9.0-2 | vulnerable |
| Ubuntu | composer | pro | 1.9.1-1 | vulnerable |
| Ubuntu | composer | pro | 1.9.2-1 | vulnerable |
| Ubuntu | composer | pro | 1.9.3-1 | vulnerable |
| Ubuntu | composer | pro | 1.10.0-1 | vulnerable |
| Ubuntu | composer | pro | 1.10.1-1 | vulnerable |
| Ubuntu | composer | pro | 1.10.1-1ubuntu0.1~esm1 | fixed |
| Ubuntu | composer | pro | 1.9.0-2 | vulnerable |
| Ubuntu | composer | pro | 1.9.1-1 | vulnerable |
| Ubuntu | composer | pro | 1.9.2-1 | vulnerable |
| Ubuntu | composer | pro | 1.9.3-1 | vulnerable |
| Ubuntu | composer | pro | 1.10.0-1 | vulnerable |
| Ubuntu | composer | pro | 1.10.1-1 | vulnerable |
| Ubuntu | composer | pro | 1.10.1-1ubuntu0.1~esm1 | fixed |
| Opensuse | php-composer | tumbleweed | 1.10.22-2.2 | fixed |
| Suse | php-composer | package hub 15 sp1 | 1.10.22-bp153.2.3.1 | fixed |
| Suse | php-composer | package hub 15 sp2 | 1.10.22-bp153.2.3.1 | fixed |
| Suse | php-composer | package hub 15 sp3 | 1.10.22-bp153.2.3.1 | fixed |
| Opensuse | php-composer | leap 15.2 | 1.10.22-bp153.2.3.1 | fixed |
| Opensuse | php-composer | leap 15.3 | 1.10.22-bp153.2.3.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | composer | source | sid | 2.0.9-2 | not yet assigned | Not reported | Not reported |
| Debian | composer | source | forky | 2.0.9-2 | not yet assigned | Not reported | Not reported |
| Debian | composer | source | trixie | 2.0.9-2 | not yet assigned | Not reported | Not reported |
| Debian | composer | source | bookworm | 2.0.9-2 | not yet assigned | Not reported | Not reported |
| Ubuntu | composer | deb | pro | 1.10.1-1ubuntu0.1~esm1 | Not reported | USN-5220-1 | Not reported |
| Ubuntu | composer | deb | pro | 1.10.1-1ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2021-29472 | Not reported |
| Opensuse | php-composer | rpm | tumbleweed | 1.10.22-2.2 | Not reported | OPENSUSE-SU-2024:11166-1 | Not reported |
| Suse | php-composer | rpm | package hub 15 sp1 | 1.10.22-bp153.2.3.1 | Not reported | OPENSUSE-SU-2021:1289-1 | Not reported |
| Suse | php-composer | rpm | package hub 15 sp2 | 1.10.22-bp153.2.3.1 | Not reported | OPENSUSE-SU-2021:1289-1 | Not reported |
| Suse | php-composer | rpm | package hub 15 sp3 | 1.10.22-bp153.2.3.1 | Not reported | OPENSUSE-SU-2021:1289-1 | Not reported |
| Opensuse | php-composer | rpm | leap 15.2 | 1.10.22-bp153.2.3.1 | Not reported | OPENSUSE-SU-2021:1289-1 | Not reported |
| Opensuse | php-composer | rpm | leap 15.3 | 1.10.22-bp153.2.3.1 | Not reported | OPENSUSE-SU-2021:1289-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [composer]Fixed
Details (4)
2.5.5-1+deb12u5· all · bookwormFixed · Fixed:
2.0.9-2dsa · composer · debian · bookworm; dsa · composer · debian · 12
2.5.5-1+deb12u5· all · bookwormFixed · Fixed:
2.0.9-2dsa · composer · debian · bookworm; dsa · composer · debian · 12
2.5.5-1+deb12u2· all · bookworm-securityFixed · Fixed:
2.0.9-2dsa · composer · debian · bookworm; dsa · composer · debian · 12
2.5.5-1+deb12u2· all · bookworm-securityFixed · Fixed:
2.0.9-2dsa · composer · debian · bookworm; dsa · composer · debian · 12
[Debian 13 (Trixie)]
- [composer]Fixed
Details (2)
2.8.8-1+deb13u3· all · trixieFixed · Fixed:
2.0.9-2dsa · composer · debian · 13
2.8.8-1+deb13u3· all · trixieFixed · Fixed:
2.0.9-2dsa · composer · debian · 13
[openSUSE Tumbleweed]
- [php-composer]Fixed
Source package: [php-composer]
Details (1)
1.10.26-2.8· noarch · tumbleweedFixed · Fixed:
1.10.22-2.2dsa · php-composer · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2021_1289-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-29472]
- [https://osv.dev/vulnerability/DLA-2654-1]
- [https://osv.dev/vulnerability/DSA-4907-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-29472]
- [https://osv.dev/vulnerability/USN-5220-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2021:1289-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:11166-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-29472]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-29472.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]