CVE-2022-45061: High severity Python Python vulnerability

Published Nov 9, 2022
·
Updated

A vulnerability was discovered in Python. A quadratic algorithm exists when processing inputs to the IDNA (RFC 3490) decoder, such that a crafted unreasonably long name being presented to the decoder could lead to a CPU denial of service. Hostnames are often supplied by remote servers that could be controlled by a malicious actor, which could trigger excessive CPU consumption on the client attempting to make use of an attacker-supplied hostname.

Other sources

An issue was discovered in Python before 3.11.1. An unnecessary quadratic algorithm exists in one path when processing some inputs to the IDNA (RFC 3490) decoder such that a crafted unreasonably long name being presented to the decoder could lead to a CPU denial of service. Hostnames are often supplied by remote servers that could be controlled by a malicious actor; in such a scenario they could trigger excessive CPU consumption on the client attempting to make use of an attacker-supplied supposed hostname. For example the attack payload could be placed in the Location header of an HTTP response with status code 302. A fix is planned in 3.11.1 3.10.9 3.9.16 3.8.16 and 3.7.16.

— Microsoft

An issue was discovered in Python before 3.11.1. An unnecessary quadratic algorithm exists in one path when processing some inputs to the IDNA (RFC 3490) decoder, such that a crafted, unreasonably long name being presented to the decoder could lead to a CPU denial of service. Hostnames are often supplied by remote servers that could be controlled by a malicious actor; in such a scenario, they could trigger excessive CPU consumption on the client attempting to make use of an attacker-supplied supposed hostname. For example, the attack payload could be placed in the Location header of an HTTP response with status code 302. A fix is planned in 3.11.1, 3.10.9, 3.9.16, 3.8.16, and 3.7.16.

Python is vulnerable to a denial of service, caused by an unnecessary quadratic algorithm exists in one path when processing some inputs to the IDNA (RFC 3490) decoder. By sending a specially-crafted input, a remote attacker could exploit this vulnerability to cause a CPU denial of service condition.

— IBM

Affected Software

