{"api_version":"1","generated_at":"2026-04-23T00:41:41+00:00","cve":"CVE-2022-40897","urls":{"html":"https://cve.report/CVE-2022-40897","api":"https://cve.report/api/cve/CVE-2022-40897.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-40897","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-40897"},"summary":{"title":"CVE-2022-40897","description":"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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2022-12-23 00:15:00","updated_at":"2023-11-07 03:52:00"},"problem_types":["CWE-1333"],"metrics":[],"references":[{"url":"https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1","name":"https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1","refsource":"CONFIRM","tags":[],"title":"Comparing v65.5.0...v65.5.1 · pypa/setuptools · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R/","name":"FEDORA-2023-60e2b22be0","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 37 Update: python-setuptools-62.6.0-3.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H/","name":"FEDORA-2023-9992b32c1f","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 36 Update: python-setuptools-59.6.0-4.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200","name":"https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200","refsource":"MISC","tags":[],"title":"setuptools/package_index.py at fe8a98e696241487ba6ac9f91faa38ade939ec5d · pypa/setuptools · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/","name":"https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/","refsource":"MISC","tags":[],"title":"PyUp Discovers ReDoS Vulnerabilities in Top Python Packages","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://pyup.io/vulnerabilities/CVE-2022-40897/52495/","name":"https://pyup.io/vulnerabilities/CVE-2022-40897/52495/","refsource":"MISC","tags":[],"title":"PyUp Vuln #52495","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be","name":"https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be","refsource":"MISC","tags":[],"title":"Limit the amount of whitespace to search/backtrack. Fixes #3659. · pypa/setuptools@43a9c9b · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H/","name":"FEDORA-2023-9992b32c1f","refsource":"","tags":[],"title":"[SECURITY] Fedora 36 Update: python-setuptools-59.6.0-4.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R/","name":"FEDORA-2023-60e2b22be0","refsource":"","tags":[],"title":"[SECURITY] Fedora 37 Update: python-setuptools-62.6.0-3.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.netapp.com/advisory/ntap-20230214-0001/","name":"https://security.netapp.com/advisory/ntap-20230214-0001/","refsource":"CONFIRM","tags":[],"title":"CVE-2022-40897 Python Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-40897","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40897","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"40897","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"python","cpe5":"setuptools","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-40897","qid":"160469","title":"Oracle Enterprise Linux Security Update for python-setuptools (ELSA-2023-0835)"},{"cve":"CVE-2022-40897","qid":"160483","title":"Oracle Enterprise Linux Security Update for python-setuptools (ELSA-2023-0952)"},{"cve":"CVE-2022-40897","qid":"160650","title":"Oracle Enterprise Linux Security Update for python3-setuptools (ELSA-2023-12348)"},{"cve":"CVE-2022-40897","qid":"184098","title":"Debian Security Update for setuptools (CVE-2022-40897)"},{"cve":"CVE-2022-40897","qid":"199123","title":"Ubuntu Security Notification for Setuptools Vulnerability (USN-5817-1)"},{"cve":"CVE-2022-40897","qid":"241207","title":"Red Hat Update for python-setuptools (RHSA-2023:0835)"},{"cve":"CVE-2022-40897","qid":"241221","title":"Red Hat Update for python-setuptools (RHSA-2023:0952)"},{"cve":"CVE-2022-40897","qid":"242344","title":"Red Hat Update for rh-python38-python (RHSA-2023:6793)"},{"cve":"CVE-2022-40897","qid":"242620","title":"Red Hat Update for python-setuptools (RHSA-2023:7395)"},{"cve":"CVE-2022-40897","qid":"283952","title":"Fedora Security Update for python (FEDORA-2023-9992b32c1f)"},{"cve":"CVE-2022-40897","qid":"283956","title":"Fedora Security Update for python (FEDORA-2023-60e2b22be0)"},{"cve":"CVE-2022-40897","qid":"296099","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 57.144.3 Missing (CPUAPR2023)"},{"cve":"CVE-2022-40897","qid":"354788","title":"Amazon Linux Security Advisory for python2-setuptools : ALAS2-2023-1979"},{"cve":"CVE-2022-40897","qid":"355627","title":"Amazon Linux Security Advisory for python-setuptools : ALAS2023-2023-245"},{"cve":"CVE-2022-40897","qid":"355767","title":"Amazon Linux Security Advisory for python-setuptools : ALAS2-2023-2196"},{"cve":"CVE-2022-40897","qid":"356249","title":"Amazon Linux Security Advisory for python38-setuptools : ALASPYTHON3.8-2023-003"},{"cve":"CVE-2022-40897","qid":"378883","title":"Splunk Enterprise August Third Party Package Updates (SVD-2023-0808)"},{"cve":"CVE-2022-40897","qid":"379407","title":"Alibaba Cloud Linux Security Update for python-setuptools (ALINUX3-SA-2023:0143)"},{"cve":"CVE-2022-40897","qid":"379452","title":"IBM Cognos Analytics Multiple Vulnerabilities (7123154)"},{"cve":"CVE-2022-40897","qid":"672755","title":"EulerOS Security Update for python-setuptools (EulerOS-SA-2023-1482)"},{"cve":"CVE-2022-40897","qid":"672767","title":"EulerOS Security Update for python-setuptools (EulerOS-SA-2023-1457)"},{"cve":"CVE-2022-40897","qid":"672805","title":"EulerOS Security Update for python-setuptools (EulerOS-SA-2023-1563)"},{"cve":"CVE-2022-40897","qid":"672822","title":"EulerOS Security Update for python-setuptools (EulerOS-SA-2023-1538)"},{"cve":"CVE-2022-40897","qid":"672882","title":"EulerOS Security Update for python-setuptools (EulerOS-SA-2023-1607)"},{"cve":"CVE-2022-40897","qid":"672890","title":"EulerOS Security Update for python-setuptools (EulerOS-SA-2023-1788)"},{"cve":"CVE-2022-40897","qid":"672920","title":"EulerOS Security Update for python-setuptools (EulerOS-SA-2023-1766)"},{"cve":"CVE-2022-40897","qid":"673108","title":"EulerOS Security Update for python-setuptools (EulerOS-SA-2023-2166)"},{"cve":"CVE-2022-40897","qid":"691109","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for py39 (24da150a-33e0-4fee-b4ee-2c6b377d3395)"},{"cve":"CVE-2022-40897","qid":"691125","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for py27 (187ab98e-2953-4495-b379-4060bd4b75ee)"},{"cve":"CVE-2022-40897","qid":"691128","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for py39 (1b38aec4-4149-4c7d-851c-3c4de3a1fbd0)"},{"cve":"CVE-2022-40897","qid":"753536","title":"SUSE Enterprise Linux Security Update for python-setuptools (SUSE-SU-2023:0093-1)"},{"cve":"CVE-2022-40897","qid":"753538","title":"SUSE Enterprise Linux Security Update for python36-setuptools (SUSE-SU-2023:0094-1)"},{"cve":"CVE-2022-40897","qid":"753567","title":"SUSE Enterprise Linux Security Update for python-setuptools (SUSE-SU-2023:0159-1)"},{"cve":"CVE-2022-40897","qid":"755314","title":"SUSE Enterprise Linux Security Update for python3-setuptools (SUSE-SU-2023:4517-1)"},{"cve":"CVE-2022-40897","qid":"904764","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-setuptools (12101)"},{"cve":"CVE-2022-40897","qid":"905211","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for python-setuptools (12101-1)"},{"cve":"CVE-2022-40897","qid":"940927","title":"AlmaLinux Security Update for python-setuptools (ALSA-2023:0835)"},{"cve":"CVE-2022-40897","qid":"940949","title":"AlmaLinux Security Update for python-setuptools (ALSA-2023:0952)"},{"cve":"CVE-2022-40897","qid":"960650","title":"Rocky Linux Security Update for python-setuptools (RLSA-2023:0835)"},{"cve":"CVE-2022-40897","qid":"960908","title":"Rocky Linux Security Update for python-setuptools (RLSA-2023:0952)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2022-40897","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200","refsource":"MISC","name":"https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200"},{"refsource":"MISC","name":"https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/","url":"https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/"},{"refsource":"MISC","name":"https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be","url":"https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be"},{"refsource":"MISC","name":"https://pyup.io/vulnerabilities/CVE-2022-40897/52495/","url":"https://pyup.io/vulnerabilities/CVE-2022-40897/52495/"},{"refsource":"CONFIRM","name":"https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1","url":"https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20230214-0001/","url":"https://security.netapp.com/advisory/ntap-20230214-0001/"},{"refsource":"FEDORA","name":"FEDORA-2023-9992b32c1f","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H/"},{"refsource":"FEDORA","name":"FEDORA-2023-60e2b22be0","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R/"}]}},"nvd":{"publishedDate":"2022-12-23 00:15:00","lastModifiedDate":"2023-11-07 03:52:00","problem_types":["CWE-1333"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.9,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.2,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:python:setuptools:*:*:*:*:*:*:*:*","versionEndExcluding":"65.5.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}