Skip to main content
EPSS 0.2%top 96%

CVE-2026-45271: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in h2o picotls

0
Medium
VulnerabilityCVE-2026-45271cvecve-2026-45271cwe-835
Published: 08/21/2026 (08/21/2026, 21:00:46 UTC)
Source: CVE Database V5
Vendor/Project: h2o
Product: picotls

Description

CVE-2026-45271 is a medium severity vulnerability in the picotls TLS library used by the h2o project. It involves an infinite loop caused by a lack of maximum nesting depth enforcement in the ASN.1 validation helper used by the minicrypto backend when parsing local PKCS#8 private keys. This can lead to stack exhaustion and application crashes when processing attacker-supplied deeply nested ASN.1 structures. The OpenSSL backend is not affected. The issue has been fixed in a specific commit.

CVSS v3.1

Score 5.5medium

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

Affected software

h2o

picotls

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/11/2026, 02:33:34 UTC

Technical Analysis

Picotls implements its own ASN.1 validation helper used by the minicrypto backend to parse local PKCS#8 private keys. Prior to commit c14231d801407640bc42c2dcf92783409ea6a7c7, the validator recursively descended into constructed ASN.1 elements without limiting nesting depth. This allowed crafted deeply nested ASN.1 structures to exhaust the process stack, causing application crashes. The vulnerability affects applications that load attacker-supplied private keys via ptls_minicrypto_load_private_key() or call the ASN.1 validation API on untrusted DER data. The OpenSSL backend does not use this helper and is not vulnerable. The vulnerability is tracked as CVE-2026-45271 with a CVSS 3.1 score of 5.5 (medium severity).

Potential Impact

An attacker can cause a denial of service by supplying a deeply nested ASN.1 structure that triggers an infinite loop and stack exhaustion in the picotls minicrypto backend. This leads to application crashes. There is no impact on confidentiality or integrity. The OpenSSL backend is not affected.

Mitigation Recommendations

A fix is available and has been implemented in commit c14231d801407640bc42c2dcf92783409ea6a7c7. Users of picotls should update to a version including this commit to prevent denial of service. Applications using the OpenSSL backend are not affected and require no action.

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
GitHub_M
Date Reserved
2026-05-11T18:41:13.156Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a88be1bacd9273b49bcc6bd

Added to database: 08/21/2026, 21:07:39 UTC

Last enriched: 09/11/2026, 02:33:34 UTC

Last updated: 10/06/2026, 18:48:22 UTC

Views: 46

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