# CVE-2020-7711: GO-2020-0046 - Panic due to malformed XML digital signature in github.com/russellhaering/goxmldsig

Source: https://junglewise.ai/threats/cve-2020-7711-duplicate-advisory-gosaml2-is-vulnerable-to-null-pointer  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-04-14  
License: CC BY 4.0 with a link back

CVE-2020-7711 · Severity: low · CVSS 3.1 · Published 2021-04-14

Panic due to malformed XML digital signature in github.com/russellhaering/goxmldsig

Technologies: [github.com/russellhaering/gosaml2 (Go)](https://junglewise.ai/threats/technologies/github-com-russellhaering-gosaml2), [github.com/russellhaering/goxmldsig (Go)](https://junglewise.ai/threats/technologies/github-com-russellhaering-goxmldsig). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2020-7711 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2020-7711 being exploited in the wild.

**How severe is CVE-2020-7711?** Low severity, with a CVSS score of 3.1, published 14 April 2021.

**Which products and versions are affected?** github.com/russellhaering/gosaml2 (Go) SEMVER:introduced=0,fixed=0.7.0; github.com/russellhaering/goxmldsig (Go) SEMVER:introduced=0,fixed=1.1.1.

**Is there a fix for CVE-2020-7711?** Yes. github.com/russellhaering/gosaml2 (Go): upgrade to 0.7.0 or later; github.com/russellhaering/goxmldsig (Go): upgrade to 1.1.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2020-7711?** Check whether you run github.com/russellhaering/gosaml2 (Go) or github.com/russellhaering/goxmldsig (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/russellhaering/gosaml2 (Go): upgrade to 0.7.0 or later

  ```sh
  go get github.com/russellhaering/gosaml2@v0.7.0
  ```

- github.com/russellhaering/goxmldsig (Go): upgrade to 1.1.1 or later

  ```sh
  go get github.com/russellhaering/goxmldsig@v1.1.1
  ```


## Affected products

- github.com/russellhaering/gosaml2 (Go) SEMVER:introduced=0,fixed=0.7.0
- github.com/russellhaering/goxmldsig (Go) SEMVER:introduced=0,fixed=1.1.1

## Identifiers

- CVE-2020-7711
- CVE-2020-7731
- GHSA-gq5r-cc4w-g8xf
- GHSA-mqqv-chpx-vq25
- GHSA-prjq-f4q3-fvfr
- GO-2020-0046

## Related threats

- [GO-2026-4760 - CBC Padding Panic , Unauthenticated Process Crash in github.com/russellhaering/gosaml2](https://junglewise.ai/threats/go-2026-4760-cbc-padding-panic-unauthenticated-process-crash-in-github-55e5dadf)
- [GO-2026-4764 - Unsigned SAML LogoutRequest Acceptance in gosaml2 in github.com/russellhaering/gosaml2](https://junglewise.ai/threats/go-2026-4764-unsigned-saml-logoutrequest-acceptance-in-gosaml2-in-6db71f2a)
- [russellhaering goxmldsig signature bypass in validateSignature](https://junglewise.ai/threats/cve-2026-33487-russellhaering-goxmldsig-signature-bypass-in-validatesignature)
- [Unsigned SAML LogoutRequest Acceptance in gosaml2](https://junglewise.ai/threats/unsigned-saml-logoutrequest-acceptance-in-gosaml2-7f4881c4)
- [gosaml2 CBC Padding Panic , Unauthenticated Process Crash](https://junglewise.ai/threats/gosaml2-cbc-padding-panic-unauthenticated-process-crash-d48b217d)
