Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. wheel
  4. ›
  5. CVE-2022-40898

CVE-2022-40898: pypa/wheel vulnerable to Regular Expression denial of service (ReDoS)

December 23, 2022 (updated November 19, 2024)

Python Packaging Authority (PyPA) Wheel is a reference implementation of the Python wheel packaging standard. Wheel 0.37.1 and earlier are vulnerable to a Regular Expression denial of service via attacker controlled input to the wheel cli. The vulnerable regex is used to verify the validity of Wheel file names. This has been patched in version 0.38.1.

References

  • github.com/advisories/GHSA-qwmp-2cf2-g9g6
  • github.com/pypa/advisory-database/tree/main/vulns/wheel/PYSEC-2022-43017.yaml
  • github.com/pypa/wheel
  • github.com/pypa/wheel/blob/main/src/wheel/wheelfile.py
  • nvd.nist.gov/vuln/detail/CVE-2022-40898
  • pypi.org/project/wheel
  • pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages
  • pyup.io/vulnerabilities/CVE-2022-40898/51499

Code Behaviors & Features

Detect and mitigate CVE-2022-40898 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.38.1

Fixed versions

  • 0.38.1

Solution

Upgrade to version 0.38.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

pypi/wheel/CVE-2022-40898.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:51 +0000.