# CVE-2026-128073: gosaml2: Unauthenticated panic decrypting an EncryptedAssertion with a short or empty CipherValue

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-17T19:39:24.637Z
- Modified: 2026-11-19T21:00:03.957Z
- Also known as: GHSA-5hj8-q7fv-qrj6
- Weaknesses: CWE-20, CWE-248
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- russellhaering gosaml2: < 0.12.0
- github.com/russellhaering/gosaml2 (Go): before 0.12.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/russellhaering/gosaml2/security/advisories/GHSA-5hj8-q7fv-qrj6> (exploit, web)
- <https://github.com/russellhaering/gosaml2/pull/281> (web)
- <https://github.com/russellhaering/gosaml2/commit/b2bd784b196b21f606faaa6a4eeae929bd75aa20> (web)
- <https://github.com/russellhaering/gosaml2/releases/tag/v0.12.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-128073> (advisory)
- <https://github.com/russellhaering/gosaml2> (package)

## Sources

- CVE List: [CVE-2026-128073](https://www.cve.org/CVERecord?id=CVE-2026-128073), CVE Terms of Use, modified 2026-11-19
- GitHub Advisory Database: [GHSA-5hj8-q7fv-qrj6](https://github.com/advisories/GHSA-5hj8-q7fv-qrj6), CC-BY-4.0, modified 2026-11-19
- NVD: [CVE-2026-128073](https://nvd.nist.gov/vuln/detail/CVE-2026-128073), Public domain, modified 2026-11-19

---

Page: https://cve.day/CVE-2026-128073 · Whole record: https://cve.day/CVE-2026-128073.json · Rebuilt by cve.day 2026-11-25T22:59:51.033Z
