CVE-2021-3572
Improper Input Validation in pip
Reported by redhat · Published November 10, 2021
pip is fixed in 21.1 (PyPI)
A flaw was found in python-pip in the way it handled Unicode separators in git references. A remote attacker could possibly use this issue to install a different revision on a repository. The highest threat from this vulnerability is to data integrity. This is fixed in python-pip version 21.1.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pip | PyPI | 21.1 |
| pip | Bitnami | 21.1.0 |
| python-pip-wheel | Amazon Linux | 20.2.2-1.amzn2.0.3 |
| pip | Bitnami | 21.1.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | python-pip | fixed in python-pip 21.1 |
| amazon:2 | python-pip-wheel | 0 |
| n/a | python-pip | 21.1 |
| arch | python-pip | 0 |
| amazon:2 | python3-pip | 0 |
| PyPI | pip | 0 |
| amazon:2 | python2-pip | 0 |
Timeline
- Jun 23, 2021 CVE Published
- Nov 11, 2021 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Distribution Patch (40 in total, the first dated here)
- Mar 10, 2026 Security Advisory (52 in total, the first dated here)
- Jul 29, 2026 Coalition ESS Score
- Sep 20, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-3572
vulnetix vdb fixes CVE-2021-3572
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3572/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-3572 advisory
- https://github.com/advisories/GHSA-5xp3-jfq3-5q8x advisory
- https://github.com/pypa/pip/pull/9827 patch
- https://github.com/pypa/pip/commit/e46bdda9711392fec0c45c1175bae6db847cb30b patch
- https://access.redhat.com/errata/RHSA-2021:3254 url
- https://github.com/pypa/advisory-database/tree/main/vulns/pip/PYSEC-2021-437.yaml advisory
- https://github.com/pypa/pip url
- https://packetstormsecurity.com/files/162712/USN-4961-1.txt url
- https://security.netapp.com/advisory/ntap-20240621-0006 advisory