Incorrect Regular Expression Affecting platform-python-setuptools package, versions <0:39.2.0-6.el8_7.1
Snyk CVSS
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-CENTOS8-PLATFORMPYTHONSETUPTOOLS-3226776
- published 6 Jan 2023
- disclosed 22 Dec 2022
Introduced: 22 Dec 2022
CVE-2022-40897 Open this link in a new tabHow to fix?
Upgrade Centos:8
platform-python-setuptools
to version 0:39.2.0-6.el8_7.1 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream platform-python-setuptools
package and not the platform-python-setuptools
package as distributed by Centos
.
See How to fix?
for Centos:8
relevant fixed versions and status.
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.
References
- https://access.redhat.com/security/cve/CVE-2022-40897
- https://access.redhat.com/errata/RHSA-2023:0835
- 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/compare/v65.5.0...v65.5.1
- https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be
- https://pyup.io/vulnerabilities/CVE-2022-40897/52495/
- https://security.netapp.com/advisory/ntap-20230214-0001/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H/