Skip to main content

Go encoding/xml EUVDEUVD-2026-58509

| CVE-2026-56859 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
7.5
CVSS 3.1 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send crafted deeply-nested XML document
  2. Delivery
    Application calls DecodeElement on input
  3. Exploit
    Depth counter resets each invocation
  4. Execution
    Recursion limit never fires
  5. Persist
    Goroutine stack exhausted
  6. Impact
    Process crash (denial of service)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application uses the Go standard library encoding/xml package and specifically invokes the DecodeElement method on XML content supplied or influenced by the attacker. Applications using xml.NewDecoder with only the Token or Decode methods are not affected by this specific depth-counter defect. The CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms that no authentication, no user interaction, and no special network position are required - any Go service accepting XML from external sources over the network is exposed in its default configuration. Exploitation is strictly bounded to denial of service; no code execution, credential theft, or data disclosure is possible. Applications that do not pass externally supplied data to DecodeElement, or that process XML only from fully trusted internal sources, face negligible real-world risk.

Impact

The CVSS 3.1 base score of 7.5 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) accurately characterizes this as a low-friction, network-reachable denial-of-service affecting any Go service that exposes an XML parsing endpoint. Attack complexity is low because crafting deeply nested XML is trivial. However, the EPSS score of 0.18% at the 8th percentile and absence from CISA KEV indicate that exploitation has not been observed at scale and automated weaponization is not yet evident. The discrepancy between the high CVSS and low EPSS is consistent with a well-understood DoS class where the proof-of-concept is obvious but attacker motivation to weaponize is low compared to code-execution vulnerabilities. Impact is strictly limited to availability - no confidentiality or integrity risk exists. Deployments that process untrusted XML over the network (REST/SOAP APIs, XML-based protocols) should treat this as a moderate-priority patch given the zero-authentication, low-complexity exploit path, while internal-only services with controlled XML sources face materially lower real-world risk.

Exploit ScenarioDerived

An attacker crafts an XML document with hundreds or thousands of nested elements and submits it to any publicly reachable Go service endpoint that calls DecodeElement - for example, a REST API accepting an XML body or a SOAP service. Because DecodeElement resets its internal depth counter on each call, the recursion limit never triggers, the goroutine stack exhausts, and the application process crashes, producing a denial-of-service condition. No public exploit code has been identified, but the attack requires only a text editor to construct a deeply nested XML payload.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Aug 14, 2026

Stack exhaustion in Go's standard library encoding/xml package exposes any Go application parsing untrusted XML to remote denial of service. The DecodeElement function incorrectly resets an internal recursion depth counter on each invocation, neutralizing the depth-limit guard that exists to prevent unbounded stack growth from deeply nested XML documents. Unauthenticated remote attackers can trigger goroutine stack exhaustion and crash the affected process with no authentication required. No public exploit code has been identified and the vulnerability is not listed in CISA KEV; EPSS is 0.18% (8th percentile), reflecting low near-term exploitation probability despite the straightforward attack primitive.

Earlier versions of this analysis (1)
v1 Aug 13, 2026 - 22:16

Stack exhaustion in Go's standard library encoding/xml package allows denial of service against any Go application that parses untrusted XML via (*Decoder).DecodeElement. The bug causes DecodeElement to reset the recursion-depth counter on each invocation rather than accumulating it, effectively neutralizing the guard that was designed to prevent deeply nested XML from exhausting goroutine stack space. Fixed in Go 1.26.6 and Go 1.25.13 released August 13, 2026; no public exploit identified at time of analysis.

RemediationAI

Upgrade the Go toolchain to version 1.25.13, 1.26.6, or 1.27.0-rc.3 or later, depending on the release branch in use; the fix is confirmed available per the vendor advisory at https://pkg.go.dev/vuln/GO-2026-6088 and the change is tracked at https://go.dev/cl/803320. Applications must be recompiled against the patched Go toolchain - simply updating the toolchain without rebuilding binaries does not remediate deployed services. Where immediate patching is not feasible, a concrete compensating control is to validate and reject XML input that exceeds a safe nesting depth before passing it to DecodeElement; this adds latency to the parsing path but removes the exploit vector without requiring a toolchain upgrade. Alternatively, refactoring affected code to use xml.NewDecoder with Token-level iteration rather than DecodeElement avoids the vulnerable code path entirely, though this requires application-level changes. Restricting access to XML-consuming endpoints via network controls or authentication reduces exposure for internal services.

Affected VersionsENISA

encoding/xml 1.26.0-0 <1.26.6
encoding/xml 1.27.0-0 <1.27.0-rc.3
encoding/xml 0 <1.25.13

Affected Packages

go stdlib fix: 1.25.13, 1.26.6, 1.27.0-rc.3
euvd encoding_xml fix: 1.25.13, 1.26.6, 1.27.0-rc.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the encoding/xml package within the Go standard library, used pervasively for XML parsing across the Go ecosystem. The root cause is CWE-770 (Allocation of Resources Without Limits or Throttling): the DecodeElement method was designed to enforce a maximum recursion depth to prevent stack exhaustion when walking deeply nested XML element trees, but a logic defect causes it to reset the depth counter on each invocation rather than accumulating it. This means the depth limit guard never actually fires regardless of XML nesting depth, allowing the call stack to grow without bound until the goroutine's stack limit is exceeded. The vulnerability is tracked as GO-2026-6088 in the Go vulnerability database and spans multiple supported Go release branches as identified by CPE-equivalent version ranges in EUVD-2026-58509.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CNA) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Network-reachable, unauthenticated DoS via crafted XML; no confidentiality or integrity impact; scope unchanged as crash is contained to the vulnerable process.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (CNA).

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
Analysis Updated
Aug 14, 2026 - 16:35 vuln.today
v2 - CVSS changed
CVSS changed
Aug 14, 2026 - 16:22 NVD
7.5 (HIGH)
Patch available
Aug 13, 2026 - 23:04 EUVD
CVE Published
Aug 13, 2026 - 20:40 oss-security
CRITICAL

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Executive ViewAI

Why It Matters

Go applications parsing untrusted XML are vulnerable to remote denial-of-service attacks that crash the service without requiring authentication or user interaction. Any organization operating Go-based APIs, microservices, or internal tools that accept XML input faces service availability risk from a straightforward attack. Remediation is required for all affected Go deployments to prevent resource exhaustion incidents.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
High
Go standard library component used in millions of production services globally.
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy