{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-40897","published":"2022-12-23T00:15:13.987000Z","last_modified":"2026-06-17T05:02:12.993000Z","status":"Modified","cvss":{"version":"3.1","score":5.9,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-1333"],"cpes":[{"criteria":"cpe:2.3:a:python:setuptools:*:*:*:*:*:*:*:*","part":"a","vendor":"python","product":"setuptools","version_end_excluding":"65.5.1"}],"cpes_truncated":false,"vendors":["python"],"products":["python/setuptools"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.02346,"percentile":0.84397,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-r9hx-vwmv-q579","ecosystem":"PyPI","name":"setuptools","purl":"pkg:pypi/setuptools","ranges":[{"introduced":"0","fixed":"65.5.1"}],"versions":["41.4.0","41.5.0","41.5.1","41.6.0","42.0.0","42.0.1","42.0.2","43.0.0","44.0.0","44.1.0","44.1.1","45.0.0","45.1.0","45.2.0","45.3.0","46.0.0","46.1.0","46.1.1","46.1.2","46.1.3","46.2.0","46.3.0","46.3.1","46.4.0","47.0.0","47.1.0","47.1.1","47.2.0","47.3.0","47.3.1","47.3.2","48.0.0","49.0.0","49.0.1","49.1.0","49.1.1","49.1.2","49.1.3","49.2.0","49.2.1","49.3.0","49.3.1","49.3.2","49.4.0","49.5.0","49.6.0","5.0","5.0.1","5.0.2","5.1","5.2","5.3","5.4","5.4.1","5.4.2","5.5","5.5.1","5.6","5.7","5.8","50.0.0","50.0.1","50.0.2","50.0.3","50.1.0","50.2.0","50.3.0","50.3.1","50.3.2","51.0.0","51.1.0","51.1.0.post20201221","51.1.1","51.1.2","51.2.0","51.3.0","51.3.1","51.3.2","51.3.3","52.0.0","53.0.0","53.1.0","54.0.0","54.1.0","54.1.1","54.1.2","54.1.3","54.2.0","56.0.0","56.1.0","56.2.0","57.0.0","57.1.0","57.2.0","57.3.0","57.4.0","57.5.0","58.0.0","58.0.1","58.0.2","58.0.3","58.0.4","58.1.0","58.2.0","58.3.0","58.4.0","58.5.0","58.5.1","58.5.2","58.5.3","59.0.1","59.1.0","59.1.1","59.2.0","59.3.0","59.4.0","59.5.0","59.6.0","59.7.0","59.8.0","6.0.1","6.0.2","6.1","60.0.0","60.0.1","60.0.2","60.0.3","60.0.4","60.0.5","60.1.0","60.1.1","60.10.0","60.2.0","60.3.0","60.3.1","60.4.0","60.5.0","60.6.0","60.7.0","60.7.1","60.8.0","60.8.1","60.8.2","60.9.0","60.9.1","60.9.2","60.9.3","61.0.0","61.1.0","61.1.1","61.2.0","61.3.0","61.3.1","62.0.0","62.1.0","62.2.0","62.3.0","62.3.1","62.3.2","62.3.3","62.3.4","62.4.0","62.5.0","62.6.0","63.0.0","63.0.0b1","63.1.0","63.2.0","63.3.0","63.4.0","63.4.1","63.4.2","63.4.3","64.0.0","64.0.1","64.0.2","64.0.3","65.0.0","65.0.1","65.0.2","65.1.0","65.1.1","65.2.0","65.3.0","65.4.0","65.4.1","65.5.0","7.0","8.0","8.0.1","8.0.2","8.0.3","8.0.4","8.1","8.2","8.2.1","8.3","9.0","9.0.1","9.1"],"versions_truncated":false},{"advisory":"PYSEC-2022-43012","ecosystem":"PyPI","name":"setuptools","purl":"pkg:pypi/setuptools","ranges":[{"introduced":"0","fixed":"65.5.1"}],"versions":["50.3.2","51.0.0","51.1.0","51.1.0.post20201221","51.1.1","51.1.2","51.2.0","51.3.0","51.3.1","51.3.2","51.3.3","52.0.0","53.0.0","53.1.0","54.0.0","54.1.0","54.1.1","54.1.2","54.1.3","54.2.0","56.0.0","56.1.0","56.2.0","57.0.0","57.1.0","57.2.0","57.3.0","57.4.0","57.5.0","58.0.0","58.0.1","58.0.2","58.0.3","58.0.4","58.1.0","58.2.0","58.3.0","58.4.0","58.5.0","58.5.1","58.5.2","58.5.3","59.0.1","59.1.0","59.1.1","59.2.0","59.3.0","59.4.0","59.5.0","59.6.0","59.7.0","59.8.0","6.0.1","6.0.2","6.1","60.0.0","60.0.1","60.0.2","60.0.3","60.0.4","60.0.5","60.1.0","60.1.1","60.10.0","60.2.0","60.3.0","60.3.1","60.4.0","60.5.0","60.6.0","60.7.0","60.7.1","60.8.0","60.8.1","60.8.2","60.9.0","60.9.1","60.9.2","60.9.3","61.0.0","61.1.0","61.1.1","61.2.0","61.3.0","61.3.1","62.0.0","62.1.0","62.2.0","62.3.0","62.3.1","62.3.2","62.3.3","62.3.4","62.4.0","62.5.0","62.6.0","63.0.0","63.0.0b1","63.1.0","63.2.0","63.3.0","63.4.0","63.4.1","63.4.2","63.4.3","64.0.0","64.0.1","64.0.2","64.0.3","65.0.0","65.0.1","65.0.2","65.1.0","65.1.1","65.2.0","65.3.0","65.4.0","65.4.1","65.5.0","7.0","8.0","8.0.1","8.0.2","8.0.3","8.0.4","8.1","8.2","8.2.1","8.3","9.0","9.0.1","9.1","v65.5.0","v65.4.1","v65.4.0","v65.3.0","v65.2.0","v65.1.1","v65.1.0","v65.0.2","v65.0.1","v65.0.0","v64.0.3","v64.0.2","v64.0.1","v64.0.0","v63.4.3","v63.4.2","v63.4.1","v63.4.0","v63.3.0","v63.2.0","v63.1.0","v63.0.0","v62.6.0","v62.5.0","v62.4.0","v62.3.4","v62.3.3","v62.3.2","v62.3.1","v62.3.0","v62.2.0","v62.1.0","v62.0.0","v61.3.1","v61.3.0","v61.2.0","v61.1.1","v61.1.0","v61.0.0","v60.10.0","v60.9.3","v60.9.2","v60.9.1","v60.9.0","v60.8.2","v60.8.1","v60.8.0","v60.7.1","v60.7.0","v60.6.0","v60.5.4","v60.5.3","v60.5.2","v60.5.1","v60.5.0","v60.4.0","v60.3.1","v60.3.0","v60.2.0","v60.1.1","v60.1.0","v60.0.5","v60.0.4","v60.0.3","v60.0.0","v60.0.2","v60.0.1","v59.8.0"],"versions_truncated":false}],"severity":"medium","priority_score":51,"links":{"html_es":"/es/cve/CVE-2022-40897/","html_en":"/en/cve/CVE-2022-40897/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-40897","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-40897"},"untrusted":{"vendor_name":"Python","product_name":"Setuptools","desc_en":"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":[],"references":[{"url":"https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200","tags":["Third Party Advisory"]},{"url":"https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1","tags":["Release Notes","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H/","tags":[]},{"url":"https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/","tags":["Exploit","Patch","Technical Description","Vendor Advisory"]},{"url":"https://pyup.io/vulnerabilities/CVE-2022-40897/52495/","tags":["Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20230214-0001/","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0006/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00018.html","tags":[]}]}}