CVE-2026-87078: 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

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

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 Software

1 affected component
cpan/Net-IDN-Punycode>=2.302<2.590

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Net-IDN-Encode to a version that resolves this vulnerability.

    Fixed in 2.590-TRIAL

Event History

Sep 22, 2026
CVE Published
via MITRE·07:19 AM
Data Sourced
via MITRE·07:19 AM
RemedyDescriptionWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Only deployments using the XS backend are affected. The affected version range is Net::IDN::Punycode 2.302 through versions before 2.590.

2

What does an attacker need to trigger the memory growth?

An attacker needs to cause decode_punycode to process invalid labels. Each rejected label leaks memory, and no successful decode call is needed for the leak to occur.

3

Does the DNS 63-byte label limit restrict this attack path?

No. The 63-byte limit is checked only during conversion to ASCII, while the affected path is the to-Unicode direction, where label length is not bounded.

4

How does repeated exploitation affect a process?

The process grows by twice the supplied label length for every rejected call. Repeated invalid labels can therefore consume increasing process memory.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203