# CVE-2026-74765: 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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.52% (percentile 38, 2026-11-26)
- **CWE:** CWE-190, CWE-125
- **Published:** 2026-09-22T07:18:46.087Z
- **Modified:** 2026-09-22T19:07:00.983Z

## Who should check

- Anyone running Net-IDN-Encode \< 2.590

## 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.

## Affected and fixed versions

- Net-IDN-Encode: \< 2.590 (cvelist)

## Mitigation

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

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-74765. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74765.md
Affected: Net-IDN-Encode < 2.590
Fixed in: Net-IDN-Encode 2.590

Steps:
1. Search this machine and project for Net-IDN-Encode: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-74765 being exploited?

There is no confirmed exploitation: CVE-2026-74765 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-74765?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-74765?

Net-IDN-Encode \< 2.590.

### Is there a fix for CVE-2026-74765?

Yes. Fixed in Net-IDN-Encode 2.590. Upgrade Net-IDN-Encode to 2.590 or later.

### How do I check if I'm affected by CVE-2026-74765?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/robrwo/Net-IDN-Encode/commit/27a91ccdb6c9b41f75ba198f5ae154d14e225de2.patch>
- patch: <https://github.com/robrwo/Net-IDN-Encode/commit/81c7f99fe7430bdc5116081508dffdb56f376861.patch>
- patch: <https://github.com/robrwo/Net-IDN-Encode/commit/89d5aa8d3504c5e96061ab76d1541a89c16157cf.patch>
- article: <https://datatracker.ietf.org/doc/html/rfc3492#section-6.4>
- other: <https://metacpan.org/release/PJCJ/Net-IDN-Encode-2.590-TRIAL/changes>
- other: <http://www.openwall.com/lists/oss-security/2026/09/22/11>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-74765>

HTML: <https://flawdb.com/CVE-2026-74765> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-74765>
