CVSS 3.1
5.9 mediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HMedium (5.9) in python setuptools. EPSS 2.6% estimated probability of exploitation activity in the next 30 days. Fixed in setuptools 65.5.1.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:Hsetuptools (PyPI): fixed in 65.5.1Explain CVE-2022-40897 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-40897?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-40897?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-40897 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| python:setuptools | before 65.5.1 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-r9hx-vwmv-q579 | PyPI | setuptools | <65.5.1 | 65.5.1 |
| PYSEC-2022-43012 | PyPI | setuptools | <65.5.1 | 65.5.1 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 11 | setuptools | 52.0.0-4+deb11u1 | DLA-3876-1 |
| Debian | 12, 13, 14 | setuptools | 65.6.3-1 | DEBIAN-CVE-2022-40897 |
| Ubuntu | 18.04:LTS | python-pip | 9.0.1-2.3~ubuntu1.18.04.6 | UBUNTU-CVE-2022-40897 |
| Ubuntu | 18.04:LTS | python-setuptools | 39.0.1-2ubuntu0.1 | UBUNTU-CVE-2022-40897 USN-5817-1 |
| Ubuntu | 20.04:LTS | python-pip | 20.0.2-5ubuntu1.7 | UBUNTU-CVE-2022-40897 |
| Ubuntu | 20.04:LTS | python-setuptools | 44.0.0-2ubuntu0.1 | UBUNTU-CVE-2022-40897 USN-5817-1 |
| Ubuntu | 20.04:LTS | setuptools | 45.2.0-1ubuntu0.1 | UBUNTU-CVE-2022-40897 USN-5817-1 |
| Ubuntu | 22.04:LTS | python-pip | 22.0.2+dfsg-1ubuntu0.1 | UBUNTU-CVE-2022-40897 |
| Ubuntu | 22.04:LTS | python-setuptools | 44.1.1-1.2ubuntu0.22.04.1 | UBUNTU-CVE-2022-40897 USN-5817-1 |
| Ubuntu | 22.04:LTS | setuptools | 59.6.0-1.2ubuntu0.22.04.1 | UBUNTU-CVE-2022-40897 USN-5817-1 |
| Ubuntu | Pro:14.04:LTS | python-pip | 1.5.4-1ubuntu4+esm2 | UBUNTU-CVE-2022-40897 |
| Ubuntu | Pro:14.04:LTS | python-setuptools | 3.3-1ubuntu2+esm1 | UBUNTU-CVE-2022-40897 USN-5817-1 |
| Ubuntu | Pro:16.04:LTS | python-pip | 8.1.1-2ubuntu0.6+esm3 | UBUNTU-CVE-2022-40897 |
| Ubuntu | Pro:16.04:LTS | python-setuptools | 20.7.0-1ubuntu0.1~esm1 | UBUNTU-CVE-2022-40897 USN-5817-1 |
| Red Hat | enterprise_linux:8::appstream | Cython, python2-Cython, Cython-debugsource and 1 more | 0:0.28.1-7.module+el8.9.0+19487+7dc18407 | RHSA-2024:2987 |
| Red Hat | enterprise_linux:8::appstream | PyYAML, python2-pyyaml, PyYAML-debugsource and 1 more | 0:3.12-16.module+el8.9.0+19487+7dc18407 | RHSA-2024:2987 |
| Red Hat | enterprise_linux:8::appstream | PyYAML, python39-pyyaml, PyYAML-debugsource and 1 more | 0:5.4.1-1.module+el8.9.0+19644+d68f775d | RHSA-2024:2985 |
| Red Hat | enterprise_linux:8::appstream | babel, python2-babel | 0:2.5.1-10.module+el8.9.0+19487+7dc18407 | RHSA-2024:2987 |
| Red Hat | enterprise_linux:8::appstream | mod_wsgi, python39-mod_wsgi | 0:4.7.1-7.module+el8.9.0+19644+d68f775d | RHSA-2024:2985 |
| Red Hat | enterprise_linux:8::appstream | numpy, python2-numpy, numpy-debugsource and 3 more | 1:1.14.2-16.module+el8.9.0+19487+7dc18407 | RHSA-2024:2987 |
| Red Hat | enterprise_linux:8::appstream | numpy, python39-numpy, numpy-debugsource and 3 more | 0:1.19.4-3.module+el8.9.0+19644+d68f775d | RHSA-2024:2985 |
| Red Hat | enterprise_linux:8::appstream | pytest, python2-pytest | 0:3.4.2-13.module+el8.9.0+19487+7dc18407 | RHSA-2024:2987 |
| Red Hat | enterprise_linux:8::appstream | python-PyMySQL, python2-PyMySQL | 0:0.8.0-10.module+el8.9.0+19487+7dc18407 | RHSA-2024:2987 |
| Red Hat | enterprise_linux:8::appstream | python-PyMySQL, python39-PyMySQL | 0:0.10.1-2.module+el8.9.0+19644+d68f775d | RHSA-2024:2985 |
| Red Hat | enterprise_linux:8::appstream | python-attrs, python2-attrs | 0:17.4.0-10.module+el8.9.0+19487+7dc18407 | RHSA-2024:2987 |
| Red Hat | enterprise_linux:8::appstream | python-backports, python2-backports | 0:1.0-16.module+el8.9.0+18326+1b5baeee | RHSA-2024:2987 |
| 132 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | HPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8 | python-setuptools | 36.5.0-3.3.1 | SUSE-SU-2023:0403-1 |
| SUSE | Linux Enterprise Micro 5.1, Linux Enterprise Micro 5.2 | python-setuptools | 40.5.0-150100.6.6.1 | SUSE-SU-2023:0223-1 |
| SUSE | Linux Enterprise Micro 5.3 | python-setuptools | 44.1.1-150400.3.3.1 | SUSE-SU-2023:0159-1 |
| SUSE | Linux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5 | python3-setuptools | 44.1.1-150400.9.6.1 | SUSE-SU-2023:4517-1 |
| SUSE | Linux Enterprise Micro 5.5 | python3-setuptools | 44.1.1-150400.9.6.1 | SUSE-SU-2024:2435-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP4 | python-setuptools, python-setuptools-test, python-setuptools-wheel | 44.1.1-150400.3.3.1 | SUSE-SU-2023:0159-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Basesystem 15 SP5 | python3-setuptools, python3-setuptools-test, python3-setuptools-wheel | 44.1.1-150400.9.6.1 | SUSE-SU-2023:4517-1 |
| SUSE | Linux Enterprise Module for Containers 12, Linux Enterprise Module for Public Cloud 12, Linux Enterprise Server 12 SP5 and 2 more | python-setuptools | 40.6.2-4.21.1 | SUSE-SU-2023:0093-1 |
| SUSE | Linux Enterprise Module for Python 3 15 SP4 | python310-setuptools | 57.4.0-150400.4.3.1 | SUSE-SU-2023:0091-1 |
| SUSE | Linux Enterprise Real Time 15 SP3 | python-setuptools, python-setuptools-test, python-setuptools-wheel | 40.5.0-150100.6.6.1 | SUSE-SU-2023:0223-1 |
| SUSE | Linux Enterprise Real Time 15 SP3 | python39-setuptools | 44.1.1-150300.7.6.1 | SUSE-SU-2023:0202-1 |
| SUSE | Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 | python36-setuptools | 44.1.1-8.6.1 | SUSE-SU-2023:0094-1 |
| 1 more for SUSE in the JSON and on SUSE's page. | ||||
| openSUSE | Leap 15.4 | python-setuptools, python-setuptools-test, python-setuptools-wheel | 44.1.1-150400.3.3.1 | SUSE-SU-2023:0159-1 |
| openSUSE | Leap 15.4 | python310-setuptools | 57.4.0-150400.4.3.1 | SUSE-SU-2023:0091-1 |
| openSUSE | Leap 15.4 | python39-setuptools | 44.1.1-150300.7.6.1 | SUSE-SU-2023:0202-1 |
| openSUSE | Leap 15.4, Leap 15.5 | python3-setuptools, python3-setuptools-test, python3-setuptools-wheel | 44.1.1-150400.9.6.1 | SUSE-SU-2023:4517-1 |
| openSUSE | Leap Micro 5.2 | python-setuptools | 40.5.0-150100.6.6.1 | SUSE-SU-2023:0223-1 |
| openSUSE | Leap Micro 5.3 | python-setuptools | 44.1.1-150400.3.3.1 | SUSE-SU-2023:0159-1 |
| openSUSE | Leap Micro 5.3, Leap Micro 5.4 | python3-setuptools | 44.1.1-150400.9.6.1 | SUSE-SU-2023:4517-1 |
| AlmaLinux | 8 | babel, python2-babel | 2.5.1-10.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| AlmaLinux | 8 | python2, python2-libs, python2-test and 4 more | 2.7.18-17.module_el8.10.0+3783+2756348e.alma | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-Cython | 0.28.1-7.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-Cython | 0.28.1-7.module_el8.6.0+3162+01a09e5a | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-PyMySQL | 0.8.0-10.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-attrs | 17.4.0-10.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-backports | 1.0-16.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-backports | 1.0-16.module_el8.6.0+3162+01a09e5a | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-backports-ssl_match_hostname | 3.5.0.1-12.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-bson, python2-pymongo, python2-pymongo-gridfs | 3.7.0-1.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-bson, python2-pymongo, python2-pymongo-gridfs | 3.7.0-1.module_el8.6.0+3162+01a09e5a | ALSA-2024:2987 |
| AlmaLinux | 8 | python2-chardet | 3.0.4-10.module_el8.6.0+2781+fed64c13 | ALSA-2024:2987 |
| 81 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 8 | Cython | 0:0.28.1-7.module+el8.9.0+1531+a18208f5 | RLSA-2024:2987 |
| Rocky Linux | 8 | Cython | 0:0.29.21-5.module+el8.10.0+1582+bc278001 | RLSA-2024:2985 |
| Rocky Linux | 8 | PyYAML | 0:3.12-16.module+el8.9.0+1531+a18208f5 | RLSA-2024:2987 |
| Rocky Linux | 8 | PyYAML | 0:5.4.1-1.module+el8.10.0+1582+bc278001 | RLSA-2024:2985 |
| Rocky Linux | 8 | babel | 0:2.5.1-10.module+el8.9.0+1531+a18208f5 | RLSA-2024:2987 |
| Rocky Linux | 8 | mod_wsgi | 0:4.7.1-7.module+el8.10.0+1582+bc278001 | RLSA-2024:2985 |
| Rocky Linux | 8 | numpy | 0:1.19.4-3.module+el8.10.0+1582+bc278001 | RLSA-2024:2985 |
| Rocky Linux | 8 | numpy | 1:1.14.2-16.module+el8.9.0+1531+a18208f5 | RLSA-2024:2987 |
| Rocky Linux | 8 | pybind11 | 0:2.7.1-1.module+el8.9.0+1357+a3b80af7 | RLSA-2024:2985 |
| Rocky Linux | 8 | pytest | 0:3.4.2-13.module+el8.9.0+1531+a18208f5 | RLSA-2024:2987 |
| Rocky Linux | 8 | pytest | 0:6.0.2-2.module+el8.10.0+1582+bc278001 | RLSA-2024:2985 |
| Rocky Linux | 8 | python-PyMySQL | 0:0.10.1-2.module+el8.10.0+1582+bc278001 | RLSA-2024:2985 |
| 17 more for Rocky Linux in the JSON. | ||||
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.
Red Hat rates this Moderate.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | python39:3.9-8100020240214182535.7044f6c1 | Fixed 2024-05-22 | RHSA-2024:2985 |
| Red Hat Enterprise Linux 8 | python39-devel:3.9-8100020240214182535.7044f6c1 | Fixed 2024-05-22 | RHSA-2024:2985 |
| Red Hat Enterprise Linux 8 | python27:2.7-8100020240208011952.5f0f67de | Fixed 2024-05-22 | RHSA-2024:2987 |
| Red Hat Enterprise Linux 8 | python-setuptools-0:39.2.0-6.el8_7.1 | Fixed 2023-02-21 | RHSA-2023:0835 |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | python39:3.9-8060020240916062113.6a631399 | Fixed 2024-09-23 | RHSA-2024:6915 |
| Red Hat Enterprise Linux 8.6 Extended Update Support | python-setuptools-0:39.2.0-7.el8_6 | Fixed 2023-11-21 | RHSA-2023:7395 |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | python39:3.9-8060020240916062113.6a631399 | Fixed 2024-09-23 | RHSA-2024:6915 |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | python39:3.9-8060020240916062113.6a631399 | Fixed 2024-09-23 | RHSA-2024:6915 |
| Red Hat Enterprise Linux 8.8 Extended Update Support | python39:3.9-8080020240402104641.93c2fc2f | Fixed 2024-07-09 | RHSA-2024:4421 |
| Red Hat Enterprise Linux 8.8 Extended Update Support | python39-devel:3.9-8080020240402104641.93c2fc2f | Fixed 2024-07-09 | RHSA-2024:4421 |
| Red Hat Ansible Automation Platform 2 | python-setuptools | Not affected | |
| Red Hat Enterprise Linux 6 | python-setuptools | Out of support scope | |
| Red Hat Enterprise Linux 7 | python3-setuptools | Out of support scope | |
| Red Hat Enterprise Linux 7 | python-setuptools | Out of support scope | |
| Red Hat Enterprise Linux 8 | python3.11-setuptools | Not affected | |
| Red Hat Enterprise Linux 9 | python3.11-setuptools | Not affected | |
| Red Hat OpenShift Container Platform 4 | python-setuptools | Not affected | |
| Red Hat OpenShift Dev Spaces | python-setuptools | Not affected | |
| Red Hat OpenStack Platform 16.1 | python-setuptools | Will not fix | |
| Red Hat Quay 3 | python-setuptools | Affected | |
| 6 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-40897.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.