CVE-2026-87078
Memory leak in Net::IDN::Punycode for Perl
Critical 9.1 No auth needed
Follow: this CVE We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Sep 22, 2026
- Updated
- Sep 22, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-401
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
What happens
Net::IDN::Punycode versions 2.302 to 2.589 in Perl leak memory in the XS backend when rejecting invalid labels in decode_punycode. A remote attacker can send invalid labels to grow the process unbounded, causing memory exhaustion and denial of service.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 2.590
Update Net::IDN::Punycode to version 2.590 or later.
- Check whether you run any of the affected products and follow the vendor advisory.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Official advisories
- perl-Net-IDN-Encode-2.600.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12468-1 · Nov 6, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.