Live threats

All CVEs / russellhaering

CVE-2026-128073russellhaering gosaml2

High 7.5 No auth needed

Priority
65
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Nov 17, 2026
Updated
Nov 19, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20, CWE-248
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for gosaml2.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/russellhaering/gosaml2 < 0.12.0 0.12.0 go get github.com/russellhaering/gosaml2@v0.12.0

Per OSV / GitHub Advisories (GHSA-5hj8-q7fv-qrj6). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.