Skip to content

CVE-2026-87080 Net::IDN::Punycode::PP versions before 2.590 for Perl decode a truncated label to a name containing a character it never encoded in decode_punycode

CriticalCVSS 9.1 EPSS 0.38%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
UbuntuDebian

Description

Net::IDN::Punycode::PP versions before 2.590 for Perl decode a truncated label to a name containing a character it never encoded in decode_punycode.

The pure-Perl decoder reads one digit at a time with four-argument substr and tests the result with defined to detect the end of the input. substr on an exhausted string returns the empty string rather than undef, so decoding continues past the end. The empty string converts to a digit value below the range, reducing the accumulator, and the decoder derives one extra code point and its position from it. The result is deterministic. The XS backend rejects the same label.

Net::IDN::Punycode uses this backend wherever the XS does not build.

The two backends disagree about what such a label means, so a sender can pick a label that one installation resolves to a name and another rejects.

Upgrade path

8 packages: 2 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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