# CVE-2020-29509: Authentication Bypass in github.com/russellhaering/gosaml2

- 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.10%, higher than 82% of CVEs (2026-12-01)
- Published: 2020-12-14T20:02:02.448Z
- Modified: 2026-09-10T16:00:47.645Z
- Also known as: GHSA-xhqq-x44f-9fgg, BIT-GOLANG-2020-29509, GO-2021-0060
- Related: CGA-46wr-83r4-2h45
- Weaknesses: CWE-115
- Assigned by: Mattermost

## 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.

(As written by CVE List.)

## Affected

- Golang Go: All versions; before 1.17
- github.com/russellhaering/gosaml2 (Go): before 0.6.0
- netapp trident: no versions given
- golang (Bitnami): before 1.17.0

## 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`
- GitHub: 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-attributes.md> (advisory, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20210129-0006/> (advisory, third-party-advisory)
- <https://github.com/russellhaering/gosaml2/security/advisories/GHSA-xhqq-x44f-9fgg> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-29509> (advisory, web)
- <https://github.com/russellhaering/gosaml2/commit/42606dafba60c58c458f14f75c4c230459672ab9> (fix, web)
- <https://pkg.go.dev/vuln/GO-2021-0060> (web)
- <https://security.netapp.com/advisory/ntap-20210129-0006> (web)

## Sources

- CVE List: [CVE-2020-29509](https://www.cve.org/CVERecord?id=CVE-2020-29509), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-xhqq-x44f-9fgg](https://github.com/advisories/GHSA-xhqq-x44f-9fgg), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2021-0060](https://pkg.go.dev/vuln/GO-2021-0060), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2020-29509](https://nvd.nist.gov/vuln/detail/CVE-2020-29509), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2020-29509](https://osv.dev/vulnerability/BIT-GOLANG-2020-29509), Apache-2.0, modified 2026-09-10

---

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