# CVE-2020-29510: The encoding/xml package in Go versions 1.15 and earlier does not correctly preserve the semantics of directives during tokenization round-…

- Severity: Critical 9.8 (CVSS:3.1, scored by Mattermost) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/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): 2.07%, higher than 82% of CVEs (2026-11-30)
- Published: 2020-12-14T19:57:44.107Z
- Modified: 2026-09-10T16:00:47.625Z
- Also known as: BIT-GOLANG-2020-29510
- Weaknesses: CWE-115
- Assigned by: Mattermost

## Description

The encoding/xml package in Go versions 1.15 and earlier does not correctly preserve the semantics of directives during tokenization round-trips, which allows an attacker to craft inputs that behave in conflicting ways during different stages of processing in affected downstream applications.

(As written by CVE List.)

## Affected

- Golang Go: from unspecified up to 1.15; up to 1.15
- netapp trident: no versions given
- golang (Bitnami): before 1.15.1

## Every score

- Mattermost: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.6 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/mattermost/xml-roundtrip-validator/blob/master/advisories/unstable-directives.md> (advisory, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210129-0006/> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-29510> (web)

## Sources

- CVE List: [CVE-2020-29510](https://www.cve.org/CVERecord?id=CVE-2020-29510), CVE Terms of Use, modified 2024-09-16
- NVD: [CVE-2020-29510](https://nvd.nist.gov/vuln/detail/CVE-2020-29510), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2020-29510](https://osv.dev/vulnerability/BIT-GOLANG-2020-29510), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2020-29510 · Whole record: https://cve.day/CVE-2020-29510.json · Rebuilt by cve.day 2026-11-25T22:57:56.219Z
