CVE-2026-128073
Description
gosaml2 is a Pure Go implementation of SAML 2.0. Prior to 0.12.0, ValidateEncodedResponse() calls decryptAssertions() on an EncryptedAssertion before signature or content validation completes, and EncryptedAssertion.DecryptBytes() in types/encrypted_assertion.go slices decoded ciphertext without first validating the required nonce or initialization-vector length. A CipherValue shorter than the 12-byte AES-GCM nonce causes a slice-bounds panic, and an empty AES-CBC CipherValue passes the modulo block-size check before causing a slice-bounds panic at the 16-byte initialization-vector split. An attacker needs only the service provider's public certificate to wrap a symmetric key, and no valid identity-provider signature or relationship is required. The unrecovered panic can terminate the request goroutine or the service process. This issue is fixed in version 0.12.0.
Weakness
Timeline
- 2026-11-17Published by the CNA19:39 UTC
- 2026-11-17Published in NVD20:17 UTC · 38 minutes after the CNA
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| russellhaering gosaml2 |
References
- https://github.com/russellhaering/gosaml2/commit/b2bd784b196b21f606faaa6a4eeae929bd75aa20
- https://github.com/russellhaering/gosaml2/pull/281
- https://github.com/russellhaering/gosaml2/releases/tag/v0.12.0
- https://github.com/russellhaering/gosaml2/security/advisories/GHSA-5hj8-q7fv-qrj6
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-128073'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-128073'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-128073'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-128073'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).