CVE-2026-74766
published high CVSS 3.1 · 8.4Net::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
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | Net-IDN-Encode2.301 to < 2.590 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3190 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Net-IDN-Encodeaarch64 | Advisory build | 2.600.0-1.1 | OPENSUSE-SU-2026:12468-1 |
| Amazon Linux | AL2023 | perl-Net-IDN-Encodeaarch64 | Listed in advisory | Not stated | ALAS2023-2026-3190 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Net-IDN-Encodeppc64le | Advisory build | 2.600.0-1.1 | OPENSUSE-SU-2026:12468-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Net-IDN-Encodes390x | Advisory build | 2.600.0-1.1 | OPENSUSE-SU-2026:12468-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Net-IDN-Encodex86_64 | Advisory build | 2.600.0-1.1 | OPENSUSE-SU-2026:12468-1 |
| Amazon Linux | AL2023 | perl-Net-IDN-Encodesrc | Listed in advisory | Not stated | ALAS2023-2026-3190 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | perl-Net-IDN-Encodex86_64 | Listed in advisory | Not stated | ALAS2023-2026-3190 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.4 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Net-IDN-Encode | 2.301 to < 2.590 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
4- https://github.com/robrwo/Net-IDN-Encode/commit/259e74c5739175b063c5393a4ce4a0705678ba61.patch
- https://github.com/robrwo/Net-IDN-Encode/commit/2fbc71e4d8517ab65c5d5d35fda086371b735a3f.patch
- https://metacpan.org/release/PJCJ/Net-IDN-Encode-2.590-TRIAL/changes
- https://www.cve.org/CVERecord?id=CVE-2016-15059
Provider assertions
2CPANSec · cna
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
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0089cdbd01cefba964d7117dd7d03808d252ff800bd8eab058f60477ae256e91
- Ingested
- 23 Sep 2026, 09:31:28 UTC
- Source record
- Official CVE record