Skip to main content
Public proof of conceptFix available

CVE-2022-45061

A public proof of concept exists; no exploitation attested.

  • Published2022-11-09
  • WeaknessCWE-407

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2022-11-0907:15CVE publishedNVD

Versions per branch

NVD · OSV
Python
BranchAffectedFixed in
3.7≤ 3.7.15no fix published
3.8≥ 3.8.0, ≤ 3.8.15no fix published
3.9≥ 3.9.0, ≤ 3.9.15no fix published
3.10≥ 3.10.0, ≤ 3.10.8no fix published
3.11= 3.11.0no fix published
python
BranchAffectedFixed in
3.11≥ 3.11.0, < 3.11.13.11.1
3.10≥ 3.10.0, < 3.10.93.10.9
3.9≥ 3.9.0, < 3.9.163.9.16
3.8≥ 3.8.0, < 3.8.163.8.16
3.7< 3.7.163.7.16
libpython
BranchAffectedFixed in
3.11≥ 3.11.0, < 3.11.13.11.1
3.10≥ 3.10.0, < 3.10.93.10.9
3.9≥ 3.9.0, < 3.9.163.9.16
3.8≥ 3.8.0, < 3.8.163.8.16
3.7< 3.7.163.7.16

9 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • babelRocky Linux:8all versions · fixed in 0:2.5.1-10.module+el8.9.0+1531+a18208f5
  • babelRocky Linux:8all versions · fixed in 0:2.7.0-11.module+el8.9.0+1418+f0d66789
  • babelRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:2.5.1-10.module+el8.5.0+11014+88fc0d0band 1 other package
  • babelRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:2.7.0-11.module+el8.5.0+11015+9c1c7c42and 1 other package
  • babelAlmaLinux:8all versions · fixed in 2.5.1-10.module_el8.6.0+2781+fed64c13and 1 other package
  • CythonRocky Linux:8all versions · fixed in 0:0.28.1-7.module+el8.10.0+40170+5f5fdfeb
  • CythonRocky Linux:8all versions · fixed in 0:0.28.1-7.module+el8.9.0+1531+a18208f5
  • CythonRocky Linux:8all versions · fixed in 0:0.29.14-4.module+el8.9.0+1418+f0d66789

514 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-45061 Red Hat Product Security949 products fixed · 39 known affected

    python: CPU denial of service via inefficient IDNA decoder

    python as a component of Red Hat Enterprise Linux 6 · python-devel as a component of Red Hat Enterprise Linux 6 · python-libs as a component of Red Hat Enterprise Linux 6 · +36 more

  • ICSA-24-046-11 CISA11 known affected

    Siemens SCALANCE XCM-/XRM-300

    SCALANCE XCH328 (6GK5328-4TS01-2EC2) · SCALANCE XCM324 (6GK5324-8TS01-2AC2) · SCALANCE XCM328 (6GK5328-4TS01-2AC2) · +8 more

  • SSA-806742 Siemens ProductCERT11 known affected

    SSA-806742: Multiple Vulnerabilities in SCALANCE XCM-/XRM-300 before V2.4

    SCALANCE XCH328 (6GK5328-4TS01-2EC2) · SCALANCE XCM324 (6GK5324-8TS01-2AC2) · SCALANCE XCM328 (6GK5328-4TS01-2AC2) · +8 more

  • RHSA-2024:0430 Red Hat Product Security56 products fixed

    Red Hat Security Advisory: python3 security update

  • ICSA-23-348-10 CISA5 known affected

    Siemens SIMATIC S7-1500

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) · +2 more

  • SSA-398330 Siemens ProductCERT5 known affected

    SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5

    SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.0 < V3.1.5 · +2 more

6 more advisories

Full record on NVD

Fix

  1. Vendor fix Siemens ProductCERT SSA-806742 · 10 productsUpdate to V2.4 or later version
  2. Vendor fix CISA ICSA-24-046-11 · 10 productsUpdate to V2.4 or later version
  3. Vendor fix Red Hat Product Security RHSA-2024:0430 · 56 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix CISA ICSA-23-348-10 · 5 productsUpdate to V3.1.5 or later version
  5. Vendor fix Siemens ProductCERT SSA-398330 · 1 productUpdate to V3.1.5 or later version
  6. Mitigation from the vendor CISA ICSA-23-348-10 · 5 productsOnly build and run applications from trusted sources.

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2022-11-09
Last Modified
2026-10-14
NVD status
Modified
GitHub Advisory
GHSA-2mp6-9mjc-p6jg

Frequently asked questions

What is CVE-2022-45061?

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.

Is CVE-2022-45061 actively exploited?

A proof-of-concept exploit exists for CVE-2022-45061, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2022-45061?

CVE-2022-45061 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running Python? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record