CVE-2016-15059 Details
Description
Net::IDN::Punycode versions before 2.301 for Perl allow a heap buffer overflow via unchecked writes past the output buffer in encode_punycode. The XS backend builds the encoded label in the string buffer of the scalar it returns, sized from the input length. The loop that emits the digits of each code point checks for room before every write, but the write of the last digit of each round and the write of the terminating NUL do not, so an input whose encoded form fills the buffer writes past its end. Only the XS backend is affected. Encoding an attacker-supplied string corrupts the heap.
A heap buffer overflow vulnerability has been identified in Net::IDN::Punycode versions prior to 2.301 for Perl. This vulnerability arises from unchecked writes that allow data to be written past the allocated output buffer in the 'encode_punycode' function. The issue is present only in the XS backend, where the encoded label is constructed in a string buffer that is sized based on the input length. While the loop that processes each code point checks for available space before each write, it fails to do so for the last digit of each round and the terminating null character. As a result, an input that fills the encoded form can overwrite adjacent memory, leading to heap corruption.
Users are advised to upgrade to Net::IDN::Punycode version 2.301 or later.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 22, 2026CISA-ADP
Assessed Sep 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/robrwo/Net-IDN-Encode/commit/9a3ba07f15d22c0347eefee9625b012cbc803657.patch | CPANSec | Source CodeVendor |
| https://metacpan.org/release/CFAERBER/Net-IDN-Encode-2.301/changes | CPANSec | Release Notes |
| https://rt.cpan.org/Ticket/Display.html?id=118924 | CPANSec | Issue TrackingTechnical DescriptionVendor |
| http://www.openwall.com/lists/oss-security/2026/09/22/10 | CVE | AdvisoryMailing ListRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| Net::IDN::Punycode | < 2.301 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 22, 2026 | CVE Modified | CVE |
| Sep 22, 2026 | CVE Modified | CISA-ADP |
| Sep 22, 2026 | New CVE Received | CPANSec |
Volerion