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.
History

Tue, 29 Sep 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Perl
Perl net::idn::punycode
Vendors & Products Perl
Perl net::idn::punycode

Tue, 22 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
References

Tue, 22 Sep 2026 13:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 22 Sep 2026 07:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Net::IDN::Punycode versions from 2.302 before 2.590 for Perl leak the output buffer on every rejected label in decode_punycode
Weaknesses CWE-401
References

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published: 2026-09-22T07:19:33.195Z

Updated: 2026-09-22T17:07:27.357Z

Reserved: 2026-09-08T19:22:20.005Z

Link: CVE-2026-87078

cve-icon Vulnrichment

Updated: 2026-09-22T17:07:27.357Z

cve-icon NVD

Status : Deferred

Published: 2026-09-22T08:16:40.530

Modified: 2026-09-22T19:07:00.983

Link: CVE-2026-87078

cve-icon Redhat

No data.