GHSA-h5h8-pc6h-jvvx · Severity: high · Ecosystem: composer — Composer's missing argument delimiter can lead to code execution via VCS repository URLs or source download URLs on systems with Mercurial
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.
Conclusion & alert: CVE-2021-29472 is rated High Exploit Risk (80.9/100): CVSS High severity, with medium exploitation likelihood (EPSS 2.58%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-04 | 1.97% | 2.58% | +0.61% |
| 2 | 2026-05-28 | 2.74% | 1.97% | -0.77% |
| 3 | 2026-05-22 | — | 2.74% | — |
Full EPSS history (31 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
| 6.5 | 2.0 | MEDIUM |
|
8.0 | 6.4 | [email protected] |
GHSA-h5h8-pc6h-jvvx · Severity: high · Ecosystem: composer — Composer's missing argument delimiter can lead to code execution via VCS repository URLs or source download URLs on systems with Mercurial
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
high | CVE-2021-29472: 1 source package rows (composer); 7 state rows across 7 repos (3.17-community, 3.18-community, 3.19-community, 3.20-community, 3.21-community, 3.22-community, edge-community); fixed 7, open 0. | https://security.alpinelinux.org/vuln/CVE-2021-29472 |
debian
|
not yet assigned | CVE-2021-29472 not yet assigned priority: Debian including 1 source packages (composer), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. | https://security-tracker.debian.org/tracker/CVE-2021-29472 |
ubuntu
|
medium | CVE-2021-29472 medium priority: Ubuntu including 1 source packages (composer), 15 status rows across 15 suites (bionic, focal, groovy, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, trusty, upstream, xenial): not-affected 8, released 4, ignored 2, DNE 1. | https://ubuntu.com/security/CVE-2021-29472 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| getcomposer | composer | < 1.10.22 | cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:* |
| getcomposer | composer | >= 2.0, < 2.0.13 | cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:* |
| debian | debian_linux | 9.0 | cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
| debian | debian_linux | 10.0 | cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
| fedoraproject | fedora | 33 | cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* |
| fedoraproject | fedora | 34 | cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://blog.sonarsource.com/php-supply-chain-attack-on-composer/ | Exploit Third Party Advisory |
| https://getcomposer.org/ | Vendor Advisory |
| https://github.com/composer/composer/security/advisories/GHSA-h5h8-pc6h-jvvx | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/05/msg00009.html | Mailing List Third Party Advisory |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FAQUAMGO4Q4BLNZ2OH4CXQD7UK4IO2GE/ | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KN3DMFH42BJW45VT6FYF2RXKC26D6VC2/ | |
| https://www.debian.org/security/2021/dsa-4907 | Third Party Advisory |