{"id":"CVE-2022-40897","published":"2022-12-22T00:00:00Z","modified":"2025-11-04T16:09:54Z","title":"Python Packaging Authority (PyPA) setuptools before 65.5.1 allows remote attackers to cause a denial of service via…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.02632,"percentile":0.85905,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/pypa/setuptools/blob/fe8a98e696241487ba6ac9f91faa38ade939ec5d/setuptools/package_index.py#L200","tags":[]},{"url":"https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/","tags":[]},{"url":"https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be","tags":[]},{"url":"https://pyup.io/vulnerabilities/CVE-2022-40897/52495/","tags":[]},{"url":"https://github.com/pypa/setuptools/compare/v65.5.0...v65.5.1","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20230214-0001/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YNA2BAH2ACBZ4TVJZKFLCR7L23BG5C3H/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ADES3NLOE5QJKBLGNZNI2RGVOSQXA37R/","tags":["vendor-advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0006/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00018.html","tags":[]}],"priority":{"score":21.3,"factors":[{"name":"EPSS percentile","points":17.18},{"name":"CVSS severity","points":4.13}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-16T17:14:35.641612Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"setuptools","vulnerableRanges":["<65.5.1"],"patched":["65.5.1"],"from":["GHSA-r9hx-vwmv-q579","PYSEC-2022-43012"],"provenance":"source"}],"summary":{"text":"The flaw is a Regular Expression Denial of Service (ReDoS) in the package_index.py component of Python Packaging Authority (PyPA) setuptools, affecting versions before 65.5.1. An attacker can cause a denial of service by supplying HTML within a crafted package or a custom PackageIndex page, and the attack requires only network access with no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:13:28Z"},"euvd":{"id":"EUVD-2022-0278","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pypa-setuptools-cve-2022-40897","children":[{"from":"CVE-2022-40897","to":"CVE-2024-6345","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["setuptools/package_index.py"],"commits":["https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be","https://github.com/pypa/setuptools/commit/88807c7062788254f654ea8c03427adc859321f0"],"basis":"rarely changed file"}]},{"from":"CVE-2022-40897","to":"CVE-2025-47273","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["setuptools/package_index.py"],"commits":["https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be","https://github.com/pypa/setuptools/commit/250a6d17978f9f6ac3ac887091f2d32886fbbb0b"],"basis":"rarely changed file"}]}]}}