Description
Previously, DecodeElement would reset the depth counter causing it to never fire; this could lead to stack exhaustion.
Published: 2026-08-13
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

DecodeElement in the Go standard library’s encoding/xml package resets the recursion depth counter during parsing, preventing the depth guard from ever firing. A crafted XML document with a deep chain of nested elements can therefore force the decoder to recurse until the process stack overflows, terminating or hanging the application. The result is an availability loss, classified as a denial‑of‑service condition.

Affected Systems

The vulnerability exists in any Go release that contains the pre‑patch implementation of DecodeElement in the encoding/xml package. Because specific affected releases are not listed, any Go program that relies on the standard library decoder without the recursion depth guard may be vulnerable. The impact applies to all services or applications that decode untrusted XML data using this function.

Risk and Exploitability

The CVSS score of 7.5 indicates high severity, while the EPSS score of < 1% suggests a low likelihood of exploitation at present. Based on the description, it is inferred that an attacker could trigger the vulnerability remotely by sending crafted XML to a vulnerable service, as the decoder operates on user‑controlled input. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires no special privileges, making the remote attack vector straightforward for an adversary with network access to the target.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a Go release that implements the recursion depth guard in encoding/xml.
  • Sanitize XML input by enforcing a maximum nesting depth and element size before decoding, using a pre‑processor or custom decoder wrapper.
  • Run XML parsing in a restricted environment, such as a separate container or process with limited stack memory, to contain potential exhaustion.

Generated by OpenCVE AI on August 15, 2026 at 01:50 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 19:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-674

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

Type Values Removed Values Added
Weaknesses CWE-770
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/xml
Vendors & Products Go Standard Library
Go Standard Library encoding/xml

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

Type Values Removed Values Added
Weaknesses CWE-674

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

Type Values Removed Values Added
Description Previously, DecodeElement would reset the depth counter causing it to never fire; this could lead to stack exhaustion.
Title Add recursion depth guard during decode in encoding/xml
References

Subscriptions

Go Standard Library Encoding/xml
cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published:

Updated: 2026-08-14T15:21:46.218Z

Reserved: 2026-06-23T15:10:49.353Z

Link: CVE-2026-56859

cve-icon Vulnrichment

Updated: 2026-08-14T15:21:41.531Z

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-56859

cve-icon Redhat

Severity : Important

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

Links: CVE-2026-56859 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-15T02:00:04Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

  • CWE-776

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