CVE-2026-45271: CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') in h2o 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
Affected software
h2o
picotls
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.