Improper Validation of Array Index Affecting github.com/russellhaering/gosaml2 package, versions <0.11.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMRUSSELLHAERINGGOSAML2-15692491
  • published19 Mar 2026
  • disclosed18 Mar 2026
  • creditxclow3n

Introduced: 18 Mar 2026

CVE NOT AVAILABLE CWE-129  (opens in a new tab)

How to fix?

Upgrade github.com/russellhaering/gosaml2 to version 0.11.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Array Index via the DecryptBytes() function. An attacker can cause the process or goroutine to crash by sending a crafted AES-CBC encrypted assertion with a plaintext of all zero bytes, which triggers a panic due to an out-of-range index access.

Note: This is only exploitable if the service provider is configured with SPKeyStore to support encrypted assertions.

References

CVSS Base Scores

version 4.0
version 3.1