Skip to main content

gosaml2 EUVDEUVD-2026-127368

| CVE-2026-128073 HIGH
Improper Input Validation (CWE-20)
2026-11-17 GitHub_M GHSA-5hj8-q7fv-qrj6
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain SP public certificate from SAML metadata
  2. Delivery
    Craft SAML Response with empty/short EncryptedAssertion CipherValue
  3. Exploit
    Submit to SP assertion consumer endpoint
  4. Execution
    Trigger slice-bounds panic in DecryptBytes before validation
  5. Impact
    Crash 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

gosaml2 < 0.12.0

Affected Packages

go github.com/russellhaering/gosaml2 fix: 0.12.0
euvd gosaml2 fix: 0.12.0

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

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Nov 17, 2026 - 21:02 EUVD
CVE Published
Nov 17, 2026 - 19:39 cve.org
HIGH 7.5

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

Why It Matters

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.

Business Impact: Low
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Medium
popular open-source Go SAML 2.0 SP library, but library not ubiquitous infrastructure
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Low

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy