Critical Vulnerability in python-pip: Unicode Separator Handling Flaw

python-pip Updated 03 Oct 2025

Summary

19/05/2022
N/A
Yes i
Unrated
Not published

USN-4961-2: python-pip vulnerability. Affects python-pip versions < 1.5.4-1ubuntu4+esm1. Fixed in 1.5.4-1ubuntu4+esm1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

python-pip is a widely used package management system for Python, allowing users to install and manage software packages written in Python. It simplifies the process of package installation and dependency management. However, it has been found to have a vulnerability that affects its handling of unicode separators in git references, which could lead to security risks.

Vulnerability Detail

The vulnerability, identified as CVE-2021-3572, arises from the way pip processes unicode separators in git references. This flaw could allow a remote attacker to manipulate the installation process, potentially leading to the installation of unintended or malicious code from a different revision of a repository. The issue is significant as it compromises the integrity of the package management process, which is critical for maintaining secure and reliable software environments.

How To Fix

Minimum fixed version

1.5.4-1ubuntu4+esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-pip

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can avoid using git references with unicode separators until the package is updated. This can help mitigate the risk of exploitation until a proper fix is applied.

Conclusion

The python-pip vulnerability CVE-2021-3572 poses a significant risk due to improper handling of unicode separators in git references. Users are strongly advised to update their packages to the patched versions provided to mitigate potential security threats. Utilizing tools like Vulert can further enhance your ability to monitor and manage vulnerabilities in your software.

See every vulnerability recorded for python-pip →

Share this vulnerability

FAQ

CVE-2021-3572 is the identifier for the vulnerability found in python-pip that allows improper handling of unicode separators in git references.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Failing to fix this vulnerability could allow attackers to install malicious code, compromising the security and integrity of your applications.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just a manifest file like package-lock.json.

If immediate updates are not possible, avoid using git references with unicode separators as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for python-pip.

How To Fix

Minimum fixed version

1.5.4-1ubuntu4+esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-pip

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback