Read the docs

Inefficient punycode decoding in idna lets attackers exhaust CPU

Priority LOW 30CWE-407Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-407.

Summary

The idna library by benoitc, from 0.5.0 before 8.0.0, is affected. It decodes ASCII xn-- labels before checking the 63-octet DNS label length, and its decoder builds output with list appends, so CPU cost grows super-linearly with label length (CWE-407). An attacker who controls a hostname passed to the library can exhaust CPU with a label of a few kilobytes.

Written with Claude Haiku 5.5 from the sources below · 2026-11-19

Description from the CNA

Inefficient Algorithmic Complexity vulnerability in benoitc idna allows an attacker who controls a hostname passed to the library to exhaust CPU via an over-long xn-- label. idna:ulabel/1 in src/idna.erl hands every ASCII label that starts with xn-- to punycode:decode/1 without applying check_label_length/1, the 63-octet DNS label limit. punycode:decode/1 in src/punycode.erl builds its output with list appends in insert/4, so its cost grows super-linearly with the label length. A label of a few kilobytes keeps a scheduler busy for seconds to minutes before the label is rejected as invalid punycode. Every decode entry point reaches this path: decode/1, decode/2, to_unicode/1 and from_ascii/1. The encode path reaches it as well, because alabel/1 calls ulabel/1 on an ASCII xn-- label before its own length check, so encode/1, encode/2 and to_ascii/1 are affected for such input. This issue affects idna: from 0.5.0 before 8.0.0.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0018 4th percentileScored 2026-11-30
Fix Fixed idna (benoitc): 8.0.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
benoitcidna0.5.0 to before 8.0.08.0.0Patch availableCNA
  • idna Vendorbenoitc Affected 0.5.0 to before 8.0.0 Fixed in 8.0.0 Patch available CNA

CPE names CNA · 1

CPEVersionsRoleVendor
cpe:2.3:a:benoitc:idna:*:*:*:*:*:*:*:*——benoitc
  • cpe:2.3:a:benoitc:idna:*:*:*:*:*:*:*:* Versions — — ·benoitc

Remediation

Upgrade idna to version 8.0.0, which fixes this issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-19

  • Fix · CNA idna (benoitc) Fixed in 8.0.0

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat Hardened Images

Timeline

  1. 2026-11-19 Threatist record created from CVE-2026-117678
  2. 2026-11-19 Affected versions changed · Red Hat
  3. 2026-11-19 CVSS score added · Red Hat
  4. 2026-11-19 Alias added: GHSA-5pq6-7wm2-5x62
  5. 2026-11-19 CISA SSVC decision points changed
  6. 2026-11-19 Affected versions changed · Red Hat

References

  • TI-2026-34675 Unbounded memory consumption in WebSocket client in hackney CVSS 4.0HIGH 8.7
  • TI-2026-34669 Atom table exhaustion via unrecognized URL schemes in hackney CVSS 4.0HIGH 8.7
  • TI-2026-34668 Infinite loop in Alt-Svc header parser in hackney CVSS 4.0HIGH 8.7
  • TI-2026-34679 Unbounded body accumulation in HTTP/3 response loop in hackney CVSS 4.0HIGH 8.2
  • TI-2026-34673 SOCKS5 TLS upgrade ignores caller timeout in hackney CVSS 4.0HIGH 8.2
  • TI-2024-06330 HTTP Request Smuggling in benoitc/gunicorn CVSS 3.0HIGH 7.5
See all 18 →

Sources