CVE-2020-7731Gosaml2 Project Gosaml2
High 7.5 No auth needed
Follow: this CVE · Gosaml2 Project · Gosaml2 Project Gosaml2 We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.7% probability of exploitation in 30 days · percentile 77
- Auth required
- No
- Published
- Apr 30, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-476
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
This affects all versions <0.7.0 of package github.com/russellhaering/gosaml2. There is a crash on nil-pointer dereference caused by sending malformed XML signatures.
What to do
- Apply the vendor's security update for Gosaml2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/russellhaering/gosaml2 |
< 0.7.0 |
0.7.0 |
go get github.com/russellhaering/gosaml2@v0.7.0 |
| Go | github.com/russellhaering/gosaml2 |
< 0.7.0 |
0.7.0 |
go get github.com/russellhaering/gosaml2@v0.7.0 |
| Go | github.com/russellhaering/gosaml2 |
< 0.7.0 |
0.7.0 |
go get github.com/russellhaering/gosaml2@v0.7.0 |
| Go | github.com/russellhaering/goxmldsig |
< 1.1.1 |
1.1.1 |
go get github.com/russellhaering/goxmldsig@v1.1.1 |
| Go | github.com/russellhaering/goxmldsig |
< 1.1.1 |
1.1.1 |
go get github.com/russellhaering/goxmldsig@v1.1.1 |
| Go | github.com/russellhaering/goxmldsig |
< 1.1.1 |
1.1.1 |
go get github.com/russellhaering/goxmldsig@v1.1.1 |
Per OSV / GitHub Advisories (GHSA-mqqv-chpx-vq25, GHSA-prjq-f4q3-fvfr, GO-2020-0046). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gosaml2_project | gosaml2 | all |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com
- snyk.io Third Party Advisory