CVE-2026-74765 Net::IDN::Punycode versions before 2.590 for Perl allow an out-of-bounds read via integer overflow of the delta accumulator in encode_punycode
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
Description
Net::IDN::Punycode versions before 2.590 for Perl allow an out-of-bounds read via integer overflow of the delta accumulator in encode_punycode.
The XS backend keeps the punycode delta, and the digit index derived from it, in a signed int. The accumulation delta += (m-n) * (h+1) has no overflow check, so a large enough code point wraps the delta and the digit index leaves the range of the 36-entry digit table. The bound before the final table access tests only for an index above 36, so a negative index passes it, as does 36 itself. Perl strings hold code points beyond the Unicode range, and one such code point overflows the accumulation on its own. Valid input wraps it as well, for example 1927 ASCII letters followed by U+10FFFF. The conversion functions encode a label before they check its length, so a long label reaches the encoder through the documented API.
Only the XS backend is affected.
Encoding an attacker-supplied string copies a byte from outside the digit table into the encoded result or crashes the process.
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
- github.com patch
- datatracker.ietf.org technical-description
- www.openwall.com
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2538895 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-74765 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking