Description
Net::IDN::Punycode versions before 2.590 for Perl allow an out-of-bounds read via integer overflow of the delta accumulator in encode_punycode.

The XS backend keeps the punycode delta, and the digit index derived from it, in a signed int. The accumulation `delta += (m-n) * (h+1)` has no overflow check, so a large enough code point wraps the delta and the digit index leaves the range of the 36-entry digit table. The bound before the final table access tests only for an index above 36, so a negative index passes it, as does 36 itself. Perl strings hold code points beyond the Unicode range, and one such code point overflows the accumulation on its own. Valid input wraps it as well, for example 1927 ASCII letters followed by U+10FFFF. The conversion functions encode a label before they check its length, so a long label reaches the encoder through the documented API.

Only the XS backend is affected.

Encoding an attacker-supplied string copies a byte from outside the digit table into the encoded result or crashes the process.
Published: 2026-09-22
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

Impact

Net::IDN::Punycode versions prior to 2.590 for Perl contain an out‑of‑bounds read due to an unchecked integer overflow in the delta accumulator within the encode_punycode routine. The overflow causes the digit index to fall outside the bounds of the 36‑entry digit table, allowing the function to read memory beyond the array. An attacker can trigger this by submitting a crafted domain label that includes specific Unicode code points or a long ASCII string leading to the overflow, which results in either a corrupted output string or a process crash.

Affected Systems

The vulnerability is present in the Perl CPAN library Net::IDN::Punycode (also packaged as Net-IDN-Encode) for all releases before commit 2.590‑TRIAL. Only the XS backend of the module is affected; the pure Perl implementation is not impacted. Systems that depend on the CPAN library for IDN conversion and use the encode_punycode API are at risk if they have not applied the 2.590‑TRIAL update or later.

Risk and Exploitability

Because the fault is triggered by a supplied string, an attacker only needs local or remote input to the encode_punycode function, which is a documented public API. The vulnerability can lead to service disruption or memory disclosure, though there is no evidence of executable code execution. No EPSS score is available and the issue is not listed in CISA KEV, indicating current exploitation activity is unknown. Still, the severity of an out‑of‑bounds read in a widely used IDN library warrants prompt mitigation.

Generated by OpenCVE AI on September 22, 2026 at 08:25 UTC.

Remediation

Vendor Solution

Upgrade to Net-IDN-Encode 2.590-TRIAL or later.


OpenCVE Recommended Actions

  • Upgrade to Net::IDN::Encode version 2.590‑TRIAL or a later release that fixes the integer overflow in the delta accumulator.
  • Validate and constrain domain labels before passing them to encode_punycode, ensuring they are within acceptable length and code‑point ranges to prevent overflow.
  • If an upgrade is not immediately possible, configure the application to use the pure Perl implementation of Net::IDN::Punycode or otherwise isolate the XS backend in a sandboxed environment to contain any crash or memory exposure.

Generated by OpenCVE AI on September 22, 2026 at 08:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 22 Sep 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L'}


Tue, 22 Sep 2026 07:30:00 +0000

Type Values Removed Values Added
Description Net::IDN::Punycode versions before 2.590 for Perl allow an out-of-bounds read via integer overflow of the delta accumulator in encode_punycode. The XS backend keeps the punycode delta, and the digit index derived from it, in a signed int. The accumulation `delta += (m-n) * (h+1)` has no overflow check, so a large enough code point wraps the delta and the digit index leaves the range of the 36-entry digit table. The bound before the final table access tests only for an index above 36, so a negative index passes it, as does 36 itself. Perl strings hold code points beyond the Unicode range, and one such code point overflows the accumulation on its own. Valid input wraps it as well, for example 1927 ASCII letters followed by U+10FFFF. The conversion functions encode a label before they check its length, so a long label reaches the encoder through the documented API. Only the XS backend is affected. Encoding an attacker-supplied string copies a byte from outside the digit table into the encoded result or crashes the process.
Title Net::IDN::Punycode versions before 2.590 for Perl allow an out-of-bounds read via integer overflow of the delta accumulator in encode_punycode
Weaknesses CWE-125
CWE-190
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-09-22T13:57:00.272Z

Reserved: 2026-08-15T21:52:57.406Z

Link: CVE-2026-74765

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-22T08:16:40.143

Modified: 2026-09-22T14:17:14.443

Link: CVE-2026-74765

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-22T08:30:17Z

Weaknesses