GitHub Advisory Database
GHSA-qwmp-2cf2-g9g6
pypa/wheel vulnerable to Regular Expression denial of service (ReDoS)
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | wheel | All versions before 0.38.1 (fixed in 0.38.1) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-40898
- https://github.com/pypa/advisory-database/tree/main/vulns/wheel/PYSEC-2022-43017.yaml
- https://github.com/pypa/wheel
- https://github.com/pypa/wheel/blob/main/src/wheel/wheelfile.py#L18
- https://pypi.org/project/wheel
- https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages
- https://pyup.io/vulnerabilities/CVE-2022-40898/51499