RCE in Composer

CVE-2021-29472

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…

EPSS: 0.048 (90.8th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2021-29472?
CVE-2021-29472 is a high-severity vulnerability in Composer, classified under Argument Injection. CVSS score: 8.8/10. Published 2021-04-27.
How severe is CVE-2021-29472?
High severity. CVSS v3 base score is 8.8 out of 10.
Is CVE-2021-29472 known to be exploited?
3 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.