Out-of-bounds read in Net-IDN-Encode
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Net-IDN-Encode | before 2.590 | 2.590 | Patch available | CNA |
- Net-IDN-Encode Vendor— Affected before 2.590 Fixed in 2.590 Patch available CNA
Remediation
- Fix · CNA Net-IDN-Encode Fixed in 2.590
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-74765
- 2026-10-03 Alias added: GHSA-xw3q-mp5h-p8jx
References
Patch 3
Sources
- CVE-2026-74765 · CVE Program
- CVE-2026-74765 · NVD
- FIRST EPSS
- GHSA-xw3q-mp5h-p8jx · GitHub Advisory Database · CC BY 4.0
- CVE-2026-74765 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences