CVE-2020-29509
Authentication Bypass in github.com/russellhaering/gosaml2
Reported by mattermost · Published December 14, 2020
github.com/russellhaering/gosaml2 is fixed in 0.6.0 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/russellhaering/gosaml2 | Go Modules | 0.6.0 |
| go | Alpine | 1.17-r0 |
| go | Arch Linux | 2:1.17-1 |
| golang | Bitnami | 1.17.0 |
| mattermost | Arch Linux | 5.26.2-1 |
| go | golang | 1.17 |
| golang | Bitnami | 1.17.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Golang | Go | All versions |
| alpine | go | 0 |
| wolfi | go-1.19 | * |
| wolfi | go-fips-1.20 | * |
| arch | go | 0 |
| github.com | russellhaering/gosaml2 | 0 |
| wolfi | go-1.21 | * |
| arch | mattermost | 0 |
| wolfi | go-1.20 | * |
| chainguard | go-fips-1.20 | * |
| chainguard | go-1.21 | * |
| chainguard | go-1.20 | * |
| Golang | Go | * |
| chainguard | go-1.19 | * |
Timeline
- Dec 14, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Feb 11, 2022 CVE Updated
- Mar 17, 2026 Security Advisory
- Aug 31, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-29509
vulnetix vdb fixes CVE-2020-29509
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-29509/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_CONFIRM
- https://github.com/russellhaering/gosaml2/security/advisories/GHSA-xhqq-x44f-9fgg url
- https://nvd.nist.gov/vuln/detail/CVE-2020-29509 advisory
- https://github.com/advisories/GHSA-xhqq-x44f-9fgg advisory