libnet-idn-encode-perl — security advisory
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.
- Products
- libnet-idn-encode-perl
- Affected versions
- 2.202-1, 2.300-1, 2.300-1build1, 2.400-1build1, 2.500-1, 2.500-1build1, 2.500-1build2, 2.500-2, 2.500-2build1, 2.500-3, 2.500-3build1, 2.500-3build2, 2.500-5, 2.500-5build1, 2.500-5build2
- Fixed versions
- Not specified
- CVEs
- CVE-2026-87078
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:24 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2026-87078
libnet-idn-encode-perl
Fixed versions: Not specified
libnet-idn-encode-perl
Fixed versions: Not specified
libnet-idn-encode-perl
Fixed versions: Not specified
libnet-idn-encode-perl
Fixed versions: Not specified
libnet-idn-encode-perl
Fixed versions: Not specified
libnet-idn-encode-perl
Fixed versions: Not specified
libnet-idn-encode-perl
Fixed versions: Not specified
Complete source record
{
"id": "f170a70c2656a11a13144a308928c60cef485f3aea28945773a9f7544a264f95",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-87078",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-87078",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2026-87078",
"products": [
{
"name": {
"value": "libnet-idn-encode-perl",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.202-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.300-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.300-1build1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libnet-idn-encode-perl",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.400-1build1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libnet-idn-encode-perl",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.500-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.500-1build1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "libnet-idn-encode-perl",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.500-1build2",
"evidence": "/affected/3/versions"
},
{
"value": "2.500-2",
"evidence": "/affected/3/versions"
},
{
"value": "2.500-2build1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "libnet-idn-encode-perl",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.500-3",
"evidence": "/affected/4/versions"
},
{
"value": "2.500-3build1",
"evidence": "/affected/4/versions"
},
{
"value": "2.500-3build2",
"evidence": "/affected/4/versions"
},
{
"value": "2.500-5",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "libnet-idn-encode-perl",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.500-5build1",
"evidence": "/affected/5/versions"
},
{
"value": "2.500-5build2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "libnet-idn-encode-perl",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.500-5build1",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "critical",
"structured": {
"id": "UBUNTU-CVE-2026-87078",
"aliases": [
"UBUNTU-CVE-2026-87078"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libnet-idn-encode-perl",
"purl": "pkg:deb/ubuntu/libnet-idn-encode-perl?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"2.202-1",
"2.300-1",
"2.300-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87078.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libnet-idn-encode-perl",
"binary_version": "2.300-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libnet-idn-encode-perl",
"purl": "pkg:deb/ubuntu/libnet-idn-encode-perl?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"2.400-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87078.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libnet-idn-encode-perl",
"binary_version": "2.400-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libnet-idn-encode-perl",
"purl": "pkg:deb/ubuntu/libnet-idn-encode-perl?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"2.500-1",
"2.500-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87078.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libnet-idn-encode-perl",
"binary_version": "2.500-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libnet-idn-encode-perl",
"purl": "pkg:deb/ubuntu/libnet-idn-encode-perl?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.500-1build2",
"2.500-2",
"2.500-2build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87078.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libnet-idn-encode-perl",
"binary_version": "2.500-2build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libnet-idn-encode-perl",
"purl": "pkg:deb/ubuntu/libnet-idn-encode-perl?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.500-3",
"2.500-3build1",
"2.500-3build2",
"2.500-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87078.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libnet-idn-encode-perl",
"binary_version": "2.500-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libnet-idn-encode-perl",
"purl": "pkg:deb/ubuntu/libnet-idn-encode-perl?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.500-5build1",
"2.500-5build2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87078.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libnet-idn-encode-perl",
"binary_version": "2.500-5build2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libnet-idn-encode-perl",
"purl": "pkg:deb/ubuntu/libnet-idn-encode-perl?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.500-5build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-87078.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libnet-idn-encode-perl",
"binary_version": "2.500-5build1"
}
]
}
}
],
"modified": "2026-10-17T13:01:14.518773004Z",
"provider": "osv",
"upstream": [
"CVE-2026-87078"
],
"references": [
"https://ubuntu.com/security/CVE-2026-87078",
"https://www.cve.org/CVERecord?id=CVE-2026-87078",
"https://lists.security.metacpan.org/cve-announce/msg/43753020/",
"https://github.com/robrwo/Net-IDN-Encode/commit/92572f726e48af5559de4cc8a831463b79dfb217.patch",
"https://github.com/robrwo/Net-IDN-Encode/commit/edad63e0eeeeb18d93bc6dfe4d9dcdff9c244e1b.patch",
"https://metacpan.org/release/PJCJ/Net-IDN-Encode-2.590-TRIAL/changes"
]
},
"related_cves": [
{
"value": "CVE-2026-87078",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 361350,
"published_at": "2026-09-22T08:16:00+00:00"
}