Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted hostname to application
-
DeliveryDeliver multi-kilobyte xn-- Punycode label
-
ExploitReach punycode:decode before length check
-
Executioninsert/4 list-append runs super-linearly
-
ImpactCPU/scheduler exhaustion denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Algorithmic complexity limits
|
| Exploitation Conditions | The attacker must be able to get a hostname containing an xn-- ASCII label of a few kilobytes to any idna entry point: the decode side (decode/1, decode/2, to_unicode/1, from_ascii/1, reaching ulabel/1) or the encode side (encode/1, encode/2, to_ascii/1), since alabel/1 calls ulabel/1 on an xn-- label before its own length check. No special library configuration or in-library authentication is needed and no user interaction is required; the practical limiting factor is whether the host application passes attacker-controlled, un-length-checked hostnames into idna. Affected versions are 0.5.0 up to (but not including) the fixed 8.0.0; the only complete fix stated by the evidence is upgrading to 8.0.0. |
| Impact | This is a CPU-exhaustion denial-of-service (CWE-407, Inefficient Algorithmic Complexity), not a memory-safety or disclosure bug - impact is availability only (VA:H; VC:N/VI:N), so the vendor CVSS 4.0 of 6.9 (medium) is appropriate. The signals are mostly low-urgency and mutually consistent: no EPSS score was supplied, the CVE is not on CISA KEV, and no weaponized public exploit is identified, while the vuln.today Decision label is 'this_month' (not act_now/emergency). That points to a real but non-emergency fix-this-cycle priority rather than a high-CVSS-but-illusory issue, because the source-code evidence confirms the mechanism concretely (idna:ulabel/1 hands any xn-- label to punycode:decode/1 before check_label_length/1, and insert/4 builds output with list ++ appends, making decode super-linear in label length). The one notable conflict is the attack vector: the vendor rates AV:L (local), yet the description and the 'attacker who controls a hostname passed to the library' framing mean that in realistic deployments (HTTP clients/servers resolving or normalizing untrusted domain names) the malicious hostname arrives over the network - treat the exposure as remote where untrusted hostnames reach idna, and verify with the calling application rather than trusting AV:L. Also note the input 'Information Disclosure' tag is inconsistent with the actual availability-only impact. |
| Exploit ScenarioDerived | An attacker supplies a hostname containing an over-long xn-- (Punycode) label of a few kilobytes to an application that passes it into erlang-idna - for example a URL/host normalizer or HTTP client built on this library. Because idna checks the 63-octet DNS label limit only after calling punycode:decode/1, the super-linear insert/4 keeps an Erlang scheduler busy for seconds to minutes before the label is rejected as invalid, producing CPU-exhaustion DoS. No public weaponized exploit is identified at time of analysis, though the fix PR (#44/#45) includes a timing test showing a ~4000 code-point label took about a minute to decode before the fix. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
CPU exhaustion in the Erlang idna library (versions 0.5.0 through 7.x) lets an attacker who controls a hostname keep a BEAM scheduler busy for seconds to minutes by supplying an ASCII label that begins with 'xn--' and is several kilobytes long. The library routes every decode entry point (decode/1, decode/2, to_unicode/1, from_ascii/1) and also the encode path (encode/1, encode/2, to_ascii/1, because alabel/1 calls ulabel/1 on an ASCII xn-- label first) past its 63-octet label length check into punycode:decode/1, whose output construction grows super-linearly with label length. Impact is availability only; the vendor CVSS 4.0 score is 6.9 (medium) and the assessed CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:N with A:H, and there is no KEV entry and no public exploit identified at time of analysis. The complete fix is the 8.0.0 release.
RemediationAI
Upgrade idna to 8.0.0, which is the only complete fix stated in the evidence and which moves the 63-octet check_label_length/1 ahead of the Punycode transform on both the ulabel/1 and alabel/1 paths and removes the super-linear output construction; the changes are in https://github.com/benoitc/erlang-idna/pull/45 with commits 7a465b630eb793556aa7ac282fb73e49251dadd2 and c8caba6653259071f7076fe49320f37402b8b81f, and the advisory is at https://cna.erlef.org/cves/CVE-2026-117678.html. Given the this_month priority, schedule the dependency bump within the current month and pin the resolved version in your lockfile. If the upgrade must be deferred, the effective compensating control is to enforce the DNS label limit in the calling application before any hostname reaches idna: reject any label longer than 63 octets and any xn-- label of excessive length at the point untrusted input is parsed, and apply the same guard to direct punycode:encode/decode calls, which bypass the idna wrapper entirely. The trade-off is duplicated validation logic that can drift from the library and is easy to miss at new call sites, so it should be treated as temporary; additionally, capping the maximum hostname length accepted by the service and bounding the time spent on name resolution limits the blast radius at the cost of rejecting some legitimate long-input edge cases.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The library implements Internationalized Domain Names over Erlang/OTP, converting between Unicode labels (U-labels) and ASCII-compatible 'xn--' labels (A-labels) using Punycode per the IDNA specification. CWE-407 (Inefficient Algorithmic Complexity) is the root cause class: src/idna.erl defines check_label_length/1 to enforce the 63-octet DNS label limit, but ulabel/1 passed every ASCII xn-- label to punycode:decode/1 before that check ran, and punycode:decode/1's insert/4 rebuilt its output prefix with '++' for each element, making a single insertion O(I^2) and the overall decode roughly cubic in label length. The encode side had a milder but related problem, appending each code point with Output ++ [CodePoint] (quadratic). The upstream fix does two things: it calls check_label_length/1 before the Punycode transform on both the ulabel/1 and alabel/1 paths, and it rewrites the Punycode internals to accumulate output in reverse and flip once with lists:reverse/1 and to insert with lists:split/2 instead of repeated appends. Affected packages are identified as cpe:2.3:a:benoitc:idna for versions 0.5.0 up to, but not including, 8.0.0. Note that the supplied tag metadata labels this as Information Disclosure, which neither the CWE nor the assessed vector supports - confidentiality and integrity impact are both None; this is purely an availability bug.
Know when Idna gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Malicious hostnames typically reach the library from remote untrusted input so AV:N (vendor used AV:L); trivial single crafted label gives AC:L/PR:N/UI:N, and impact is availability-only, so C:N/I:N/A:H.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
EUVD-2026-129475
GHSA-5pq6-7wm2-5x62
NVD
CVE.org
EPSS
Exploit-DB