CVE-2022-40897

Publication date 23 December 2022

Last updated 24 July 2024


Ubuntu priority

Cvss 3 Severity Score

5.9 · Medium

Score breakdown

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.

Read the notes from the security team

Status

Package Ubuntu Release Status
python-pip 23.04 lunar
Not affected
22.10 kinetic
Fixed 22.2+dfsg-1ubuntu0.1
22.04 LTS jammy
Fixed 22.0.2+dfsg-1ubuntu0.1
20.04 LTS focal
Fixed 20.0.2-5ubuntu1.7
18.04 LTS bionic
Fixed 9.0.1-2.3~ubuntu1.18.04.6
16.04 LTS xenial
14.04 LTS trusty
python-setuptools 22.10 kinetic
Fixed 44.1.1-1.2ubuntu0.22.10.1
22.04 LTS jammy
Fixed 44.1.1-1.2ubuntu0.22.04.1
20.04 LTS focal
Fixed 44.0.0-2ubuntu0.1
18.04 LTS bionic
Fixed 39.0.1-2ubuntu0.1
16.04 LTS xenial
14.04 LTS trusty
setuptools 23.04 lunar
Not affected
22.10 kinetic
Fixed 59.6.0-1.2ubuntu0.22.10.1
22.04 LTS jammy
Fixed 59.6.0-1.2ubuntu0.22.04.1
20.04 LTS focal
Fixed 45.2.0-1ubuntu0.1
18.04 LTS bionic Not in release
16.04 LTS xenial Not in release
14.04 LTS trusty Not in release

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro

Notes


mdeslaur

the python-pip package bundles python-setuptools binaries when built. After updating python-setuptools, a no-change rebuild of python-pip is required.

Severity score breakdown

Parameter Value
Base score 5.9 · Medium
Attack vector Network
Attack complexity High
Privileges required None
User interaction None
Scope Unchanged
Confidentiality None
Integrity impact None
Availability impact High
Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H