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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Net-IDN-Encode | < 2.590 | 2.590 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libnet-idn-encode-perl | 2.600-1 | — |
| Debian 13 | libnet-idn-encode-perl | No fix yet | — |
| Debian 12 | libnet-idn-encode-perl | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libnet-idn-encode-perl | No fix yet | — |
| Ubuntu 26.04 LTS | libnet-idn-encode-perl | No fix yet | — |
| Ubuntu 24.04 LTS | libnet-idn-encode-perl | No fix yet | — |
| Ubuntu 22.04 LTS | libnet-idn-encode-perl | No fix yet | — |
| Ubuntu 20.04 LTS | libnet-idn-encode-perl | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libnet-idn-encode-perl | No fix yet | — |
| Ubuntu 16.04 LTS | libnet-idn-encode-perl | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | perl-Net-IDN-Encode | 2.600.0-1.1 | openSUSE-SU-2026:12468-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | perl-Net-IDN-Encode | 2.590-1.amzn2023.0.1 | ALAS2023-2026-3190 |
Advisories 2
- openSUSE-SU-2026:12468-1 perl-Net-IDN-Encode-2.600.0-1.1 on GA media SUSE / openSUSE Security Updates · Nov 7, 2026
- ALAS2023-2026-3190 Important: perl-Net-IDN-Encode security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 12, 2026