cve.bz

CVE-2026-87078

9.1 criticalEPSS 0.4%

Critical (9.1). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 32nd percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-09-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-401 Missing Release of Memory after Effective Lifetime
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-87078 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-87078?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-87078?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-87078 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13libnet-idn-encode-perlno fix listedDEBIAN-CVE-2026-87078
Debian14libnet-idn-encode-perl2.600-1DEBIAN-CVE-2026-87078
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 3 morelibnet-idn-encode-perlno fix listedUBUNTU-CVE-2026-87078
openSUSETumbleweedperl-Net-IDN-Encode2.600.0-1.1openSUSE-SU-2026:12468-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

A memory leak flaw was found in the XS backend of the Perl Net::IDN::Punycode module (part of the Net-IDN-Encode distribution). The decode_punycode function allocates a scalar output buffer sized at twice the input length before validating the Punycode input. The buffer is released only on the success path — each of the three croak paths that reject an invalid label leaks the buffer and its allocation. Since no bound is placed on the label length in the to-Unicode direction (the 63-byte DNS limit is checked only when converting to ASCII), an attacker supplying invalid labels can grow the process memory by twice the label length per rejected call, with no successful call required. Only the XS backend is affected. This issue does not affect any Red Hat product. The perl-Net-IDN-Encode package is available only in Fedora and EPEL community repositories.

Red Hat's mitigation

Upgrade to a patched version >= 2.590.

Use the pure-Perl backend of Net::IDN::Punycode instead of the XS backend. The pure-Perl backend is not affected by this memory leak. Alternatively, validate and reject Punycode labels exceeding 63 bytes at the application boundary before passing them to decode_punycode.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-87078.

References

Check your stackJSON