Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Composer versions from 2.0.0-alpha1 before 2.0.13 and before 1.10.22 are vulnerable. Mercurial repository URLs in the root composer.json and package source download URLs are not sanitized, so a specially crafted URL can execute commands through the Mercurial driver when hg is installed. Services that pass user input to Composer, such as Packagist-style hosts, are most at risk; upgrade composer/composer to 1.10.22 or 2.0.13.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 8.8 | High | 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | CNA (GitHub_M) |
- CISA KEV Not listed.
- EPSS 0.048, the 92nd percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 27 Apr 2021, 11:17 UTC Published by the maintainers as a GitHub repository advisory
- 31 Oct 2026, 14:25 UTC First seen by agentprime
- 31 Oct 2026, 14:25 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-h5h8-pc6h-jvvx
- OSV: GHSA-h5h8-pc6h-jvvx
- github.com/composer/composer/security/advisories/GHSA-h5h8-pc6h-jvvx
- nvd.nist.gov/vuln/detail/CVE-2021-29472
- blog.sonarsource.com/php-supply-chain-attack-on-composer
- getcomposer.org
- github.com/FriendsOfPHP/security-advisories/blob/master/composer/composer/CVE-2021-29472.yaml
- github.com/composer/composer
- lists.debian.org/debian-lts-announce/2021/05/msg00009.html
- lists.fedoraproject.org/archives/list/[email protected]/message/FAQUAMGO4Q4BLNZ2OH4CXQD7UK4IO2GE
- lists.fedoraproject.org/archives/list/[email protected]/message/KN3DMFH42BJW45VT6FYF2RXKC26D6VC2
- www.debian.org/security/2021/dsa-4907