CVE-2022-40897: Input Validation

Published Dec 22, 2022
·
Updated

Pypa Setuptools is vulnerable to a denial of service, caused by improper input validation. By sending request with a specially crafted regular expression, an remote attacker could exploit this vulnerability to cause a denial of service.

Other sources

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 packageindex.py.

Red Hat

Python Packaging Authority (PyPA)'s setuptools is a library designed to facilitate packaging Python projects. Setuptools version 65.5.0 and earlier could allow remote attackers to cause a denial of service by fetching malicious HTML from a PyPI package or custom PackageIndex page due to a vulnerable Regular Expression in packageindex. This has been patched in version 65.5.1.

GitHub

Affected Software

3 affected componentsFixes available
pip/setuptools<65.5.1
65.5.1
IBM Concert Software<=1.0.0 - 1.0.1
Python setuptools<65.5.1

Event History

Dec 22, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Dec 23, 2022
Data Sourced
via NVD·12:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·12:30 AM
Jan 5, 2023
Data Sourced
via Red Hat·06:14 PM
DescriptionSeverityAffected Software
Oct 21, 2024
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-40897?

CVE-2022-40897 is a vulnerability in Python Packaging Authority (PyPA) setuptools before 65.5.1 that allows remote attackers to cause a denial of service via HTML in a crafted package or custom PackageIndex page due to improper input validation.

2

How does CVE-2022-40897 impact Python Setuptools?

CVE-2022-40897 affects Python Setuptools versions prior to 65.5.1 and can be exploited to cause a denial of service by sending malicious HTML in a crafted package or custom PackageIndex page.

3

How does CVE-2022-40897 impact IBM Cognos Dashboards on Cloud Pak for Data?

CVE-2022-40897 impacts IBM Cognos Dashboards on Cloud Pak for Data up to version 4.7.0 and can be exploited to cause a denial of service by sending malicious HTML in a crafted package or custom PackageIndex page.

4

How can I fix CVE-2022-40897?

To fix CVE-2022-40897, you should update Python Setuptools to version 65.5.1 or later.

5

Are there any references for CVE-2022-40897?

Yes, you can find references for CVE-2022-40897 at the following links: [Link 1](https://exchange.xforce.ibmcloud.com/vulnerabilities/243028), [Link 2](https://www.ibm.com/support/pages/node/7031207), [Link 3](https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203