{"id":"CVE-2026-128073","published":"2026-11-17T19:39:24Z","modified":"2026-11-19T04:06:52Z","title":"gosaml2: Unauthenticated panic decrypting an EncryptedAssertion with a short or empty CipherValue","vendor":"russellhaering","product":"gosaml2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00357,"percentile":0.30016,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-248","name":"Uncaught Exception"}],"references":[{"url":"https://github.com/russellhaering/gosaml2/security/advisories/GHSA-5hj8-q7fv-qrj6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/russellhaering/gosaml2/pull/281","tags":["x_refsource_MISC"]},{"url":"https://github.com/russellhaering/gosaml2/commit/b2bd784b196b21f606faaa6a4eeae929bd75aa20","tags":["x_refsource_MISC"]},{"url":"https://github.com/russellhaering/gosaml2/releases/tag/v0.12.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":6.0},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"russellhaering","affectedVersions":[{"vendor":"russellhaering","product":"gosaml2","versions":["< 0.12.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-19T04:06:29.748013Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/russellhaering/gosaml2","vulnerableRanges":["<0.12.0"],"patched":["0.12.0"],"from":["GHSA-5hj8-q7fv-qrj6"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-127368","exploited":false,"provenance":"source"}}