Skip to main content

erlang-idna CVE-2026-117678

| EUVDEUVD-2026-129475 MEDIUM
Inefficient Algorithmic Complexity (CWE-407)
2026-11-19 EEF GHSA-5pq6-7wm2-5x62
6.9
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted hostname to application
  2. Delivery
    Deliver multi-kilobyte xn-- Punycode label
  3. Exploit
    Reach punycode:decode before length check
  4. Execution
    insert/4 list-append runs super-linearly
  5. Impact
    CPU/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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

idna c8caba6653259071f7076fe49320f37402b8b81f <7a465b630eb793556aa7ac282fb73e49251dadd2
idna 0.5.0 <8.0.0

Affected Packages

euvd idna fix: 8.0.0

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

Vendor (EEF) PRIMARY 6.9 MEDIUM
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
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Low
Erlang-only IDNA library, niche ecosystem though common in Erlang/Elixir HTTP clients
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy