CVE-2026-33818

Enforce maximum recursion depth in encoding/asn1

Published Aug 13, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Enforce a recursion limit in Unmarshal to prevent stack exhaustion when parsing deeply-nested, recursive structures.

Analysis

AI-generated

Technical impact

The vulnerability exists in Go’s standard library encoding/asn1 package where the Unmarshal function does not impose a maximum recursion depth. An attacker can supply a deeply nested ASN.1 payload that causes the Go runtime to grow the call stack until exhaustion, resulting in a crash or significant slowdown. The flaw aligns with CWE‑400, indicating a resource exhaustion weakness, and also aligns with CWE‑776, indicating a lack of recursion limit checks.

Affected Systems

Any system that uses Go’s standard library encoding/asn1 to parse ASN.1 data is potentially affected. No exact version range is provided in the advisory, but references to Go issue 80405 and code review 814980 suggest the problem existed in Go 1.22 and earlier releases until the patch was applied.

Risk and Exploitability

The EPSS score of < 1% indicates a low historical probability of exploitation, and the vulnerability is not listed in CISA KEV. The CVSS score of 7.5 reflects high severity. The attack vector is inferred to be via application input channels—either network or local—to which the malicious ASN.1 document is supplied to Unmarshal. While no public exploitation has been reported, an attacker who can inject such input could trigger a stack overflow and deny service to the affected process. The weakness also relates to CWE‑776, highlighting the absence of recursion-limiting safeguards.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Go runtime to a version that implements the recursion limit change referenced in the Go issue tracker (go.dev/issue/80405).
  • Before delegating ASN.1 data to Unmarshal, enforce an application‑level depth or size limit to prevent excessive recursion.
  • Configure runtime or process sandboxing to constrain stack usage, and monitor for stack overflows or crash events to detect exploitation attempts.

Generated by OpenCVE AI on August 15, 2026 at 01:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8935-1 Go vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-399
Type Values Removed Values Added
Weaknesses CWE-400
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Go Standard Library
Go Standard Library encoding/asn1
Vendors & Products Go Standard Library
Go Standard Library encoding/asn1
Type Values Removed Values Added
Weaknesses CWE-399
Type Values Removed Values Added
Description Enforce a recursion limit in Unmarshal to prevent stack exhaustion when parsing deeply-nested, recursive structures.
Title Enforce maximum recursion depth in encoding/asn1
References
Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-776

    Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Nov 24, 2026, 5:19 AM
Reserved
Mar 23, 2026, 8:35 PM
Status
Awaiting Analysis
Published
Aug 13, 2026, 10:17 PM
Modified
Sep 3, 2026, 4:37 PM
Severity
Important
Public date
Aug 13, 2026, 9:58 PM