Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain SP public certificate from SAML metadata
-
DeliveryCraft SAML Response with empty/short EncryptedAssertion CipherValue
-
ExploitSubmit to SP assertion consumer endpoint
-
ExecutionTrigger slice-bounds panic in DecryptBytes before validation
-
ImpactCrash request goroutine or service process (DoS)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Requires a deployed service provider that uses gosaml2 ValidateEncodedResponse() (versions <= 0.11.0) and exposes a reachable endpoint that parses attacker-supplied SAML Responses (e.g., an assertion consumer service). The specific trigger is an EncryptedAssertion whose EncryptedData CipherValue decodes to fewer than 12 bytes on the AES-GCM path (MethodAES128/192/256GCM), or an empty CipherValue on the AES-CBC path (0 % 16 == 0 passes the block-size check, then panics on the 16-byte IV split). The attacker must obtain the SP's public certificate to RSA-OAEP-wrap a symmetric key so the EncryptedKey decrypts and execution reaches DecryptBytes - this certificate is typically public in SAML metadata, so it is a low barrier rather than a true authentication requirement. Limiting factors: no valid IdP signature, trust relationship, or authenticated identity is needed because decryption precedes validation; the only real constraints are network reachability of the SAML-parsing endpoint and knowledge of the SP certificate. Impact is confined to availability (process/goroutine crash); no data disclosure or assertion forgery results. |
| Impact | This is a genuine but bounded availability risk. The CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5 HIGH) is internally consistent with the description: a remote, unauthenticated attacker can reach the vulnerable code path over the network with low complexity and no user interaction, and the only impact is availability (A:H) with no confidentiality or integrity loss - consistent with a crash/DoS (CWE-20 improper input validation plus CWE-248 uncaught exception). The decisive escalator is that decryption runs BEFORE any signature or content validation, so the usual SAML trust barrier (valid IdP signature/relationship) does not apply; the attacker needs only the SP's public certificate, which is typically published in SAML metadata. The priority signals are mixed: the vuln.today Decision label is 'this_week' (not act_now/emergency), the CVE is NOT in CISA KEV (no confirmed active exploitation), and no EPSS score was supplied, so widespread automated exploitation cannot be confirmed from the data. Working against that lower urgency, a complete self-contained PoC that reliably reproduces the panic is published in the GHSA advisory, so exploitation is trivial for anyone targeting a known gosaml2 SP endpoint. Net: a real, promptly-patchable DoS issue - not a high-CVSS-but-theoretical bug given the published PoC - but it is availability-only, so it does not threaten credential/assertion forgery. Missing data to note: no EPSS probability and no KEV entry, so breadth of real-world exploitation is unknown. |
| Exploit ScenarioDerived | An attacker obtains the target service provider's public certificate from its published SAML metadata and uses RSA-OAEP to wrap an arbitrary symmetric key, then submits a crafted SAML Response containing an EncryptedAssertion whose CipherValue is empty or shorter than the AES-GCM 12-byte nonce (or an empty AES-CBC CipherValue) to the SP's assertion consumer endpoint. Because gosaml2 decrypts the assertion before any signature or content validation, DecryptBytes() slices the too-short buffer and panics with 'slice bounds out of range', crashing the request goroutine or the whole process. A complete, self-contained working PoC reproducing this panic is published in the GHSA advisory, and no valid IdP signature or relationship is required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Unauthenticated denial of service in gosaml2 through 0.11.0 allows a remote attacker to crash a SAML service provider by submitting a crafted SAML Response whose EncryptedAssertion carries a truncated AES-GCM CipherValue or an empty AES-CBC CipherValue. Decryption runs inside ValidateEncodedResponse() before signature or content validation, so no valid IdP signature or trust relationship is required; the attacker only needs the SP's public certificate, typically published in SAML metadata, to wrap a symmetric key, and the resulting slice-bounds panic can terminate the request goroutine or the service process. The impact is availability-only, the supplied intelligence does not confirm active exploitation, the advisory includes a self-contained PoC reproduction, and v0.12.0 fixes both branches.
RemediationAI
Upgrade to gosaml2 v0.12.0, the vendor-released patch, which adds len(data) < c.NonceSize() and len(data) < k.BlockSize() checks before the AES-GCM nonce slice and the AES-CBC IV slice (PR https://github.com/russellhaering/gosaml2/pull/281, commit b2bd784b196b21f606faaa6a4eeae929bd75aa20, release https://github.com/russellhaering/gosaml2/releases/tag/v0.12.0; advisory https://github.com/russellhaering/gosaml2/security/advisories/GHSA-5hj8-q7fv-qrj6). No vendor-documented workaround is provided in the available references. Because exploitation requires a reachable endpoint that parses SAML Responses, restricting network access to the assertion consumer service to trusted IdP sources is a directly supported compensating control, but it does not fix the parser and leaves exposure from any allowed source.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
gosaml2 is a pure-Go SAML 2.0 service-provider library. In ValidateEncodedResponse(), encrypted assertions are decrypted by decryptAssertions() before signature or content validation, so the parser reaches EncryptedAssertion.DecryptBytes() with attacker-controlled XML Encryption data. The AES-GCM branch slices data[:c.NonceSize()] without checking the decoded CipherValue length; a value shorter than the 12-byte GCM nonce triggers a slice-bounds panic, and AES-128-GCM, AES-192-GCM and AES-256-GCM share that branch. The AES-CBC branch checks len(data)%k.BlockSize()!=0, but an empty CipherValue satisfies 0%16==0 and then panics at the 16-byte IV split. The root cause is CWE-20 improper input validation of ciphertext lengths, with CWE-248 unrecovered panic as the observed consequence. The CPE identifies russellhaering:gosaml2 prior to 0.12.0; the only prerequisite beyond network reachability of a SAML-parsing endpoint is the SP public certificate used to RSA-OAEP-wrap the symmetric key.
Know when Gosaml2 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Remote unauthenticated attacker reaches decryption before validation with only the public SP certificate (PR:N, AC:L), no UI, and impact is crash-only, so C:N/I:N/A:H.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-20 (Improper Input Validation), with CWE-248 (Uncaught Exception) as the consequence: the library never validates the length of a decoded CipherValue before splitting off the AES-GCM nonce or AES…
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-128073 is a high-severity unauthenticated denial-of-service vulnerability in the gosaml2 library (versions through 0.11.0) that can crash SAML service providers. Any adversary with the public certificate from SAML metadata can exploit it, affecting organizations relying on gosaml2 for authentication and potentially causing service outages. Leadership should prioritize patching to avoid availability disruptions.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-127368
GHSA-5hj8-q7fv-qrj6
NVD
CVE.org
EPSS
Exploit-DB