{"id":"CVE-2016-15059","title":"Net::IDN::Punycode versions before 2.301 for Perl allow a heap buffer overflow via unchecked writes past the output buffer in encode_punycode.\n\nThe XS backend builds the encoded label in the string buffer of the scalar it returns, sized …","summary":"Net::IDN::Punycode versions before 2.301 for Perl allow a heap buffer overflow via unchecked writes past the output buffer in encode_punycode.\n\nThe XS backend builds the encoded label in the string buffer of the scalar it returns, sized …","severity":"none","cwe":["CWE-122"],"product":"Net-IDN-Encode","affected":["Net-IDN-Encode < 2.301"],"published":"2026-09-22","updated":"2026-09-22","sourceUpdated":"2026-09-22T08:16:34.520","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2016-15059","references":[{"url":"https://github.com/robrwo/Net-IDN-Encode/commit/9a3ba07f15d22c0347eefee9625b012cbc803657.patch","label":"9b29abf9-4ab0-4765-b253-1875cd9b441e"},{"url":"https://metacpan.org/release/CFAERBER/Net-IDN-Encode-2.301/changes","label":"9b29abf9-4ab0-4765-b253-1875cd9b441e"},{"url":"https://rt.cpan.org/Ticket/Display.html?id=118924","label":"9b29abf9-4ab0-4765-b253-1875cd9b441e"}],"tags":["nvd","cve.org"],"ingestedAt":"2026-09-22T08:00:27.700Z","slug":"CVE-2016-15059","body":"## Overview\n\nNet::IDN::Punycode versions before 2.301 for Perl allow a heap buffer overflow via unchecked writes past the output buffer in encode_punycode.\n\nThe 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.\n\nOnly the XS backend is affected.\n\nEncoding an attacker-supplied string corrupts the heap.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}