Go
CVE-2026-128073
gosaml2: Unauthenticated panic decrypting an EncryptedAssertion with a short or empty CipherValue
- Severity
- High 7.5
- Published
- 19 Nov 2026
- Last changed
- 19 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 0.12.0
- Exploit chance
- 0.4% in the next 30 daysHigher than 29% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-5hj8-q7fv-qrj6
- Sources
- OSV.dev and GitHub
Description
An attacker who can supply a crafted SAML Response for parsing can crash a gosaml2 service provider by sending an EncryptedAssertion with AES-GCM encryption metadata and a CipherValue shorter than the GCM nonce size (12 bytes). The library panics with slice bounds out of range before any validation completes.
This is a distinct issue from GHSA-hwqm-qvj9-4jr2, which addressed panics in the AES-CBC decryption path (commit 3418f9ae09063ff8df0ce1bd93f24e538e614def, included in v0.10.0). That fix added a block-size check for CBC but left the AES-GCM path completely unprotected.
ValidateEncodedResponse() decrypts EncryptedAssertion nodes before signature or content validation completes. There are two call sites:
- Signed Response branch -- decode_response.go#L341
- Unsigned Response branch -- decode_response.go#L388
Both call decryptAssertions() (decode_response.go#L150-L200), which calls EncryptedAssertion.DecryptBytes() at decode_response.go#L176.
Affected software
| Software | Affected versions |
|---|---|
github.com/russellhaering/gosaml2Go · osv:Go:github.com/russellhaering/gosaml2 |
|
About github.com/russellhaering/gosaml2
This is the only vulnerability in github.com/russellhaering/gosaml2 in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-128073
- GitHub Advisory Database https://github.com/advisories/GHSA-5hj8-q7fv-qrj6