CVE-2021-3572 Improper Input Validation in pip

Medium 5.7 Published Updated

A remote attacker can install a different repository revision by exploiting Unicode separator handling in git references, compromising data integrity.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-3572?

CVE-2021-3572 is a medium-severity vulnerability in Oracle Agile Product Lifecycle Management, published on 10 Nov 2021. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-20

Which versions are affected by CVE-2021-3572?

3 open source packages ship an affected version, including pip. It affects 4 products.

PackageAffectedFixed in
pip PyPIAll versions21.1
pip PyPIAll versions21.1
pip PyPIAll versions21.1
Linux distribution packages (37)
python3-pip AlmaLinux:8All versions9.0.3-20.el8
python3-pip Red Hat:enterprise_linux:8::appstreamAll versions0:9.0.3-20.el8
platform-python-pip Red Hat:enterprise_linux:8::baseosAll versions0:9.0.3-20.el8
python-pip Red Hat:enterprise_linux:8::baseosAll versions0:9.0.3-20.el8
python3-pip-wheel Red Hat:enterprise_linux:8::baseosAll versions0:9.0.3-20.el8
python-pip SUSE:HPE Helion OpenStack 8All versions9.0.1-3.6.1
python3 SUSE:Linux Enterprise Micro 5.2All versions3.6.15-150300.10.21.1
python3-core SUSE:Linux Enterprise Micro 5.2All versions3.6.15-150300.10.21.1
python-pip SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions20.0.2-6.15.1
python-pip SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions20.0.2-6.15.1
python-pip-wheel SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions10.0.1-3.9.1
python3 SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions3.6.15-150300.10.21.1
python3-core SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions3.6.15-150300.10.21.1
python39-pip SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions20.2.4-7.8.1
python3-core SUSE:Linux Enterprise Module for Development Tools 15 SP3All versions3.6.15-150300.10.21.1
python-pip SUSE:Linux Enterprise Module for Public Cloud 12All versions10.0.1-13.6.1
python-pip SUSE:Linux Enterprise Module for Python 2 15 SP2All versions20.0.2-6.15.1
python-pip SUSE:Linux Enterprise Module for Python 2 15 SP3All versions20.0.2-6.15.1
python3 SUSE:Linux Enterprise Module for Web and Scripting 12All versions3.4.10-25.88.1
python3-base SUSE:Linux Enterprise Module for Web and Scripting 12All versions3.4.10-25.88.1
python3 SUSE:Linux Enterprise Server 12 SP5All versions3.4.10-25.88.1
python3-base SUSE:Linux Enterprise Server 12 SP5All versions3.4.10-25.88.1
python36 SUSE:Linux Enterprise Server 12 SP5All versions3.6.15-21.5
python36-core SUSE:Linux Enterprise Server 12 SP5All versions3.6.15-21.4
python36-pip SUSE:Linux Enterprise Server 12 SP5All versions20.2.4-8.9.1
python3 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions3.4.10-25.88.1
python3-base SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions3.4.10-25.88.1
python36 SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions3.6.15-21.5
python36-core SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions3.6.15-21.4
python36-pip SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions20.2.4-8.9.1
python3 SUSE:Linux Enterprise Software Development Kit 12 SP5All versions3.4.10-25.88.1
python3-base SUSE:Linux Enterprise Software Development Kit 12 SP5All versions3.4.10-25.88.1
python36-core SUSE:Linux Enterprise Software Development Kit 12 SP5All versions3.6.15-21.4
python-pip SUSE:OpenStack Cloud 8All versions9.0.1-3.6.1
python-pip SUSE:OpenStack Cloud 9All versions9.0.1-4.6.1
python-pip SUSE:OpenStack Cloud Crowbar 8All versions9.0.1-3.6.1
python-pip SUSE:OpenStack Cloud Crowbar 9All versions9.0.1-4.6.1

Products include Oracle Agile Product Lifecycle Management, Oracle Communications Cloud Native Core Network Function Cloud Native Environment, Oracle Communications Cloud Native Core Policy, Pypa Pip.

How do I fix CVE-2021-3572?

Upgrade pip to 21.1 or later.

Is CVE-2021-3572 being exploited?

There is no known exploitation of CVE-2021-3572 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Oracle Agile Product Lifecycle Management vulnerabilities

Sources

Also known as ALSA-2021:4455, AZL-86103, DEBIAN-CVE-2021-3572, GHSA-5xp3-jfq3-5q8x, OESA-2021-1284, PYSEC-2021-437 and 22 more.

Is CVE-2021-3572 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free