{"id":"CVE-2026-128073","aliases":["GHSA-5hj8-q7fv-qrj6"],"title":"gosaml2: Unauthenticated panic decrypting an EncryptedAssertion with a short or empty CipherValue","originalDescription":"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.","severity":{"cvss":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00357,"percentile":0.31411},"exploitDb":null},"affected":[{"ecosystem":"Go","name":"github.com/russellhaering/gosaml2","range":"<= 0.11.0","fixed":"0.12.0"}],"references":[{"url":"https://github.com/russellhaering/gosaml2/security/advisories/GHSA-5hj8-q7fv-qrj6","type":"x_refsource_CONFIRM"},{"url":"https://github.com/russellhaering/gosaml2/pull/281","type":"x_refsource_MISC"},{"url":"https://github.com/russellhaering/gosaml2/commit/b2bd784b196b21f606faaa6a4eeae929bd75aa20","type":"x_refsource_MISC"},{"url":"https://github.com/russellhaering/gosaml2/releases/tag/v0.12.0","type":"x_refsource_MISC"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/128xxx/CVE-2026-128073.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128073","type":"advisory"},{"url":"https://github.com/advisories/GHSA-5hj8-q7fv-qrj6","type":"other"}],"sources":[{"name":"nvd","at":"2026-11-19T04:35:54.581Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-128073","license":"NVD terms of use","firstSeenAt":"2026-11-17T20:42:38.450Z"},{"name":"osv","at":"2026-11-19T06:48:38.977Z","url":"https://osv.dev/vulnerability/CVE-2026-128073","license":"CC-BY 4.0","firstSeenAt":"2026-11-17T21:49:00.322Z"},{"name":"ghsa","at":"2026-12-06T23:40:48.611Z","url":"https://github.com/advisories/GHSA-5hj8-q7fv-qrj6","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T21:14:17.277Z"},{"name":"cvelistV5","at":"2026-11-19T22:19:03.010Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-128073","license":"CVE Terms of Use","firstSeenAt":"2026-11-17T20:07:02.727Z"}],"firstSeenAt":"2026-11-17T20:07:02.727Z","publishedAt":"2026-11-17T19:39:24.637Z","modifiedAt":"2026-11-19T20:49:37.000Z"}