{"id":"CVE-2020-7731","aliases":["CVE-2020-7731","GHSA-gq5r-cc4w-g8xf","GHSA-mqqv-chpx-vq25","GHSA-prjq-f4q3-fvfr","GO-2020-0046","SNYK-GOLANG-GITHUBCOMRUSSELLHAERINGGOSAML2-608302"],"related":["CVE-2020-7711"],"kind":"vulnerability","state":"published","title":"Denial of Service (DoS)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-prjq-f4q3-fvfr. This link is maintained to preserve external references.\n\n## Original Description\nThis affects all versions less than 0.7.0 of package github.com/russellhaering/gosaml2. There is a crash on null pointer dereference caused by sending malformed XML signatures.","format":"markdown","source":"ghsa"},{"lang":"en","text":"This affects all versions of package github.com/russellhaering/goxmldsig prior to 1.1.1. There is a crash on nil-pointer dereference caused by sending malformed XML signatures. This issue is patched in version 1.1.1.","format":"markdown","source":"ghsa"},{"lang":"en","text":"### Impact\nIn versions prior to v0.7.0 it was possible for an attacker to supply an invalid assertion which would trigger a panic due to a nil-pointer dereference.\n\n### Patches\nThe issue was patched in v0.7.0, released on March 2, 2022.\n\n### Workarounds\nCallers to `gosaml2` can use `recover()` to handle panics to mitigate a potential DoS.\n\n### References\nSee issue [#59](https://github.com/russellhaering/gosaml2/issues/59) for details.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Due to a nil pointer dereference, a malformed XML Digital Signature can cause a panic during validation. If user supplied signatures are being validated, this may be used as a denial of service vector.","format":"markdown","source":"go"},{"lang":"es","text":"Esto afecta a todas las versiones del paquete github.com/russellhaering/gosaml2.&#xa0;Se presenta un fallo en la desreferencia de puntero null causada por el envío de firmas XML malformadas.","source":"nvd"}],"published":"2021-04-14T20:04:52.000Z","modified":"2026-07-08T06:49:53.037Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"github.com/russellhaering/gosaml2","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.7.0"}],"ecosystem":"Go","package":"github.com/russellhaering/gosaml2","purl":"pkg:golang/github.com/russellhaering/gosaml2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.1"}],"ecosystem":"Go","package":"github.com/russellhaering/goxmldsig","purl":"pkg:golang/github.com/russellhaering/goxmldsig","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.1"}],"ecosystem":"Go","package":"github.com/russellhaering/goxmldsig","purl":"pkg:golang/github.com/russellhaering/goxmldsig","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.7.0"}],"ecosystem":"Go","package":"github.com/russellhaering/gosaml2","purl":"pkg:golang/github.com/russellhaering/gosaml2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.7.0"}],"ecosystem":"Go","package":"github.com/russellhaering/gosaml2","purl":"pkg:golang/github.com/russellhaering/gosaml2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.1"}],"ecosystem":"Go","package":"github.com/russellhaering/goxmldsig","purl":"pkg:golang/github.com/russellhaering/goxmldsig","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.1"}],"ecosystem":"Go","package":"github.com/russellhaering/goxmldsig","purl":"pkg:golang/github.com/russellhaering/goxmldsig","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.7.0"}],"ecosystem":"Go","package":"github.com/russellhaering/gosaml2","purl":"pkg:golang/github.com/russellhaering/gosaml2","source":"go"},{"ranges":[],"vendor":"gosaml2_project","product":"gosaml2","cpe":"cpe:2.3:a:gosaml2_project:gosaml2:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMRUSSELLHAERINGGOSAML2-608302","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/russellhaering/gosaml2/issues/59","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/russellhaering/gosaml2/releases/tag/v0.7.0","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7731","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/russellhaering/goxmldsig/issues/48","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/russellhaering/gosaml2/pull/90","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/russellhaering/gosaml2/commit/66e3b7affd622b8b24ea1e18845f045e46b23424","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/russellhaering/gosaml2","tags":["package"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7711","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/russellhaering/goxmldsig","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0046","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMRUSSELLHAERINGGOXMLDSIG-608301","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/russellhaering/gosaml2/security/advisories/GHSA-prjq-f4q3-fvfr","tags":["web"],"sources":["ghsa"]}],"credits":["Steven Johnstone","@stevenjohnstone"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-7731","url":"https://www.cve.org/CVERecord?id=CVE-2020-7731","licence":"CVE Terms of Use","modified":"2024-09-17T03:07:42.489Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gq5r-cc4w-g8xf","url":"https://github.com/advisories/GHSA-gq5r-cc4w-g8xf","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:53.037Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mqqv-chpx-vq25","url":"https://github.com/advisories/GHSA-mqqv-chpx-vq25","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:53.037Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-prjq-f4q3-fvfr","url":"https://github.com/advisories/GHSA-prjq-f4q3-fvfr","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:53.037Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2020-0046","url":"https://pkg.go.dev/vuln/GO-2020-0046","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:53.037Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-7731","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7731","licence":"Public domain","modified":"2026-06-17T03:25:20.687Z"}],"updatedAt":"2026-11-25T22:57:57.823Z","epss":{"score":0.01662,"percentile":0.77396,"date":"2026-12-01T12:00:22.000Z"}}