Skip to content
OpenAdvisories
Critical · 9.1 CVE-2026-87078 EUVD-2026-84291GHSA-xcgq-9mhw-ww57

Net::IDN::Punycode versions from 2.302 before 2.590 for Perl leak the output buffer on every rejected label in decode_punycode

Published Sep 22, 2026 · Updated Sep 22, 2026 · Assigned by CPANSec

Description

Net::IDN::Punycode versions from 2.302 before 2.590 for Perl leak the output buffer on every rejected label in decode_punycode.

The XS backend allocates the scalar it returns before it validates the input, sizing the buffer at twice the input length. The scalar is released only on the success path, so each of the three croaks that reject a label leaves the scalar and its buffer allocated. Nothing bounds the label length in the to-Unicode direction, since the 63-byte DNS limit is checked only when converting to ASCII.

Only the XS backend is affected.

A sender who supplies invalid labels grows the process by twice the label length per rejected call, with no successful call needed.

Affected products

VendorProductAffectedFixed
— Net-IDN-Encode 2.302 – < 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.

ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS libnet-idn-encode-perl No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed perl-Net-IDN-Encode 2.600.0-1.1 openSUSE-SU-2026:12468-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 perl-Net-IDN-Encode 2.590-1.amzn2023.0.1 ALAS2023-2026-3190

Advisories 2

References