CVE-2026-87081: Net::IDN::UTS46 versions before 2.590 for Perl allow CPU exhaustion via quadratic punycode encoding of an overlong label before the length check in to_ascii
Perl Net::IDN::UTS46 before 2.590 can exhaust CPU on overlong labels.
CVE-2026-87081 affects Net::IDN::UTS46 in Perl's Net-IDN-Encode before version 2.590. The to_ascii function performs quadratic punycode encoding of an overlong label before applying its length check, which can exhaust CPU. Paul Johnson reported the issue on oss-security, pointing to the MetaCPAN distribution and GitHub repository. The post does not report in-the-wild exploitation.
- Affects Net::IDN::UTS46 versions before 2.590.
- Overlong labels are encoded before the length check.
- Quadratic punycode work can exhaust CPU.
- Tracked as CVE-2026-87081 in Net-IDN-Encode.
Vulnerabilities mentionedAll →
- CVE-2026-870817.5—CPU Exhaustion via Quadratic Punycode Encoding in Perl Net::IDN::UTS46 < 2.590published · Perl CPAN (Net::IDN::UTS46 distribution) Net::IDN::UTS46
| CVE | Vulnerability | CVSS | EPSS | Flags | Affected | Exposure | Published |
|---|---|---|---|---|---|---|---|
| CVE-2026-87081 | CPU Exhaustion via Quadratic Punycode Encoding in Perl Net::IDN::UTS46 < 2.590 Net::IDN::UTS46, a Perl library implementing IDNA/UTS #46 domain-name processing, performs punycode encoding of a DNS label before enforcing the 63-byte length limit in its to_ascii function. The encoding follows the RFC 3492 sample implementation, whose cost grows with the square of a label's length when the label contains many distinct non-ASCII code points, so a single crafted overlong label can consume excessive CPU before being rejected. An attacker triggers this by supplying a hostile hostname or email address to any application that passes untrusted input through to_ascii, domain_to_ascii, or email_to_ascii (all ASCII-conversion entry points in the distribution use to_ascii). The impact is denial of service — CPU exhaustion on the process or worker handling the request — with no data exposure or code execution. No public proof of concept is known, the issue is not in the CISA KEV catalog, and no exploitation has been reported. |
Posted by Paul Johnson on Sep 22 ======================================================================== https://metacpan.org/dist/Net-IDN-Encode https://github.com/robrwo/Net-IDN-Encode Net::IDN::UTS46...
This source does not provide full text. Read it at seclists.org.