ADVISORIES

GitHub Advisory Database

GHSA-prjq-f4q3-fvfr

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.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/russellhaering/gosaml2
All versions before 0.7.0 (fixed in 0.7.0)
Gogithub.com/russellhaering/goxmldsig
All versions before 1.1.1 (fixed in 1.1.1)

References