Loop with Unreachable Exit Condition ('Infinite Loop') Affecting python3-twisted+tls package, versions <0:22.4.0-129.amzn2023.0.6


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.95% (60th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-PYTHON3TWISTEDTLS-16886470
  • published27 May 2026
  • disclosed13 May 2026

Introduced: 13 May 2026

CVE-2026-42304  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 python3-twisted+tls to version 0:22.4.0-129.amzn2023.0.6 or higher.
This issue was patched in ALAS2023-2026-1734.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python3-twisted+tls package and not the python3-twisted+tls package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

Twisted is an event-based framework for internet applications, supporting Python 3.6+. Prior to 26.4.0rc2, the twisted.names module is vulnerable to a Denial of Service (DoS) attack via resource exhaustion during DNS name decompression. A remote, unauthenticated attacker can exploit this by sending a crafted TCP DNS packet containing deeply chained compression pointers. This flaw bypasses previous loop-prevention logic, causing the single-threaded Twisted reactor to hang while processing millions of recursive lookups, effectively freezing the server. This vulnerability is fixed in 26.4.0rc2.

CVSS Base Scores

version 3.1