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 a flaw that violates integer overflow (CWE‑190), resulting in an out‑of‑bounds read (CWE‑125) in the encode_punycode routine. The unchecked integer overflow occurs while accumulating the delta value, causing the digit index to fall outside the bounds of the 36‑entry digit table and 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. The EPSS score indicates a low exploitation probability (< 1%), 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 17:15 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 17:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 29 Sep 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Perl
Perl net::idn::punycode
Vendors & Products Perl
Perl net::idn::punycode

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


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

Type Values Removed Values Added
References
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


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

Perl Net::idn::punycode
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-09-22T17:07:26.038Z

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

Link: CVE-2026-74765

cve-icon Vulnrichment

Updated: 2026-09-22T17:07:26.038Z

cve-icon NVD

Status : Deferred

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

Modified: 2026-09-22T19:07:00.983

Link: CVE-2026-74765

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-22T07:18:46Z

Links: CVE-2026-74765 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-29T13:21:28Z

Weaknesses