Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-15059

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2016-15059
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 09:57 UTC · Revision 1

Source evidence

CVE-2016-15059

core-osv · Original source

Published 22 Sept 2026, 08:16 UTC

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.

osv:CVE-2016-15059
Complete source record
{
  "id": "646fb23f791a5a311e248165ace34e97467f826cc5fedfefc1874b933ee77123",
  "url": "https://osv.dev/vulnerability/CVE-2016-15059",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-15059",
    "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. 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.",
    "evidence": "osv:CVE-2016-15059",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2016-15059",
      "aliases": [
        "CVE-2016-15059"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/robrwo/net-idn-encode",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9a3ba07f15d22c0347eefee9625b012cbc803657"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "9a3ba07f15d22c0347eefee9625b012cbc803657"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "Net-IDN-Encode-2.099_20131226",
            "Net-IDN-Encode-2.099_20131225",
            "Net-IDN-Encode-2.005",
            "Net-IDN-Encode-2.003_2013881000",
            "Net-IDN-Encode-2.003_2013880700",
            "Net-IDN-Encode-2.003_2013122701",
            "Net-IDN-Encode-2.003_2013122700",
            "Net-IDN-Encode-2.003",
            "Net-IDN-Encode-2.002",
            "Net-IDN-Encode-2.001",
            "Net-IDN-Encode-2.000_20120110",
            "Net-IDN-Encode-2.000",
            "Net-IDN-Encode-1.999_20120108",
            "Net-IDN-Encode-1.999_20120107",
            "Net-IDN-Encode-1.000",
            "Net-IDN-Encode-0.999_20100110",
            "Net-IDN-Encode-0.99_20091231",
            "Net-IDN-Encode-0.99_20091216",
            "Net-IDN-Encode-0.99_20080919",
            "Net-IDN-Encode-0.99_20080914",
            "Net-IDN-tools-0.99_20070912"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-15059.json"
          }
        }
      ],
      "modified": "2026-10-20T10:49:30.727121993Z",
      "provider": "osv",
      "references": [
        "https://metacpan.org/release/CFAERBER/Net-IDN-Encode-2.301/changes",
        "https://rt.cpan.org/Ticket/Display.html?id=118924",
        "https://github.com/robrwo/Net-IDN-Encode/commit/9a3ba07f15d22c0347eefee9625b012cbc803657.patch"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "2.301"
                  }
                ],
                "source": "DESCRIPTION"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2016-15059",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 380504,
  "published_at": "2026-09-22T08:16:34.52+00:00"
}