Advisory

GHSA-prjq-f4q3-fvfr

Also known as: CVE-2020-7711, CVE-2020-7731, GHSA-gq5r-cc4w-g8xf, GHSA-mqqv-chpx-vq25, GO-2020-0046, SNYK-GOLANG-GITHUBCOMRUSSELLHAERINGGOSAML2-608302

Summary

github.com/russellhaering/gosaml2 is vulnerable to NULL Pointer Dereference

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-11-15 19:05 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

github.com/russellhaering/gosaml2

Go · All systems

Affected

  • introduced 0, fixed 0.7.0 (semver)

Fixed versions

0.7.0

Fix

github.com/russellhaering/goxmldsig

Go · All systems

Affected

  • introduced 0, fixed 1.1.1 (semver)

Fixed versions

1.1.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences