GitHub Advisoryadvisory · Go

GHSA-prjq-f4q3-fvfr github.com/russellhaering/gosaml2 is vulnerable to NULL Pointer Dereference

HIGH Published 2022-11-15 Modified 2024-05-20 Official page ↗
Aliases
CVE-2020-7731
Ecosystem
Go
Packages
github.com/russellhaering/gosaml2, github.com/russellhaering/goxmldsig
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-476
Reviewed
2022-11-15

Affected packages

• Go github.com/russellhaering/gosaml2: < 0.7.0 → fixed in 0.7.0 • Go github.com/russellhaering/goxmldsig: < 1.1.1 → fixed in 1.1.1

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.

Related

Alias · CVE (1)

  • CVE-2020-7731 This affects all versions <0.7.0 of package github.com/russellhaering/gosaml2. vulnerability

Weakness · CWE (1)

  • CWE-476 NULL Pointer Dereference weakness

References