CVE-2026-128073
HIGH 7.5CVSS 3.1gosaml2: Unauthenticated panic decrypting an EncryptedAssertion with a short or empty CipherValue
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.
- Published
- 17 Nov 2026
- Last modified
- 19 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-20CWE-248
- Also known as
- GHSA-5hj8-q7fv-qrj6
- Sources
- NVDJSONCVE ListJSONOSV GHSA-5hj8-q7fv-qrj6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CVE List | GitHub_M | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: poc; Automatable: yes; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | russellhaering | gosaml2 | = < 0.12.0 | |
| OSV | Go | github.com/russellhaering/gosaml2 | < 0.12.0 | 0.12.0 |
References
- https://github.com/russellhaering/gosaml2/commit/b2bd784b196b21f606faaa6a4eeae929bd75aa20 · x_refsource_MISC, WEB
- https://github.com/russellhaering/gosaml2/pull/281 · x_refsource_MISC, WEB
- https://github.com/russellhaering/gosaml2/releases/tag/v0.12.0 · x_refsource_MISC, WEB
- https://github.com/russellhaering/gosaml2/security/advisories/GHSA-5hj8-q7fv-qrj6 · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-128073 · ADVISORY
- https://github.com/russellhaering/gosaml2 · PACKAGE
History
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 19 Nov 2026)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 17 Nov 2026)
- 25 Nov 2026 20:10 UTC · CVE List: first stored (published 17 Nov 2026)