CVE-2020-29509
go: encoding/xml: XML attribute instability
Overview
Description
The encoding/xml package in Go (all versions) does not correctly preserve the semantics of attribute namespace prefixes 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.
Source: OX vulnerability database
Severity
5.6 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Weakness: CWE-115
Affected packages · 2
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | golang | <1.17.0 | 1.17.0 |
| Go | github.com/russellhaering/gosaml2 | <0.6.0 | 0.6.0 |
Open a package to see all its vulnerabilities.
Operating systems · 13 fixes
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | kubernetes-dashboard | 2.7.0-1.ph4 |
Red Hat 2 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | golang +5 | wont fix |
| 8 (go-toolset:rhel8) | go-toolset +7 | wont fix |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.17-r0 |
| 3.23 | go | 1.17-r0 |
| 3.24 | go | 1.17-r0 |
| edge | go | 1.17-r0 |
debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | golang-1-15 | affected |
ubuntu 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | golang-1-10 +3 | affected |
| 20.04-ESM | golang-1-13 +1 | affected |
| 22.04 | golang-1-13 | affected |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| go-1-20 +1 | not affected |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| go-1-20 +1 | not affected |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2020-29509
- github.com https://github.com/golang/go/issues/43168
- github.com https://github.com/mattermost/xml-roundtrip-validator/blob/master/advisories/unstable-attributes.md
- github.com https://github.com/russellhaering/gosaml2/commit/42606dafba60c58c458f14f75c4c230459672ab9
- github.com https://github.com/russellhaering/gosaml2/security/advisories/GHSA-xhqq-x44f-9fgg
- mattermost.com https://mattermost.com/blog/coordinated-disclosure-go-xml-vulnerabilities/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2020-29509
- pkg.go.dev https://pkg.go.dev/vuln/GO-2021-0060
- security.netapp.com https://security.netapp.com/advisory/ntap-20210129-0006
- security.netapp.com https://security.netapp.com/advisory/ntap-20210129-0006/
Show all 11 references
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.