Skip to main content
EPSS 0.2%top 94%

CVE-2026-87082: CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')

0
High
VulnerabilityCVE-2026-87082cvecve-2026-87082cwe-835cwe-1286
Published: 09/22/2026 (09/22/2026, 07:25:37 UTC)
Source: CVE Database V5

Description

Net::IDN::Punycode versions before 2.590 for Perl hang, crash or return a wrong label via unvalidated malformed UTF-8 in encode_punycode. Neither backend checks that its input is well-formed UTF-8, so a string with the UTF-8 flag set over malformed bytes, as the :utf8 PerlIO layer produces from any malformed input, reaches the encoder unchecked. On perl 5.32 and later the XS backend reports a malformed sequence with a length of `(STRLEN)-1`, so the scan steps back one byte instead of forward and never ends. On earlier perls the XS returns a valid label for a different name. The pure-Perl backend runs a regex over the flagged string. Depending on the bytes, it aborts with SIGBUS on perl 5.28 and later, dies with a panic, or returns a wrong label. The documented conversion functions match the label against Unicode properties first and that match dies on such a string, so only a direct call to encode_punycode reaches the defect. The decoder is not affected. A direct caller encoding attacker-supplied bytes hangs, crashes or gets a label for a name the input never held.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

GitHub Actionsmore threats →cve
Net-IDN-Encode
pkg:github/Net-IDN-Encode
Affected versions
>=0 <2.590

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/22/2026, 07:47:39 UTC

Technical Analysis

Net::IDN::Punycode versions prior to 2.590 for Perl do not validate that input to encode_punycode is well-formed UTF-8. Malformed UTF-8 strings with the UTF-8 flag set can cause the XS backend to enter an infinite loop on Perl 5.32 and later due to incorrect handling of malformed sequences. On earlier Perl versions, the XS backend returns incorrect labels. The pure-Perl backend may abort with SIGBUS, panic, or return wrong labels depending on the input bytes. Documented conversion functions avoid this by matching Unicode properties first, which die on malformed strings, so only direct calls to encode_punycode are vulnerable. The decoder is not affected.

Potential Impact

An attacker supplying malformed UTF-8 input directly to encode_punycode can cause the application to hang indefinitely (infinite loop), crash with a SIGBUS, or produce incorrect domain name labels. This can lead to denial of service or incorrect processing of domain names. The vulnerability does not affect documented conversion functions or the decoder.

Mitigation Recommendations

A fix is available in Net::IDN::Punycode version 2.590 and later. Users should upgrade to version 2.590 or above to resolve this issue. Until upgraded, avoid direct calls to encode_punycode with untrusted input. Documented conversion functions are not vulnerable and should be used instead.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
CPANSec
Date Reserved
2026-09-08T19:22:20.005Z
State
PUBLISHED

Threat ID: 6ab22f39f7a7c54106d716b0

Added to database: 09/22/2026, 07:33:13 UTC

Last enriched: 09/22/2026, 07:47:39 UTC

Last updated: 09/22/2026, 17:33:22 UTC

Views: 13

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses