CVE-2026-87079 Net::IDN::Punycode versions before 2.590 for Perl allow CPU exhaustion via quadratic insertion cost when decoding a long label in decode_punycode
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
Net::IDN::Punycode versions before 2.590 for Perl allow CPU exhaustion via quadratic insertion cost when decoding a long label in decode_punycode.
The XS backend inserts each decoded code point into a UTF-8 buffer and finds the insertion point by scanning that buffer from the start, one character at a time. The scan runs once per code point over the output built so far, so the cost is quadratic in the label length. The pure-Perl backend downgrades its input to bytes so that substr can index it directly, but takes its working copy before the downgrade, so when the input carries the UTF-8 flag every substr on the copy scans from the start, with the same quadratic cost.
Nothing bounds the label length in the to-Unicode direction. The 63-byte DNS limit is checked only when converting to ASCII, so domain_to_unicode and uts46_to_unicode pass an attacker-supplied label of any length to the decoder.
Upgrade path
8 packages: 2 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libnet-idn-encode-perl(Debian 12) | = 2.500-3; = 2.500-5; = 2.502-1; = 2.600-1 +1 more | No fix listed | No fix yet |
| debian/libnet-idn-encode-perl(Debian 13) | = 2.500-5; = 2.502-1; = 2.600-1; All versions | No fix listed | No fix yet |
| ubuntu/libnet-idn-encode-perl(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/libnet-idn-encode-perl(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/libnet-idn-encode-perl(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/libnet-idn-encode-perl(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| cpan Net-IDN-Encode | < 2.590 | 2.590 | Fixed |
| debian/libnet-idn-encode-perl(Debian 14) | < 2.600-1; = 2.500-5; = 2.502-1 | 2.600-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cpan Net-IDN-Encode | < 2.590 | 2.590 |
| debian/libnet-idn-encode-perl(Debian:12) | All versions | No fix listed |
| debian/libnet-idn-encode-perl(Debian:12) | = 2.500-3 | No fix listed |
| debian/libnet-idn-encode-perl(Debian:12) | = 2.500-5 | No fix listed |
| debian/libnet-idn-encode-perl(Debian:12) | = 2.502-1 | No fix listed |
| debian/libnet-idn-encode-perl(Debian:12) | = 2.600-1 | No fix listed |
| debian/libnet-idn-encode-perl(Debian:13) | All versions | No fix listed |
| debian/libnet-idn-encode-perl(Debian:13) | = 2.500-5 | No fix listed |
| debian/libnet-idn-encode-perl(Debian:13) | = 2.502-1 | No fix listed |
| debian/libnet-idn-encode-perl(Debian:13) | = 2.600-1 | No fix listed |
| debian/libnet-idn-encode-perl(Debian:14) | < 2.600-1 | 2.600-1 |
| debian/libnet-idn-encode-perl(Debian:14) | = 2.500-5 | No fix listed |
| debian/libnet-idn-encode-perl(Debian:14) | = 2.502-1 | No fix listed |
| ubuntu/libnet-idn-encode-perl(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/libnet-idn-encode-perl(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/libnet-idn-encode-perl(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/libnet-idn-encode-perl(Ubuntu:26.10) | All versions | No fix listed |
References
- metacpan.org release-notes
- github.com patch
- github.com patch
- www.openwall.com
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2538405 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-87079 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-84292 third-party-advisory