The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-3572

CVE-2021-3572: Pypa Pip Data Integrity Vulnerability

CVE-2021-3572 is a data integrity vulnerability in Pypa Pip involving Unicode separators in git references. Attackers could install different repository revisions. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-3572 Overview

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.

Critical Impact

Remote attackers can manipulate git references using Unicode separators to install unintended revisions, compromising the integrity of installed packages and potentially introducing malicious code into development environments.

Affected Products

  • pypa pip (versions prior to 21.1)
  • Oracle Agile PLM 9.3.6
  • Oracle Communications Cloud Native Core Network Function Cloud Native Environment 1.10.0 and 22.1.0
  • Oracle Communications Cloud Native Core Policy 1.15.0 and 22.1.3

Discovery Timeline

  • 2021-11-10 - CVE-2021-3572 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-3572

Vulnerability Analysis

This vulnerability stems from improper input validation in python-pip when processing git references containing Unicode separators. The package manager fails to properly sanitize and validate Unicode characters within git reference strings, allowing attackers to craft malicious references that pip interprets differently than intended. This improper handling enables an attacker to trick pip into installing a different revision than what was specified by the user or project configuration.

The vulnerability affects the supply chain security of Python projects that use pip to install packages directly from git repositories. When developers specify a particular commit hash, tag, or branch to install, an attacker with the ability to influence the git reference string can substitute a malicious revision that pip will silently install instead.

Root Cause

The root cause is classified under CWE-20 (Improper Input Validation). Python-pip did not adequately validate Unicode characters in git references before processing them. Specifically, the code path handling git URL parsing and revision specification failed to normalize or reject Unicode separator characters that could alter how the reference string is interpreted, leading to a situation where visually similar references could resolve to different git commits.

Attack Vector

The attack is network-based and requires some level of user interaction. An attacker who can influence the git reference used in a pip install command—whether through a compromised requirements.txt, a malicious pull request, or a spoofed package source—can craft a git URL containing Unicode separators. These separators are visually similar to legitimate characters but cause pip to resolve to a different git revision than intended. This allows the attacker to serve malicious code while the reference appears legitimate to casual inspection.

The vulnerability requires low privileges to exploit, as the attacker only needs to be able to influence the pip installation source (such as contributing to an open-source project or hosting a malicious package repository). When a developer runs pip install with the manipulated reference, pip fetches and installs the attacker-controlled revision instead of the expected one.

Detection Methods for CVE-2021-3572

Indicators of Compromise

  • Unexpected git revisions installed that differ from those specified in requirements.txt or pip commands
  • Presence of Unicode separator characters (such as U+2028 Line Separator or U+2029 Paragraph Separator) in pip installation logs or requirements files
  • Hash mismatches between expected and installed package versions when using pip's hash verification
  • Unusual package behavior or functionality that doesn't align with the expected codebase version

Detection Strategies

  • Audit all requirements.txt files and pip installation commands for unusual Unicode characters using hex editors or Unicode-aware text tools
  • Implement pip hash verification (--require-hashes) to ensure installed packages match expected cryptographic hashes
  • Monitor pip installation logs for any warnings or anomalies during git-based package installations
  • Use software composition analysis (SCA) tools to verify installed package versions against known-good manifests

Monitoring Recommendations

  • Enable verbose logging for pip operations (pip install -v) to capture detailed git reference resolution information
  • Implement CI/CD pipeline checks that validate requirements files for suspicious Unicode characters before processing
  • Deploy file integrity monitoring on critical Python environments to detect unexpected package changes
  • Regularly compare installed package metadata against expected versions using pip freeze and version pinning

How to Mitigate CVE-2021-3572

Immediate Actions Required

  • Upgrade python-pip to version 21.1 or later immediately across all development and production environments
  • Audit existing requirements.txt files and installation scripts for potential Unicode separator injection
  • Implement hash-based verification for all pip installations using the --require-hashes flag
  • Review recently installed packages from git sources to verify correct revisions were installed

Patch Information

The vulnerability is fixed in python-pip version 21.1. Users should upgrade to this version or later to remediate the vulnerability. For downstream distributions, consult vendor-specific advisories:

  • Red Hat Bug Report #1962856 provides Red Hat-specific guidance
  • Oracle CPU April 2022 Alert addresses affected Oracle products
  • Oracle CPU July 2022 Alert provides additional Oracle product patches
  • NetApp Security Advisory NTAP-20240621-0006 covers NetApp products

Workarounds

  • Use hash verification (--require-hashes) with pip to ensure installed packages match expected cryptographic hashes
  • Pin packages to specific versions using == rather than git references where possible
  • Implement pre-commit hooks or CI checks to scan requirements files for Unicode anomalies
  • Consider using a private PyPI mirror or artifact repository with pre-verified packages instead of direct git installations
bash
# Upgrade pip to patched version
pip install --upgrade pip>=21.1

# Install packages with hash verification
pip install --require-hashes -r requirements.txt

# Check current pip version
pip --version

# Audit requirements file for Unicode characters (Linux/macOS)
cat -A requirements.txt | grep -v "^[[:print:]]*$"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechPypa Pip

  • SeverityMEDIUM

  • CVSS Score5.7

  • EPSS Probability0.24%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-20

  • NVD-CWE-noinfo
  • Technical References
  • NetApp Security Advisory NTAP-20240621-0006
  • Vendor Resources
  • Red Hat Bug Report #1962856

  • Oracle CPU April 2022 Alert

  • Oracle CPU July 2022 Alert
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English