CVE-2021-29472
HIGHEPSS 91th pctlDescription
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.
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Exploit Intelligence
High risk: more likely to be exploited than 91% of all known CVEs.
References
Related Vulnerabilities
Other CWE-88 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2016-10033 | Critical | 9.8 | 100% | KEV | Fix |
| CVE-2022-36804 | High | 8.8 | 99% | KEV | Fix |
| CVE-2026-24061 | Critical | 9.8 | 98% | KEV | Fix |
| CVE-2007-0882 | High | 10.0 | 98% | - | - |
| CVE-2018-17456 | Critical | 9.8 | 97% | - | Fix |
| CVE-2018-19518 | High | 7.5 | 95% | - | Fix |
Common questions
How do I fix CVE-2021-29472?
Published advisories record a fix for 2 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.
Is CVE-2021-29472 being actively exploited?
Not that we know of. CVE-2021-29472 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 4.7% is the estimated probability that it will be exploited in the next 30 days. That is higher than 91% of all scored CVEs.
How severe is CVE-2021-29472?
CVE-2021-29472 has a CVSS v3 base score of 8.8, rated high. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2021-29472 affect?
Published advisories record a fix for composer (Debian), composer (Ubuntu). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.
Embed a live status badge for CVE-2021-29472
Markdown
[](https://tridentstack.com/cve/CVE-2021-29472)HTML
<a href="https://tridentstack.com/cve/CVE-2021-29472"><img src="https://tridentstack.com/cve/badge/CVE-2021-29472.svg" alt="CVE-2021-29472"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.