Skip to content
Medium 7.5

idnaに長いxn--ラベルで大量のCPUを消費される脆弱性

CVE-2026-117678 First seen on SecPulse

Summary

idnaには、ホスト名に過度に長いxn--ラベルを含めると、CPUを使い果たされる脆弱性(CVE-2026-117678)があります。影響するのはHex版で0.5.0から8.0.0より前のidnaで、8.0.0で修正されています。Erlang向けのidnaを使っている場合は、8.0.0以降へ更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

idnaには、ホスト名に過度に長いxn--ラベルを含めると、CPUを使い果たされる脆弱性(CVE-2026-117678)があります。影響するのはHex版で0.5.0から8.0.0より前のidnaで、8.0.0で修正されています。Erlang向けのidnaを使っている場合は、8.0.0以降へ更新してください。

Affected packages

PackageAffected → Fixed
benoitcidna
≥ c8caba6653259071f7076fe49320f37402b8b81f, < 7a465b630eb793556aa7ac282fb73e49251dadd2→ 7a465b630eb793556aa7ac282fb73e49251dadd2
Hexidna
≥ 0.5.0, < 8.0.0→ 8.0.0

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

Summary

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.

Details

1. Label dispatch. idna:decode/2 in src/idna.erl lowercases the domain, splits it into labels and passes each one to ulabel/1. For an all-ASCII label that starts with xn--, ulabel/1 strips the prefix and calls punycode:decode/1 on the remainder. No length check runs before that call. check_label_length/1, which rejects labels longer than 63 octets, is only called from alabel/1, and there only after alabel/1 has itself called ulabel/1 on an ASCII label.

**2. Super-linea…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details