69 affected componentsFixes available
redhat/python3<0:3.6.8-48.el8_7.1
0:3.6.8-48.el8_7.1
redhat/python3.9<0:3.9.14-1.el9_1.2
0:3.9.14-1.el9_1.2
redhat/python<3.11.1
3.11.1
redhat/python<3.10.9
3.10.9
redhat/python<3.9.16
3.9.16
redhat/python<3.8.16
3.8.16
redhat/python<3.7.16
3.7.16
Python Python<=3.7.15
Python Python>=3.8.0<=3.8.15
Python Python>=3.9.0<=3.9.15
Python Python>=3.10.0<=3.10.8
Python Python=3.11.0
Python Python=3.11.0-alpha1
Python Python=3.11.0-alpha2
Python Python=3.11.0-alpha3
Python Python=3.11.0-alpha4
Python Python=3.11.0-alpha5
Python Python=3.11.0-alpha6
Python Python=3.11.0-alpha7
Python Python=3.11.0-beta1
Python Python=3.11.0-beta2
Python Python=3.11.0-beta3
Python Python=3.11.0-beta4
Python Python=3.11.0-beta5
Python Python=3.11.0-rc1
Python Python=3.11.0-rc2
Fedoraproject Fedora=35
Fedoraproject Fedora=36
Fedoraproject Fedora=37
NetApp Active Iq Unified Manager Vmware Vsphere
NetApp Active Iq Unified Manager Windows
NetApp E-series Performance Analyzer
NetApp Element Software
NetApp Hci
NetApp Management Services For Element Software
NetApp ONTAP Select Deploy administration utility
NetApp Bootstrap Os
NetApp Hci Compute Node
IBM Security Verify Access Docker<=10.0.X
IBM Security Verify Access<=10.0.X
All of the following
NetApp Bootstrap Os
NetApp Hci Compute Node
All of the following
azurelinux/python2<2.7.18-14
2.7.18-14
Microsoft CBL-Mariner=1.0
All of the following
azurelinux/python3<3.7.16-1
3.7.16-1
Microsoft CBL-Mariner=1.0
All of the following
azurelinux/python3<3.9.14-5
3.9.14-5
Microsoft CBL-Mariner=2.0
debian/pypy3<7.3.11+dfsg-1
7.3.11+dfsg-1
debian/pypy3<7.3.11+dfsg-1
7.3.11+dfsg-1
debian/pypy3<7.3.11+dfsg-1
7.3.11+dfsg-1
debian/python3.11<3.11.1-1
3.11.1-1
alpine/python3<3.9.16-r0
3.9.16-r0
alpine/python3<3.9.16-r0
3.9.16-r0
alpine/python3<3.10.9-r0
3.10.9-r0
alpine/python3<3.10.9-r0
3.10.9-r0
alpine/python3<3.11.1-r0
3.11.1-r0
alpine/python3<3.11.1-r0
3.11.1-r0
alpine/python3<3.11.1-r0
3.11.1-r0
alpine/python3<3.11.1-r0
3.11.1-r0
alpine/python3<3.11.1-r0
3.11.1-r0
alpine/python3<3.11.1-r0
3.11.1-r0
alpine/python3<3.11.1-r0
3.11.1-r0
debian/pypy3
7.3.5+dfsg-2+deb11u47.3.11+dfsg-1
debian/python3.11
3.11.1-1
debian/python2.7
2.7.16-2+deb10u2
debian/python3.10
3.10.9-1
debian/python3.7
3.7.3-2+deb10u5
debian/python3.9
3.9.2-1+deb11u2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/python3 to a version that resolves this vulnerability.

    Fixed in 0:3.6.8-48.el8_7.1
  2. Upgrade

    Upgrade redhat/python3.9 to a version that resolves this vulnerability.

    Fixed in 0:3.9.14-1.el9_1.2
  3. Upgrade

    Upgrade redhat/python to a version that resolves this vulnerability.

    Fixed in 3.11.1
  4. Upgrade

    Upgrade redhat/python to a version that resolves this vulnerability.

    Fixed in 3.10.9
  5. Upgrade

    Upgrade redhat/python to a version that resolves this vulnerability.

    Fixed in 3.9.16
  6. Upgrade

    Upgrade redhat/python to a version that resolves this vulnerability.

    Fixed in 3.8.16
  7. Upgrade

    Upgrade redhat/python to a version that resolves this vulnerability.

    Fixed in 3.7.16
  8. Upgrade

    Upgrade azurelinux/python2 to a version that resolves this vulnerability.

    Fixed in 2.7.18-14
  9. Upgrade

    Upgrade azurelinux/python3 to a version that resolves this vulnerability.

    Fixed in 3.7.16-1
  10. Upgrade

    Upgrade azurelinux/python3 to a version that resolves this vulnerability.

    Fixed in 3.9.14-5
  11. Upgrade

    Upgrade debian/pypy3 to a version that resolves this vulnerability.

    Fixed in 7.3.11+dfsg-1
  12. Upgrade

    Upgrade debian/python3.11 to a version that resolves this vulnerability.

    Fixed in 3.11.1-1
  13. Upgrade

    Upgrade alpine/python3 to a version that resolves this vulnerability.

    Fixed in 3.9.16-r0
  14. Upgrade

    Upgrade alpine/python3 to a version that resolves this vulnerability.

    Fixed in 3.10.9-r0
  15. Upgrade

    Upgrade alpine/python3 to a version that resolves this vulnerability.

    Fixed in 3.11.1-r0
  16. Upgrade

    Upgrade debian/pypy3 to a version that resolves this vulnerability.

    Fixed in 7.3.5+dfsg-2+deb11u4Fixed in 7.3.11+dfsg-1
  17. Upgrade

    Upgrade debian/python2.7 to a version that resolves this vulnerability.

    Fixed in 2.7.16-2+deb10u2
  18. Upgrade

    Upgrade debian/python3.10 to a version that resolves this vulnerability.

    Fixed in 3.10.9-1
  19. Upgrade

    Upgrade debian/python3.7 to a version that resolves this vulnerability.

    Fixed in 3.7.3-2+deb10u5
  20. Upgrade

    Upgrade debian/python3.9 to a version that resolves this vulnerability.

    Fixed in 3.9.2-1+deb11u2
  21. Upgrade

    Upgrade Python to a version that resolves this vulnerability.

    Fixed in 3.11.1
  22. Upgrade

    Upgrade Python to a version that resolves this vulnerability.

    Fixed in 3.10.9
  23. Upgrade

    Upgrade Python to a version that resolves this vulnerability.

    Fixed in 3.9.16
  24. Upgrade

    Upgrade Python to a version that resolves this vulnerability.

    Fixed in 3.8.16
  25. Upgrade

    Upgrade Python to a version that resolves this vulnerability.

    Fixed in 3.7.16

Event History

Nov 9, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via OSV·12:00 AM
DescriptionSeverity
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
Nov 17, 2022
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
Affected Software
May 11, 2023
Updated
via IBM·12:00 AM
Affected Software
Nov 7, 2023
Updated
03:54 AM
Affected Software
Nov 20, 2023
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Updated
12:00 AM
Affected Software
Jan 10, 2024
Data Sourced
via Red Hat·01:35 PM
DescriptionSeverityAffected Software
Nov 21, 2024
Data Sourced
via NVD·07:28 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
via NVD·07:28 AM
RemedyAffected Software
Mar 14, 2025
Updated
via IBM·12:00 AM
Affected Software
May 1, 2025
Updated
via NVD·03:15 PM
SeverityWeaknessAffected Software
Nov 3, 2025
Updated
via NVD·10:16 PM
Affected Software
Oct 14, 2026
Updated
via NVD·07:16 PM
Affected Software
Nov 3, 2026
Data Sourced
via OSV·06:03 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-45061?

CVE-2022-45061 is a vulnerability discovered in Python before 3.11.1 that allows for a CPU denial of service when processing certain inputs to the IDNA decoder.

2

How severe is CVE-2022-45061?

CVE-2022-45061 is considered a high severity vulnerability with a CVSS severity score of 7.0.

3

What is the affected software?

The affected software includes Python versions 3.6.8-48.el8_7.1, 3.9.14-1.el9_1.2, and versions 3.10.0 to 3.10.8.

4

How can I fix CVE-2022-45061?

To fix CVE-2022-45061, upgrade to Python version 3.11.1 or apply the provided patches.

5

Where can I find more information about CVE-2022-45061?

You can find more information about CVE-2022-45061 in the references provided: [link1](https://github.com/python/cpython/issues/98433), [link2](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2144417), [link3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2144426).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203