Skip to content
Fencer Vulns
high 7.5

CVE-2022-40898 json

pypa/wheel vulnerable to Regular Expression denial of service (ReDoS)

published 2022-12-22 3 y ago modified 2026-06-17 4 mo ago also GHSA-qwmp-2cf2-g9g6 , PYSEC-2022-43017 , EUVD-2022-0364

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.8%
EPSS 2.8% chance of exploitation in 30 days, percentile 86%
public exploits
0
none known

Summary

An issue discovered in Python Packaging Authority (PyPA) Wheel 0.37.1 and earlier allows remote attackers to cause a denial of service via attacker controlled input to wheel cli.

Patch / fix

  • pypi wheel 0.38.1
  • wheel_project wheel 0.38.1
  • wheel Debian 14, Debian 13, Debian 12 0.38.0-1

debian advisories DEBIAN-CVE-2022-40898

  • wheel Ubuntu 18.04 LTS 0.30.0-0.2ubuntu0.1
  • wheel Ubuntu 20.04 LTS 0.34.2-1ubuntu0.1
  • wheel Ubuntu 22.04 LTS 0.37.1-2ubuntu0.22.04.1
  • python-pip Ubuntu 18.04 LTS 9.0.1-2.3~ubuntu1.18.04.7
  • python-pip Ubuntu 20.04 LTS 20.0.2-5ubuntu1.8
  • python-pip Ubuntu 22.04 LTS 22.0.2+dfsg-1ubuntu0.2
  • wheel Ubuntu Pro 14.04 LTS 0.24.0-1~ubuntu1.1+esm1
  • wheel Ubuntu Pro 16.04 LTS 0.29.0-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2022-40898

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • rhc-worker-playbook RHEL 9 0.1.10-1.el9_5
  • rh-python38-python RHEL 3 SOFTWARE_COLLECTIONS 3.8.18-2.el7
  • rh-python38-python-pip RHEL 3 SOFTWARE_COLLECTIONS 19.3.1-4.el7
  • rh-python38-python-idle RHEL 3 SOFTWARE_COLLECTIONS 3.8.18-2.el7
  • rh-python38-python-libs RHEL 3 SOFTWARE_COLLECTIONS 3.8.18-2.el7
  • rh-python38-python-test RHEL 3 SOFTWARE_COLLECTIONS 3.8.18-2.el7
  • rh-python38-python-wheel RHEL 3 SOFTWARE_COLLECTIONS 0.33.6-9.el7
  • rh-python38-python-tkinter RHEL 3 SOFTWARE_COLLECTIONS 3.8.18-2.el7

red hat advisories RHSA-2024:10761RHSA-2023:6793RHSA-2023:6712

  • python-wheel SLE Real Time 15 SP3, SLE Module for Public Cloud 15 SP1, SLE Module for Package Hub 15 SP4 +17 more 0.32.3-150100.6.5.1
  • python-wheel SLE Module for Public Cloud 12 0.30.0-2.7.1

suse advisories SUSE-SU-2023:0088-2SUSE-SU-2023:0089-1SUSE-SU-2023:0088-1

  • python-ciscoconfparse openSUSE Tumbleweed 1.7.7-1.1

opensuse advisories openSUSE-SU-2024:12645-1

  • python3-wheel AlmaLinux 9 1:0.36.2-8.el9
  • python3-wheel-wheel AlmaLinux 9 1:0.36.2-8.el9

almalinux advisories ALSA-2023:6712

  • python-wheel Rocky Linux 9 1:0.36.2-8.el9

rocky linux advisories RLSA-2023:6712

  • python-wheel CBL-Mariner 2.0 0.33.6-8

azure linux advisories AZL-12098

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-40898 updated cvss 7.5

python-wheel: remote attackers can cause denial of service via attacker controlled input to wheel cli

  • Red Hat Enterprise Linux 7 python3-wheel
    affected: no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 python-wheel, python2-wheel, python3-wheel, python38-wheel, python39-wheel, python2-wheel-wheel, +3 more
    affected: no fix planned “Will not fix”
  • Red Hat CodeReady Linux Builder (v. 9) python-wheel 0.36.2-8.el9, python3-wheel 0.36.2-8.el9, python3-wheel-wheel 0.36.2-8.el9
    fixed: vendor fix RHSA-2023:6712
  • Red Hat Enterprise Linux AppStream (v. 9) rhc-worker-playbook 0.1.10-1.el9_5
    fixed: vendor fix RHSA-2024:10761
  • Red Hat Software Collections for RHEL Workstation(v. 7) rh-python38-python-wheel 0.33.6-9.el7, rh-python38-python-wheel-wheel 0.33.6-9.el7 Red Hat Software Collections for RHEL(v. 7) rh-python38-python-wheel 0.33.6-9.el7, rh-python38-python-wheel-wheel 0.33.6-9.el7
    fixed: vendor fix RHSA-2023:6793
  • Red Hat Enterprise Linux 8 rhc-worker-playbook Red Hat Software Collections for RHEL Workstation(v. 7) rh-python38-python 3.8.18-2.el7, rh-python38-python-pip 19.3.1-4.el7, rh-python38-python-idle 3.8.18-2.el7, rh-python38-python-libs 3.8.18-2.el7, rh-python38-python-test 3.8.18-2.el7, rh-python38-python-tkinter 3.8.18-2.el7, +7 more Red Hat Software Collections for RHEL(v. 7) rh-python38-python 3.8.18-2.el7, rh-python38-python-pip 19.3.1-4.el7, rh-python38-python-idle 3.8.18-2.el7, rh-python38-python-libs 3.8.18-2.el7, rh-python38-python-test 3.8.18-2.el7, rh-python38-python-tkinter 3.8.18-2.el7, +7 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
18 mo ago

Exploit prediction

2.84% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • pyup.io https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/ referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CISA ADP 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
pypi wheel
<0.38.1
0.38.1

Classification

Weakness
  • CWE-20 Improper Input Validation
  • CWE-1333 Inefficient Regular Expression Complexity

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.