Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2022-40897

22
FAUCET Score

CVE-2022-40897 is a Regular Expression Denial of Service (ReDoS) vulnerability affecting Python Packaging Authority (PyPA) setuptools versions prior to 65.5.1. An unauthenticated remote attacker can exploit this by submitting crafted HTML in a package or custom PackageIndex page, leading to a denial of service. The vulnerability has a CVSS score of 5.9 (Medium) due to its high impact on availability and low attack complexity, although it requires no user interaction. There is currently no evidence of active exploitation, public exploit code, or significant community discussion surrounding this CVE.

Impacted Technologies

VendorProductVersion(s)CPE
< 65.5.1CPE matchmatch criteria
cpe:2.3:a:python:setuptools:*:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 3.1

5.9MEDIUM

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

Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
NONE
Integrity Impact
NONE
Availability Impact
HIGH
Exploitability Score
2.2
Impact Score
3.6
CvssVersion
3.1

Exploit Intelligence

EPSS Score
2.62%
Probability of exploitation in next 30 days
EPSS Percentile
83.8%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0262 is in the 75th percentile among its peer group of 19,956 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.0 Bluesky, 0.0 Mastodon, and 0.2 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.0 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (24)

3cxpatch availablevia llm_extracted
Fixed in: 5.4.2
github_advisorypatch availablevia nvd_reference
View patch
microsoftpatch availablevia msrc
Product: 19681-17086Fixed in: 3.9.19-11
microsoftpatch availablevia msrc
Product: 17214-16823Fixed in: 3.9.19-11
microsoftpatch availablevia msrc
Product: 18509-16820Fixed in: 40.2.0-7
microsoftpatch availablevia msrc
Product: cm1 python-setuptools 40.2.0-7 on CBL Mariner 1.0Fixed in: 40.2.0-7
microsoftpatch availablevia msrc
Product: cbl2 python3 3.9.19-11 on CBL Mariner 2.0Fixed in: 3.9.19-11
microsoftpatch availablevia msrc
Product: cbl2 python3 3.9.19-13 on CBL Mariner 2.0Fixed in: 3.9.19-11
pippatch availablevia ghsa
Product: setuptoolsFixed in: 65.5.1
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 8Fixed in: python39:3.9-8100020240214182535.7044f6c1
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 8.6 Extended Update SupportFixed in: python-setuptools-0:39.2.0-7.el8_6
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 8.6 Telecommunications Update ServiceFixed in: python39:3.9-8060020240916062113.6a631399
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsFixed in: python39:3.9-8060020240916062113.6a631399
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 8.8 Extended Update SupportFixed in: python39:3.9-8080020240402104641.93c2fc2f
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 8.8 Extended Update SupportFixed in: python39-devel:3.9-8080020240402104641.93c2fc2f
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 9Fixed in: python-setuptools-0:53.0.0-10.el9_1.1
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Software Collections for Red Hat Enterprise Linux 7Fixed in: rh-python38-python-setuptools-0:41.6.0-8.el7
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 8Fixed in: python27:2.7-8100020240208011952.5f0f67de
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 8Fixed in: python39-devel:3.9-8100020240214182535.7044f6c1
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportFixed in: python39:3.9-8060020240916062113.6a631399
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 8Fixed in: python-setuptools-0:39.2.0-6.el8_7.1
View patch
redhatno patchvia redhat_api
Product: Red Hat Quay 3Fixed in: python-setuptools
redhatend of lifevia redhat_api
Product: Red Hat OpenStack Platform 16.1Fixed in: python-setuptools
redhatend of lifevia redhat_api
Product: Service Telemetry Framework 1.4 for RHEL 8Fixed in: python-setuptools

Vendor Advisories (4)

3cxllm-3cx-1205af7554fe3711HIGH

Third-Party Package Updates in Splunk User Behavior Analytics (UBA) - April 2025

Apr 29, 2025
pipGHSA-r9hx-vwmv-q579high

pypa/setuptools vulnerable to Regular Expression Denial of Service (ReDoS)

Dec 23, 2022
redhatCVE-2022-40897Moderate

pypa-setuptools: Regular Expression Denial of Service (ReDoS) in package_index.py

Dec 22, 2022
microsoft2022-Dec/CVE-2022-40897Moderate

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.

Dec 13, 2022

References

lists.debian.org / debian-lts-announce/2024/09/msg00018.html
github.com / pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py
Third Party Advisory
github.com / pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be
PatchThird Party Advisory
github.com / pypa/setuptools/compare/v65.5.0...v65.5.1
Release NotesThird Party Advisory
lists.fedoraproject.org / archives/list/package-announce%40lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R
lists.fedoraproject.org / archives/list/package-announce%40lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H
pyup.io / posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages
ExploitPatchTechnical DescriptionVendor Advisory
pyup.io / vulnerabilities/CVE-2022-40897/52495
Third Party Advisory
security.netapp.com / advisory/ntap-20230214-0001
security.netapp.com / advisory/ntap-20240621-0006