CVE-2020-7711
JSON

7.5high

Denial of Service (DoS)

Severity
7.5high CVSS:3.1 by snyk
Exploit likelihood
1.80% (higher than 79% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-gq5r-cc4w-g8xfGHSA-mqqv-chpx-vq25GHSA-prjq-f4q3-fvfrGO-2020-0046SNYK-GOLANG-GITHUBCOMRUSSELLHAERINGGOSAML2-608302

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.

Affected

Product or packageVersionsReported by
github.com/russellhaering/goxmldsigbefore unspecifiedCVE List
github.com/russellhaering/gosaml2 (Go)before 0.7.0GitHub Advisory Database, Go Vulnerability Database
github.com/russellhaering/goxmldsig (Go)before 1.1.1GitHub Advisory Database, Go Vulnerability Database
goxmldsig_project goxmldsigNot specifiedNVD

All scores

snyk7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

This affects all versions of package github.com/russellhaering/goxmldsig. There is a crash on nil-pointer dereference caused by sending malformed XML signatures.

GitHub Advisory Database

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-prjq-f4q3-fvfr. This link is maintained to preserve external references.

Original Description

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

GitHub Advisory Database

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.

GitHub Advisory Database
Impact

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

Patches

The issue was patched in v0.7.0, released on March 2, 2022.

Workarounds

Callers to gosaml2 can use recover() to handle panics to mitigate a potential DoS.

References

See issue #59 for details.

Go Vulnerability Database

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.

NVD (es)

Esto afecta a todas las versiones del paquete github.com/russellhaering/goxmldsig. Se presenta un bloqueo en una desreferencia del puntero nil causado por el envío de firmas XML malformadas.

References

https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMRUSSELLHAERINGGOXMLDSIG-608301broken-link, web
https://github.com/russellhaering/goxmldsig/issues/48exploit, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2020-7731advisory
https://github.com/russellhaering/gosaml2/issues/59web
https://github.com/russellhaering/gosaml2/pull/90web
https://github.com/russellhaering/gosaml2/commit/66e3b7affd622b8b24ea1e18845f045e46b23424web
https://github.com/russellhaering/gosaml2package
https://github.com/russellhaering/gosaml2/releases/tag/v0.7.0web
https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMRUSSELLHAERINGGOSAML2-608302web
https://nvd.nist.gov/vuln/detail/CVE-2020-7711advisory
https://github.com/russellhaering/goxmldsigpackage
https://pkg.go.dev/vuln/GO-2020-0046web

Related

Sources

SourceRecordLicence
CVE ListCVE-2020-7711 changed 2024-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-gq5r-cc4w-g8xf changed 2026-07-08CC-BY-4.0
GitHub Advisory DatabaseGHSA-mqqv-chpx-vq25 changed 2026-07-08CC-BY-4.0
GitHub Advisory DatabaseGHSA-prjq-f4q3-fvfr changed 2026-07-08CC-BY-4.0
Go Vulnerability DatabaseGO-2020-0046 changed 2026-07-08CC-BY-4.0
NVDCVE-2020-7711 changed 2026-06-17Public domain