Skip to content
OpenAdvisories
High · 8.4 CVE-2026-74766 EUVD-2026-84290GHSA-qffm-j59f-77qw

Net::IDN::Punycode versions from 2.301 before 2.590 for Perl allow a heap use-after-free via a decoded code point that reallocates the output buffer in decode_punycode

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

Description

Net::IDN::Punycode versions from 2.301 before 2.590 for Perl allow a heap use-after-free via a decoded code point that reallocates the output buffer in decode_punycode.

The XS backend inserts each decoded code point into the string buffer of the scalar it returns. decode_punycode computes the insertion pointer first and only then grows the buffer when the code point does not fit. The growth reallocates the buffer and updates every pointer except the insertion pointer, so the move that follows and the write of the code point go through a freed pointer. The buffer starts at twice the label length, and a code point above U+FFFF takes four bytes in the output, so a label of such code points outgrows it and forces the reallocation.

Version 2.301, the fix for CVE-2016-15059, introduced the defect. Only the XS backend is affected.

Decoding an attacker-supplied punycode label reads and writes freed heap memory.

Affected products

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