# CVE-2026-56859: Add recursion depth guard during decode in encoding/xml

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Published: 2026-08-13T21:43:54.000Z
- Modified: 2026-11-25T10:42:41.216Z
- Also known as: GO-2026-6088, BIT-GOLANG-2026-56859
- Related: RHSA-2026:100485, RHSA-2026:102514, RHSA-2026:102524, RHSA-2026:102526, RHSA-2026:102529, RHSA-2026:102708, RHSA-2026:102902, RHSA-2026:102905, RHSA-2026:54835, RHSA-2026:54836, RHSA-2026:57415, RHSA-2026:60304, RHSA-2026:60305, RHSA-2026:60306, RHSA-2026:61882, RHSA-2026:62404, RHSA-2026:62405, RHSA-2026:62406, RHSA-2026:62407, RHSA-2026:62602, RHSA-2026:62631, RHSA-2026:62753, RHSA-2026:62754, RHSA-2026:62803, RHSA-2026:63022, RHSA-2026:63163, RHSA-2026:64786, RHSA-2026:65116, RHSA-2026:65117, RHSA-2026:65153, RHSA-2026:65335, RHSA-2026:65336, RHSA-2026:65359, RHSA-2026:65534, RHSA-2026:65880, RHSA-2026:65886, RHSA-2026:65895, RHSA-2026:65918, RHSA-2026:66016, RHSA-2026:66327, RHSA-2026:66350, RHSA-2026:66356, RHSA-2026:66375, RHSA-2026:67128, RHSA-2026:67153, RHSA-2026:67313, RHSA-2026:67319, RHSA-2026:67464, RHSA-2026:67517, RHSA-2026:67518, RHSA-2026:67934, RHSA-2026:67974, RHSA-2026:67975, RHSA-2026:68334, RHSA-2026:68335, RHSA-2026:68504, RHSA-2026:68527, RHSA-2026:68534, RHSA-2026:69099, RHSA-2026:69235, RHSA-2026:69308, RHSA-2026:69961, RHSA-2026:70103, RHSA-2026:70201, RHSA-2026:70585, RHSA-2026:70614, RHSA-2026:70645, RHSA-2026:71112, RHSA-2026:71113, RHSA-2026:71114, RHSA-2026:71420, RHSA-2026:71443, RHSA-2026:71445, RHSA-2026:72276, RHSA-2026:76795, RHSA-2026:76809, RHSA-2026:82810, RHSA-2026:83631, RHSA-2026:87245, RHSA-2026:87246, RHSA-2026:88339, RHSA-2026:88340, RHSA-2026:90725, RHSA-2026:90726, RHSA-2026:90994, RHSA-2026:92217, RHSA-2026:94063, RHSA-2026:96076, RHSA-2026:97387, RHSA-2026:98056, RHSA-2026:98108, RHSA-2026:98447, RHSA-2026:98454, RHSA-2026:98554
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Go

## Description

Previously, DecodeElement would reset the depth counter causing it to never fire; this could lead to stack exhaustion.

(As written by CVE List.)

## Affected

- encoding/xml: before 1.25.13; from 1.26.0-0 before 1.26.6; from 1.27.0-0 before 1.27.0-rc.3
- stdlib (Go): before 1.25.13; from 1.26.0-0 before 1.26.6; from 1.27.0-0 before 1.27.0-rc.3
- golang (Bitnami): before 1.25.13; from 1.26.0-0 before 1.26.6; from 1.27.0-0 before 1.27.0

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/issue/80481> (report, web)
- <https://go.dev/cl/803320> (fix, web)
- <https://groups.google.com/g/golang-announce/c/94pEornpRlI> (web)
- <https://pkg.go.dev/vuln/GO-2026-6088> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-56859> (web)

## Sources

- CVE List: [CVE-2026-56859](https://www.cve.org/CVERecord?id=CVE-2026-56859), CVE Terms of Use, modified 2026-08-14
- Go Vulnerability Database: [GO-2026-6088](https://pkg.go.dev/vuln/GO-2026-6088), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-56859](https://nvd.nist.gov/vuln/detail/CVE-2026-56859), Public domain, modified 2026-09-03
- Bitnami Vulnerability Database: [BIT-GOLANG-2026-56859](https://osv.dev/vulnerability/BIT-GOLANG-2026-56859), Apache-2.0, modified 2026-08-19

---

Page: https://cve.day/CVE-2026-56859 · Whole record: https://cve.day/CVE-2026-56859.json · Rebuilt by cve.day 2026-11-25T22:59:32.869Z
