Denial of Service Vulnerability in Python Packaging Authority (PyPA) Wheel and Pip Packages

python-pip Updated 02 Oct 2025

Summary

23/12/2022
N/A
Yes i
High
7.5

UBUNTU-CVE-2022-40898: An issue discovered in Python Packaging Authority (PyPA) Wheel 0.37.1 and earlier allows remote attackers to cause a denial of service via attacker controlled input to wheel cli. Affects python-pip versions < 1.5.4-1ubuntu4+esm3. Fixed in 1.5.4-1ubuntu4+esm3. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Python Packaging Authority (PyPA) Wheel is a built-package format for Python that allows for faster installation of Python packages. It is widely used in the Python ecosystem to distribute packages efficiently. The affected packages include 'python-pip' and 'wheel', which are essential for managing Python packages and dependencies. This vulnerability affects versions of these packages prior to the patched versions, making them susceptible to denial of service attacks.

Vulnerability Detail

An issue discovered in PyPA Wheel versions 0.37.1 and earlier allows remote attackers to cause a denial of service via attacker-controlled input to the wheel command line interface (CLI). This vulnerability can lead to service disruptions, affecting applications that rely on these packages for package management. The CVSS score for this vulnerability is 7.5, indicating a high severity level.

How To Fix

Minimum fixed version

1.5.4-1ubuntu4+esm3

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 workaround, avoid using the wheel CLI with untrusted input until the package is updated. Additionally, consider implementing input validation in your applications that utilize these packages.

Conclusion

The vulnerability in the PyPA Wheel and Pip packages poses a significant risk of denial of service attacks. It is crucial for users to update their packages to the patched versions to mitigate this risk. Employing best practices for input validation can also help in reducing exposure to this vulnerability.

See every vulnerability recorded for python-pip →

Share this vulnerability

FAQ

The vulnerability allows remote attackers to exploit the wheel CLI, leading to a denial of service.

Versions of 'python-pip' and 'wheel' prior to the patched versions are affected.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.

Implement input validation and avoid using the wheel CLI with untrusted input as a temporary measure.

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for python-pip.

How To Fix

Minimum fixed version

1.5.4-1ubuntu4+esm3

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