CVE-2016-15059
Heap Buffer Overflow in Net::IDN::Punycode for Perl
Critical 9.8 No auth needed
Follow: this CVE We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 0.4% probability of exploitation in 30 days · percentile 28
- Auth required
- No
- Published
- Sep 22, 2026
- Updated
- Sep 22, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-122
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
Net::IDN::Punycode before version 2.301 for Perl contains a heap buffer overflow in the XS backend that allows memory corruption when encoding attacker-supplied strings. The encode_punycode function fails to properly validate writes to the output buffer, enabling remote code execution without authentication.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 2.301
Update Net::IDN::Punycode to version 2.301 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 sources
References
Links published by the sources. Open them with care.