Ubuntu CVE Tracker
UBUNTU-CVE-2022-40897
Details
Python Packaging Authority (PyPA) setuptools before 65.5.1 allows remote attackers to cause a denial of service via HTML in a crafted package or custom PackageIndex page. There is a Regular Expression Denial of Service (ReDoS) in package_index.py.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | python-pip | All versions before 1.5.4-1ubuntu4+esm2 (fixed in 1.5.4-1ubuntu4+esm2) |
| Ubuntu:Pro:14.04:LTS | python-setuptools | All versions before 3.3-1ubuntu2+esm1 (fixed in 3.3-1ubuntu2+esm1) |
| Ubuntu:Pro:16.04:LTS | python-setuptools | All versions before 20.7.0-1ubuntu0.1~esm1 (fixed in 20.7.0-1ubuntu0.1~esm1) |
| Ubuntu:Pro:16.04:LTS | python-pip | All versions before 8.1.1-2ubuntu0.6+esm3 (fixed in 8.1.1-2ubuntu0.6+esm3) |
| Ubuntu:18.04:LTS | python-pip | All versions before 9.0.1-2.3~ubuntu1.18.04.6 (fixed in 9.0.1-2.3~ubuntu1.18.04.6) |
| Ubuntu:18.04:LTS | python-setuptools | All versions before 39.0.1-2ubuntu0.1 (fixed in 39.0.1-2ubuntu0.1) |
| Ubuntu:20.04:LTS | python-pip | All versions before 20.0.2-5ubuntu1.7 (fixed in 20.0.2-5ubuntu1.7) |
| Ubuntu:20.04:LTS | python-setuptools | All versions before 44.0.0-2ubuntu0.1 (fixed in 44.0.0-2ubuntu0.1) |
| Ubuntu:20.04:LTS | setuptools | All versions before 45.2.0-1ubuntu0.1 (fixed in 45.2.0-1ubuntu0.1) |
| Ubuntu:22.04:LTS | python-pip | All versions before 22.0.2+dfsg-1ubuntu0.1 (fixed in 22.0.2+dfsg-1ubuntu0.1) |
| Ubuntu:22.04:LTS | python-setuptools | All versions before 44.1.1-1.2ubuntu0.22.04.1 (fixed in 44.1.1-1.2ubuntu0.22.04.1) |
| Ubuntu:22.04:LTS | setuptools | All versions before 59.6.0-1.2ubuntu0.22.04.1 (fixed in 59.6.0-1.2ubuntu0.22.04.1) |
References
- https://ubuntu.com/security/CVE-2022-40897
- https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200
- https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/
- https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be
- https://ubuntu.com/security/notices/USN-5817-1
- https://www.cve.org/CVERecord?id=CVE-2022-40897