{"id":"CVE-2020-7731","aliases":["EUVD-2022-7403","GHSA-gq5r-cc4w-g8xf","GHSA-mqqv-chpx-vq25","GHSA-prjq-f4q3-fvfr","GO-2020-0046","SNYK-GOLANG-GITHUBCOMRUSSELLHAERINGGOSAML2-608302"],"status":"published","title":"Denial of Service (DoS)","description":"This affects all versions \u003c0.7.0 of package github.com/russellhaering/gosaml2. There is a crash on nil-pointer dereference caused by sending malformed XML signatures.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01662,"percentile":0.76864,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-476"],"published":"2020-08-23T14:15:09.573Z","modified":"2026-10-20T10:54:24Z","fixes":[{"ecosystem":"Go","package":"github.com/russellhaering/gosaml2","fixed_in":["0.7.0"],"sources":["ghsa"]},{"ecosystem":"Go","package":"github.com/russellhaering/goxmldsig","fixed_in":["1.1.1"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/russellhaering/gosaml2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.0"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/russellhaering/goxmldsig","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/russellhaering/goxmldsig","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Go","package":"github.com/russellhaering/gosaml2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.7.0"}]}],"bundled":2},{"source":"osv","ecosystem":"Go","package":"github.com/russellhaering/gosaml2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.7.0"}]}],"bundled":2},{"source":"osv","ecosystem":"Go","package":"github.com/russellhaering/goxmldsig","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Go","package":"github.com/russellhaering/goxmldsig","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.1.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Go","package":"github.com/russellhaering/gosaml2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.7.0"}]}],"bundled":2}],"products":[{"vendor":"gosaml2_project","product":"gosaml2"}],"references":[{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMRUSSELLHAERINGGOSAML2-608302","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/russellhaering/gosaml2/issues/59","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/russellhaering/gosaml2/releases/tag/v0.7.0","tags":["x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7731","tags":["advisory"]},{"url":"https://github.com/russellhaering/goxmldsig/issues/48","tags":["evidence","web"]},{"url":"https://github.com/russellhaering/gosaml2/pull/90","tags":["web"]},{"url":"https://github.com/russellhaering/gosaml2/commit/66e3b7affd622b8b24ea1e18845f045e46b23424","tags":["web"]},{"url":"https://github.com/advisories/GHSA-gq5r-cc4w-g8xf"},{"url":"https://github.com/russellhaering/gosaml2/security/advisories/GHSA-prjq-f4q3-fvfr","tags":["web"]},{"url":"https://github.com/advisories/GHSA-prjq-f4q3-fvfr"},{"url":"https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMRUSSELLHAERINGGOXMLDSIG-608301","tags":["advisory","web"]},{"url":"https://github.com/russellhaering/gosaml2","tags":["package"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7711","tags":["advisory"]},{"url":"https://github.com/russellhaering/goxmldsig","tags":["package"]},{"url":"https://pkg.go.dev/vuln/GO-2020-0046","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2020-7731","title":"Denial of Service (DoS)","description":"This affects all versions \u003c0.7.0 of package github.com/russellhaering/gosaml2. There is a crash on nil-pointer dereference caused by sending malformed XML signatures.","status":"published","published":"2021-04-30T16:10:13.54Z","modified":"2024-09-17T03:07:42.489Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:35:58.331892Z"}],"euvd":[{"id":"EUVD-2022-7403","description":"This affects all versions \u003c0.7.0 of package github.com/russellhaering/gosaml2. There is a crash on nil-pointer dereference caused by sending malformed XML signatures.","status":"published","published":"2021-04-30T16:10:13Z","modified":"2024-09-17T03:07:42Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high"}],"updated_at":"2026-11-03T00:28:34.673232Z"}],"ghsa":[{"id":"GHSA-gq5r-cc4w-g8xf","title":"Duplicate Advisory: gosaml2 is vulnerable to NULL Pointer Dereference from malformed XML signatures","description":"## 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.","status":"withdrawn","published":"2021-06-23T17:25:08Z","modified":"2024-05-30T05:04:30Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:37:52.2286Z"},{"id":"GHSA-prjq-f4q3-fvfr","title":"github.com/russellhaering/gosaml2 is vulnerable to NULL Pointer Dereference","description":"### 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.","status":"published","published":"2022-11-15T19:05:07Z","modified":"2024-05-20T19:38:35Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:37:50.750599Z"}],"nvd":[{"id":"CVE-2020-7731","description":"This affects all versions \u003c0.7.0 of package github.com/russellhaering/gosaml2. There is a crash on nil-pointer dereference caused by sending malformed XML signatures.","status":"published","published":"2021-04-30T16:15:07.547Z","modified":"2026-06-17T03:25:20.687Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:06:39.25999Z"}],"osv":[{"id":"CVE-2020-7711","description":"This affects all versions of package github.com/russellhaering/goxmldsig. There is a crash on nil-pointer dereference caused by sending malformed XML signatures.","status":"published","published":"2020-08-23T14:15:09.573Z","modified":"2026-07-08T06:49:53.037130195Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:17.34531Z"},{"id":"CVE-2020-7731","description":"This affects all versions \u003c0.7.0 of package github.com/russellhaering/gosaml2. There is a crash on nil-pointer dereference caused by sending malformed XML signatures.","status":"published","published":"2021-04-30T16:15:07.547Z","modified":"2026-10-20T10:54:24.803431465Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:17.34531Z"},{"id":"GHSA-gq5r-cc4w-g8xf","title":"Duplicate Advisory: gosaml2 is vulnerable to NULL Pointer Dereference from malformed XML signatures","description":"## 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.","status":"withdrawn","published":"2021-06-23T17:25:08Z","modified":"2026-07-08T06:49:53.037130195Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T15:46:48.191583Z"},{"id":"GHSA-mqqv-chpx-vq25","title":"goxmldsig vulnerable to crash on nil-pointer dereference caused by sending malformed XML signatures","description":"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.","status":"published","published":"2022-10-07T07:17:56Z","modified":"2026-07-08T06:49:53.037130195Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T15:46:52.170928Z"},{"id":"GHSA-prjq-f4q3-fvfr","title":"github.com/russellhaering/gosaml2 is vulnerable to NULL Pointer Dereference","description":"### 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.","status":"published","published":"2022-11-15T19:05:07Z","modified":"2026-07-08T06:49:53.037130195Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T15:46:53.700556Z"},{"id":"GO-2020-0046","title":"Panic due to malformed XML digital signature in github.com/russellhaering/goxmldsig","description":"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.","status":"published","published":"2021-04-14T20:04:52Z","modified":"2026-07-08T06:49:53.037130195Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
