All reports
High

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

Affected versions

Affected versions
< 0.7.0
Fixed version
0.7.0
Affected versions
< 1.1.1
Fixed version
1.1.1

Exploitation

CVE-2020-7731

Probability of exploitation in the next 30 days: 1.66%

FIRST EPSS · 2026-11-22

Description

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.

Links

Credits

  • stevenjohnstone