Live threats

All CVEs / Gosaml2 Project

CVE-2020-7731Gosaml2 Project Gosaml2

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gosaml2.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
gosaml2_projectgosaml2all

Official sources

References

Links published by the sources. Open them with care.