Skip to main content

Net::IDN::Punycode CVE-2026-87080

| EUVDEUVD-2026-84293 CRITICAL
Improper Validation of Syntactic Correctness of Input (CWE-1286)
2026-09-22 CPANSec GHSA-m8c4-89qh-3j3f
9.1
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft truncated punycode label
  2. Delivery
    Submit to app using pure-Perl backend
  3. Exploit
    Decoder reads past exhausted string
  4. Execution
    Derives spurious extra code point
  5. Impact
    Name differential bypasses validation on target

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Hardware access control granularity
Exploitation Conditions

Requires the affected installation to be using the pure-Perl backend, Net::IDN::Punycode::PP - the description states this backend is used 'wherever the XS does not build,' so installations with the compiled XS backend are NOT vulnerable (XS rejects the same label). An attacker must supply a crafted truncated punycode label (a label ending mid code point, e.g. 'NMzZNlL6SU', 'abc-td', or 'z') to an application that decodes it via decode_punycode. No authentication and no user interaction are needed to reach the decoder. The practical limiting factor is downstream: the differential only becomes a security problem when the decoded name feeds a security-relevant decision (domain/email allowlisting, host matching, deduplication) that is expected to agree with another system using the XS backend.

Impact

The vendor CVSS of 9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H) substantially overstates real-world risk for this vulnerability. This is a parser-differential / input-validation flaw (CWE-1286): the pure-Perl decoder in Net::IDN::Punycode::PP continues decoding past a truncated punycode label because substr on an exhausted string returns '' rather than undef, so the defined guard fails and the decoder derives a spurious extra code point. The security consequence is a backend disagreement - one installation (pure-Perl) resolves a label to a name that another (XS) rejects. The concrete impact is name confusion / security-decision inconsistency, which maps far more naturally to a limited integrity/confidentiality impact than to the C:H/A:H the vendor assigned; there is no obvious mechanism for high-confidentiality data exposure, and pre-patch the code silently produces wrong output rather than crashing, so A:H is questionable (the croak that could cause availability issues is added by the FIX, not the bug). Supporting signals reinforce low urgency: EPSS is 0.15% (4th percentile), there is no CISA KEV listing, and no public exploit code is identified. Attack complexity is genuinely low and network-reachable, and a patch is available, but the actual harm is entirely contingent on how downstream code uses the decoded name and on the vulnerable pure-Perl fallback being in use rather than the XS backend. Net: treat this as a moderate, context-dependent hardening fix, not a 9.1 critical priority.

Exploit ScenarioDerived

An attacker crafts a truncated punycode IDN label and submits it to an application that performs IDN/domain decoding using the vulnerable pure-Perl backend (e.g., email-address, hostname, or domain allowlist validation). On the pure-Perl installation the label decodes to a name containing a code point that was never encoded, while an XS-backed peer rejects it, letting the attacker pick a label that bypasses name-based validation on one system but not another. No public exploit code is identified and exploitation depends on the pure-Perl fallback being active and the decoded name feeding a security decision.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 22, 2026

The pure-Perl punycode decoder in Net::IDN::Punycode::PP, shipped in Perl Net-IDN-Encode distributions before 2.590, silently decodes a truncated label into a name that contains a code point the label never encoded, while the compiled XS backend rejects that same label - a parser differential an unauthenticated remote sender can trigger by supplying a malformed punycode label (for example 'NMzZNlL6SU', 'abc-td' or 'z'). Only installations where the XS backend does not build and the pure-Perl path is used are exposed, and the discrepancy only becomes a security problem when the decoded name feeds a security-relevant decision (allowlisting, host matching, deduplication) that is expected to agree with a system running the XS backend. There is no confirmed active exploitation (not in CISA KEV) and no public exploit code identified at time of analysis; EPSS is only 0.15% (4th percentile), and the vendor's 9.1 severity rating materially overstates the realistic risk given the constrained backend dependency and the lack of any demonstrated downstream impact.

RemediationAI

Apply the vendor fix by upgrading Net-IDN-Encode / Net::IDN::Punycode::PP to version 2.590 or later, which changes the end-of-input check from defined $cp to length $cp in lib/Net/IDN/Punycode/PP.pm and adds a regression test (t/punycode_security-pp.t) covering truncated labels; the upstream commit is available at https://github.com/robrwo/Net-IDN-Encode/commit/48436c7ad2c4d4c6398110e11133754fc476a783.patch and the release changes file at https://metacpan.org/release/PJCJ/Net-IDN-Encode-2.590-TRIAL/changes. If upgrading is not immediately possible, confirm whether the affected host actually uses the pure-Perl backend - verify that the XS backend builds and loads, since a working XS backend rejects the malformed label and is not vulnerable; note this may require a compiler and headers and is not always an option on minimal Perl deployments. A practical compensating control is to pre-validate labels before calling decode_punycode: reject labels that end mid code point (e.g. labels with no delimiter after base characters, or very short residual segments), cap label length, and wrap the decode call in eval so malformed input is treated as invalid rather than resolved - the trade-off is that patched versions now croak ('incomplete encoded code point') on these inputs, so callers must handle that exception or they will convert a silent mis-decode into an unhandled runtime error. For applications that must stay consistent with another system, canonicalize by re-encoding the decoded name and comparing it against the original label; a mismatch signals a label that resolves differently across backends, at the cost of extra CPU and possible flagging of legitimate but non-canonical labels.

Affected ProductsAI

All versions of the Perl module Net::IDN::Punycode::PP prior to 2.590 are affected, distributed as part of the CPAN distribution Net-IDN-Encode (release changes for the 2.590 line are documented at https://metacpan.org/release/PJCJ/Net-IDN-Encode-2.590-TRIAL/changes, with the upstream fix commit at https://github.com/robrwo/Net-IDN-Encode/commit/48436c7ad2c4d4c6398110e11133754fc476a783.patch). Exposure is limited to installations where the XS backend is not compiled or not selected, since Net::IDN::Punycode uses the pure-Perl backend wherever the XS does not build; installations running the XS path are not vulnerable because it rejects the same truncated label. No CPE strings were supplied with the source data, so exact platform CPE mapping could not be confirmed; the EUVD record for this issue is EUVD-2026-84293 and the NVD advisory reference is https://nvd.nist.gov/vuln/detail/CVE-2026-87080.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Punycode (RFC 3492) is the encoding that maps Unicode domain labels to the ASCII form used in IDNA, and Net::IDN::Punycode::PP is the pure-Perl reference implementation used as a fallback whenever the XS (compiled C) backend cannot be built. The decoder reads one encoded digit at a time using the four-argument form of Perl's substr and uses the defined test to detect that the input is exhausted. However, substr on an exhausted string returns the empty string rather than undef, so the end-of-input condition is never detected; decoding continues past the end of the label, the empty string is coerced to a numeric digit value below the valid range, the accumulator is reduced, and the decoder derives one extra code point and its position from it. The behaviour is deterministic, not random, and produces a name that is inconsistent with the input. The upstream fix replaces the defined $cp test with length $cp so that an exhausted input raises 'incomplete encoded code point in decode_punycode'. Root cause class CWE-1286 (Improper Validation of Syntactic Correctness of Input): the decoder accepts a syntactically incomplete encoded code point instead of rejecting the label, which is precisely the divergence the XS backend avoids. The security relevance is a decoder-differential issue, not memory corruption or direct code execution.

Know when Perl gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
vuln.today AI 6.5 MEDIUM

Remote crafted label, no auth/UI (AV:N/AC:L/PR:N/UI:N); impact is a context-dependent name-confusion differential giving limited integrity/confidentiality (C:L/I:L) with no genuine availability loss (A:N), so vendor C:H/A:H is overstated.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

Lifecycle Timeline

3
CVSS changed
Sep 22, 2026 - 16:22 NVD
9.1 (CRITICAL)
CVE Published
Sep 22, 2026 - 07:25 cve.org
UNKNOWN (no severity yet)
CVE Published
Sep 22, 2026 - 07:25 cve.org
CRITICAL 9.1

DescriptionCVE.org

Net::IDN::Punycode::PP versions before 2.590 for Perl decode a truncated label to a name containing a character it never encoded in decode_punycode.

The pure-Perl decoder reads one digit at a time with four-argument substr and tests the result with defined to detect the end of the input. substr on an exhausted string returns the empty string rather than undef, so decoding continues past the end. The empty string converts to a digit value below the range, reducing the accumulator, and the decoder derives one extra code point and its position from it. The result is deterministic. The XS backend rejects the same label.

Net::IDN::Punycode uses this backend wherever the XS does not build.

The two backends disagree about what such a label means, so a sender can pick a label that one installation resolves to a name and another rejects.

Executive ViewAI

Why It Matters

A decoding flaw in the pure-Perl punycode component of the Perl Net-IDN-Encode distribution (versions before 2.590) can cause a malformed internationalized domain name to be interpreted differently by different systems, potentially allowing a crafted name to slip past allowlisting, host-matching, or deduplication logic. Only environments that fall back to the pure-Perl code path - those where the compiled XS backend does not build - are exposed, and only where a decoded name drives a security decision, so the practical exposure is narrow rather than fleet-wide. Leadership should treat this as a targeted hardening item for affected Perl services rather than an urgent enterprise-wide incident.

Business Impact: Low
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Medium
Common Perl CPAN IDN library, but only the pure-Perl fallback path is affected
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Low
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Perl

View all
CVE-2012-6329 HIGH POC
7.5 Jan 04

The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand

CVE-2017-12814 CRITICAL POC
9.8 Sep 28

Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before

CVE-2015-8608 CRITICAL POC
9.8 Feb 07

The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of

CVE-2018-18314 CRITICAL POC
9.8 Dec 07

Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated

CVE-2018-18312 CRITICAL POC
9.8 Dec 05

Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid

CVE-2026-13221 CRITICAL POC
9.1 Jul 13

Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a

CVE-2018-18313 CRITICAL POC
9.1 Dec 07

Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa

CVE-2016-2381 HIGH
7.5 Apr 08

Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e

CVE-2023-31484 HIGH POC
8.1 Apr 29

CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS

CVE-2016-6185 HIGH POC
7.8 Aug 02

The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig

CVE-2018-12015 HIGH POC
7.5 Jun 07

In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha

CVE-2020-10543 HIGH
8.2 Jun 05

Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy