Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft truncated punycode label
-
DeliverySubmit to app using pure-Perl backend
-
ExploitDecoder reads past exhausted string
-
ExecutionDerives spurious extra code point
-
ImpactName 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 |
| 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
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.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
3DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand
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
The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of
Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated
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
Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a
Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa
Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e
CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig
In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers
EUVD-2026-84293
GHSA-m8c4-89qh-3j3f
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB