Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1wcmpxLWY0cTMtZnZmcs4AAv43
github.com/russellhaering/gosaml2 is vulnerable to NULL Pointer Dereference
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.
Permalink: https://github.com/advisories/GHSA-prjq-f4q3-fvfrJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1wcmpxLWY0cTMtZnZmcs4AAv43
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 1 year ago
Updated: 8 months ago
CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Identifiers: GHSA-prjq-f4q3-fvfr, CVE-2020-7731
References:
- https://github.com/russellhaering/gosaml2/security/advisories/GHSA-prjq-f4q3-fvfr
- https://github.com/russellhaering/gosaml2/issues/59
- https://github.com/advisories/GHSA-gq5r-cc4w-g8xf
- https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMRUSSELLHAERINGGOSAML2-608302
- https://github.com/russellhaering/goxmldsig/issues/48
- https://github.com/advisories/GHSA-prjq-f4q3-fvfr
Blast Radius: 23.9
Affected Packages
go:github.com/russellhaering/goxmldsig
Dependent packages: 466Dependent repositories: 1,514
Downloads:
Affected Version Ranges: < 1.1.1
Fixed in: 1.1.1
All affected versions: 1.1.0
All unaffected versions: 1.1.1, 1.2.0, 1.3.0, 1.4.0
go:github.com/russellhaering/gosaml2
Dependent packages: 65Dependent repositories: 155
Downloads:
Affected Version Ranges: < 0.7.0
Fixed in: 0.7.0
All affected versions: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 0.5.0, 0.6.0
All unaffected versions: 0.7.0, 0.8.0, 0.8.1, 0.9.0, 0.9.1