cve.bz

CVE-2021-3572 Improper Input Validation

5.7 mediumEPSS 1.8%Fix available

Medium (5.7). EPSS 1.8% estimated probability of exploitation activity in the next 30 days. Fixed in pip 21.1.

On this page
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.

Severity

CVSS 3.1

5.7 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
EPSS
1.8% (unchanged from 1.8% a week ago; 1.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3572 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3572?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3572?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3572 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-3572

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-3572](https://cve.bz/cve/badge/CVE-2021-3572.svg)](https://cve.bz/cve/CVE-2021-3572)

HTML:

<a href="https://cve.bz/cve/CVE-2021-3572"><img src="https://cve.bz/cve/badge/CVE-2021-3572.svg" alt="CVE-2021-3572"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pypa:pipbefore 21.1
oracle:agile_product_lifecycle_management9.3.6
oracle:communications_cloud_native_core_network_function_cloud_native_environment1.10.0
oracle:communications_cloud_native_core_network_function_cloud_native_environment22.1.0
oracle:communications_cloud_native_core_policy1.15.0
oracle:communications_cloud_native_core_policy22.1.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5xp3-jfq3-5q8xPyPIpip<21.121.1
PYSEC-2021-437PyPIpip<21.121.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14python-pip20.3.4-2DEBIAN-CVE-2021-3572
UbuntuPro:14.04:LTSpython-pip1.5.4-1ubuntu4+esm1UBUNTU-CVE-2021-3572 USN-4961-2
UbuntuPro:16.04:LTSpython-pip8.1.1-2ubuntu0.6+esm2UBUNTU-CVE-2021-3572 USN-4961-2
UbuntuPro:18.04:LTSpython-pip9.0.1-2.3~ubuntu1.18.04.5+esm2UBUNTU-CVE-2021-3572 USN-4961-2
Red Hatenterprise_linux:8::appstreamCython, python38-Cython, Cython-debugsource and 1 more0:0.29.14-4.module+el8.4.0+8888+89bc7e79RHSA-2021:4162
Red Hatenterprise_linux:8::appstreamPyYAML, python38-pyyaml, PyYAML-debugsource and 1 more0:5.4.1-1.module+el8.5.0+10721+14d8e0d5RHSA-2021:4162
Red Hatenterprise_linux:8::appstreamPyYAML, python39-pyyaml, PyYAML-debugsource and 1 more0:5.4.1-1.module+el8.5.0+10613+59a13ec4RHSA-2021:4160
Red Hatenterprise_linux:8::appstreambabel, python38-babel0:2.7.0-11.module+el8.5.0+11015+9c1c7c42RHSA-2021:4162
Red Hatenterprise_linux:8::appstreammod_wsgi, python38-mod_wsgi0:4.6.8-3.module+el8.4.0+8888+89bc7e79RHSA-2021:4162
Red Hatenterprise_linux:8::appstreammod_wsgi, python39-mod_wsgi0:4.7.1-4.module+el8.4.0+9822+20bf1249RHSA-2021:4160
Red Hatenterprise_linux:8::appstreamnumpy, python38-numpy, numpy-debugsource and 3 more0:1.17.3-6.module+el8.5.0+12205+a865257aRHSA-2021:4162
Red Hatenterprise_linux:8::appstreamnumpy, python39-numpy, numpy-debugsource and 3 more0:1.19.4-3.module+el8.5.0+12204+54860423RHSA-2021:4160
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python38-PyMySQL0:0.10.1-1.module+el8.4.0+9692+8e86ab84RHSA-2021:4162
Red Hatenterprise_linux:8::appstreampython-PyMySQL, python39-PyMySQL0:0.10.1-2.module+el8.4.0+9822+20bf1249RHSA-2021:4160
Red Hatenterprise_linux:8::appstreampython-asn1crypto, python38-asn1crypto0:1.2.0-3.module+el8.4.0+8888+89bc7e79RHSA-2021:4162
Red Hatenterprise_linux:8::appstreampython-cffi, python38-cffi, python-cffi-debugsource and 1 more0:1.13.2-3.module+el8.4.0+8888+89bc7e79RHSA-2021:4162
69 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 17 morepython3, python3-core3.6.15-150000.3.106.1SUSE-SU-2022:2351-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-pip9.0.1-3.6.1SUSE-SU-2021:2441-1
SUSELinux Enterprise Micro 5.2python3, python3-core3.6.15-150300.10.21.1SUSE-SU-2022:0942-2
SUSELinux Enterprise Module for Basesystem 15 SP2, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Python 2 15 SP2 and 1 morepython-pip20.0.2-6.15.1SUSE-SU-2021:4001-1
SUSELinux Enterprise Module for Basesystem 15 SP3python-pip-wheel10.0.1-3.9.1SUSE-SU-2021:4002-1
SUSELinux Enterprise Module for Basesystem 15 SP3python3, python3-core3.6.15-150300.10.21.1SUSE-SU-2022:0942-1
SUSELinux Enterprise Module for Basesystem 15 SP3python393.9.10-150300.4.8.2SUSE-SU-2022:1485-1
SUSELinux Enterprise Module for Basesystem 15 SP3python39-pip20.2.4-7.8.1SUSE-SU-2022:0064-1
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Desktop Applications 15 SP3, Linux Enterprise Module for Python 2 15 SP3 and 1 morepython2.7.18-150000.38.1SUSE-SU-2022:1091-1
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Development Tools 15 SP3python39-core3.9.10-150300.4.8.1SUSE-SU-2022:1485-1
SUSELinux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Python 2 15 SP3, Linux Enterprise Real Time 15 SP2python-base2.7.18-150000.38.2SUSE-SU-2022:1091-1
SUSELinux Enterprise Module for Development Tools 15 SP3python3-core3.6.15-150300.10.21.1SUSE-SU-2022:0942-1
6 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2python-pip, python-pip-wheel10.0.1-lp152.4.9.1openSUSE-SU-2021:1598-1
openSUSELeap 15.3python, python-doc2.7.18-150000.38.1openSUSE-SU-2022:1091-1
openSUSELeap 15.3python-base2.7.18-150000.38.2openSUSE-SU-2022:1091-1
openSUSELeap 15.3python-pip20.0.2-6.15.1openSUSE-SU-2021:4001-1
openSUSELeap 15.3python-pip-wheel10.0.1-3.9.1openSUSE-SU-2021:4002-1
openSUSELeap 15.3python3, python3-core, python3-documentation3.6.15-150300.10.21.1openSUSE-SU-2022:0942-1
openSUSELeap 15.3python39-pip20.2.4-7.8.1openSUSE-SU-2022:0064-1
openSUSELeap 15.3, Leap 15.4python393.9.10-150300.4.8.2SUSE-SU-2022:1485-1
openSUSELeap 15.3, Leap 15.4python39-core, python39-documentation3.9.10-150300.4.8.1SUSE-SU-2022:1485-1
openSUSETumbleweedpython2.7.18-18.1openSUSE-SU-2024:11877-1
openSUSETumbleweedpython363.6.15-10.1openSUSE-SU-2024:11878-1
openSUSETumbleweedpython393.9.13-2.1openSUSE-SU-2024:12150-1
AlmaLinux8python3-pip9.0.3-20.el8ALSA-2021:4455
AlmaLinux8python38-Cython0.29.14-4.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-PyMySQL0.10.1-1.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-asn1crypto1.2.0-3.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-atomicwrites1.3.0-8.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-attrs19.3.0-3.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-babel2.7.0-11.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-cffi1.13.2-3.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-chardet3.0.4-19.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-cryptography2.8-3.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-idna2.8-6.module_el8.6.0+2778+cd494b30ALSA-2021:4162
AlmaLinux8python38-jinja22.10.3-5.module_el8.6.0+2778+cd494b30ALSA-2021:4162
53 more for AlmaLinux in the JSON.
Rocky Linux8Cython0:0.29.14-4.module+el8.4.0+570+c2eaf144RLSA-2021:4162
Rocky Linux8Cython0:0.29.21-5.module+el8.4.0+574+843c4898RLSA-2021:4160
Rocky Linux8PyYAML0:5.4.1-1.module+el8.4.0+574+843c4898RLSA-2021:4160 RLSA-2021:4162
Rocky Linux8PyYAML0:5.4.1-1.module+el8.5.0+672+ab6eb015RLSA-2021:4160 RLSA-2021:4162
Rocky Linux8babel0:2.7.0-11.module+el8.5.0+672+ab6eb015RLSA-2021:4162
Rocky Linux8mod_wsgi0:4.6.8-3.module+el8.4.0+570+c2eaf144RLSA-2021:4162
Rocky Linux8mod_wsgi0:4.7.1-4.module+el8.4.0+574+843c4898RLSA-2021:4160
Rocky Linux8numpy0:1.17.3-6.module+el8.5.0+672+ab6eb015RLSA-2021:4162
Rocky Linux8numpy0:1.19.4-3.module+el8.5.0+673+10283621RLSA-2021:4160
Rocky Linux8pybind110:2.6.1-2.module+el8.4.0+574+843c4898RLSA-2021:4160
Rocky Linux8pytest0:4.6.6-3.module+el8.4.0+570+c2eaf144RLSA-2021:4162
Rocky Linux8pytest0:6.0.2-2.module+el8.4.0+574+843c4898RLSA-2021:4160
66 more for Rocky Linux in the JSON.
Azure Linux3python-IPyno fix listedAZL-86103

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This flaw has been rated as having a security impact of Low. To exploit this flaw, the attacker needs access to the repository to create a specially crafted tag and force a different revision to be installed.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python39:3.9-8050020210811100211.d428a79bFixed 2021-11-09RHSA-2021:4160
Red Hat Enterprise Linux 8python39-devel:3.9-8050020210811100211.d428a79bFixed 2021-11-09RHSA-2021:4160
Red Hat Enterprise Linux 8python38:3.8-8050020210811101222.e3d35ccaFixed 2021-11-09RHSA-2021:4162
Red Hat Enterprise Linux 8python38-devel:3.8-8050020210811101222.e3d35ccaFixed 2021-11-09RHSA-2021:4162
Red Hat Enterprise Linux 8python-pip-0:9.0.3-20.el8Fixed 2021-11-09RHSA-2021:4455
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-babel-0:2.7.0-12.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-0:3.8.11-2.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-cryptography-0:2.8-5.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-jinja2-0:2.10.3-6.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-lxml-0:4.4.1-7.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-python38-python-pip-0:19.3.1-2.el7Fixed 2021-08-24RHSA-2021:3254
Red Hat Enterprise Linux 7python-pipOut of support scope
Red Hat Enterprise Linux 7python-virtualenvOut of support scope
Red Hat Enterprise Linux 8gimp:flatpak/python2-pipNot affected
Red Hat Enterprise Linux 8inkscape:flatpak/python2-pipFix deferred
Red Hat Enterprise Linux 8python27:2.7/python2-pipNot affected
Red Hat Enterprise Linux 9python-pipAffected
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-rhel9Under investigation
Red Hat Software Collectionspython27-python-pipNot affected
Red Hat Software Collectionspython27-python-virtualenvNot affected
8 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3572.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON