Description
Enforce a recursion limit in Unmarshal to prevent stack exhaustion when parsing deeply-nested, recursive structures.
Published: 2026-08-13
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Sat, 15 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-776
References
Metrics threat_severity

None

threat_severity

Important


Fri, 14 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399

Fri, 14 Aug 2026 16:30:00 +0000

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'}


Fri, 14 Aug 2026 13:00:00 +0000

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

Fri, 14 Aug 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-399

Thu, 13 Aug 2026 22:15:00 +0000

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

Subscriptions

Go Standard Library Encoding/asn1
cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published:

Updated: 2026-08-28T15:14:26.550Z

Reserved: 2026-03-23T20:35:32.815Z

Link: CVE-2026-33818

cve-icon Vulnrichment

Updated: 2026-08-14T15:12:26.975Z

cve-icon NVD

Status : Received

Published: 2026-08-13T22:17:19.840

Modified: 2026-08-14T16:16:55.317

Link: CVE-2026-33818

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-13T21:58:52Z

Links: CVE-2026-33818 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-15T01:30:17Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-776

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