Skip to main content

SimpleSAMLphp SAML2 CVE-2026-142239

| EUVDEUVD-2026-141591 CRITICAL
Use of Hard-coded Cryptographic Key (CWE-321)
2026-12-02 VulnCheck GHSA-v6g5-q8p3-g8fh
9.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft SAMLRequest/Response query string
  2. Exploit
    Sign with public test private key
  3. Execution
    HTTPRedirect::receive() accepts forged signature
  4. Impact
    Forge trusted LogoutRequest or AuthnRequest

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Key management, no hard-coded keys
Exploitation Conditions

The target application must process incoming SAML messages through the library's binding layer - Binding::getCurrentBinding() returns an HTTPRedirect instance for any GET carrying SAMLRequest or SAMLResponse - and rely on HTTPRedirect::receive() for signature verification (this is the AT:P requirement). A consumer that performs its own signature verification against peer metadata is NOT affected. The flaw is specific to the HTTP-Redirect binding; other bindings such as HTTPArtifact already use the metadata key. No authentication is required (PR:N) and no user interaction is required (UI:N); the attacker only needs the SELFSIGNED private key, which is publicly distributed inside the simplesamlphp/xml-security runtime dependency. Affected versions are <=7.0.0-rc5 on the 7.0 branch and the pre-fix releases of the 5.0, 6.1, 6.2, and 6.3 branches. The limiting factor on real-world impact is thus deployment-dependent: only applications that actually dispatch signed Redirect-binding traffic through this library's receive() path are exploitable.

Impact

This is a genuine high-priority issue, not a CVSS-inflated paper risk. The root cause is confirmed in the vendor GHSA advisory and VulnCheck advisory: src/Binding/HTTPRedirect.php verifies HTTP-Redirect query-string signatures against the bundled PEMCertificatesMock SELFSIGNED test keypair from simplesamlphp/xml-security rather than the peer's metadata key, and both halves of that keypair ship as a normal runtime dependency, so they are public. Exploitation is therefore cryptographically trivial - an attacker signs a forged message with a world-readable private key and it verifies as authentic. The CVSS 4.0 signals are consistent with this: AV:N (network) and PR:N/UI:N (no authentication, no user interaction) make it remotely reachable by anyone, while VC:H/VI:H reflect forged authentication and logout. The one moderating factor is AT:P: the victim must actually route messages through the library's binding dispatch path (Binding::getCurrentBinding()/HTTPRedirect::receive()) and rely on its signature check - a consumer that verifies signatures itself is unaffected, which is the only thing holding this below a flat 10. The vuln.today priority is act_now and the vendor rates it 9.1 Critical. Note a signal gap: no EPSS score and no CISA KEV entry are provided in the input, so there is no quantitative exploitation-probability or confirmed-active-exploitation signal - the urgency rests on act_now plus the trivial, fully-documented exploitation technique, not on observed in-the-wild activity. Also note the input CVSS vector records AC:H whereas the vendor GHSA advisory records AC:L for the same 9.1 score; given that forging the signature is trivial, AC:L is the better-supported judgment.

Exploit ScenarioDerived

A remote unauthenticated attacker crafts a SAMLRequest or SAMLResponse, builds the HTTP-Redirect query string, and signs it with the publicly distributed SELFSIGNED private key from simplesamlphp/xml-security's PEMCertificatesMock; the vulnerable HTTPRedirect::receive() verifies that signature as valid. For an IdP this yields forged signed LogoutRequests (log out any subject) and AuthnRequests attributed to a trusted SP; for an SP, forged LogoutResponse/LogoutRequest. No working exploit code is published, but the GHSA advisory documents the exact trivial technique and the AV:N/PR:N/UI:N vector means no further preconditions beyond the target using the binding layer.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available

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

Alert me

AnalysisAIv1 – Dec 02, 2026

Signature verification bypass in the SimpleSAMLphp SAML2 library (composer package simplesamlphp/saml2) allows unauthenticated remote attackers to forge signed SAMLRequest and SAMLResponse query strings, because HTTPRedirect::receive() checks the HTTP-Redirect signature against the publicly distributed PEMCertificatesMock test keypair instead of the peer's metadata key. Releases before 5.0.14, 6.1.11, 6.2.9, 6.3.5 and 7.0.0-rc6 are affected; exploitation is remote and unauthenticated and lets an attacker submit forged signed LogoutRequests or AuthnRequests that the library attributes to a trusted peer, while legitimate signatures from the real peer fail verification. Exposure is gated on the AT:P prerequisite: only deployments that route signed Redirect-binding traffic through Binding::getCurrentBinding()/HTTPRedirect::receive() and rely on that check are exploitable - consumers performing their own metadata-key verification are not affected. Vendor patches and upstream commits are available; no public exploit identified at time of analysis.

RemediationAI

Vendor-released patches are available: upgrade simplesamlphp/saml2 to 5.0.14, 6.2.9, 6.3.5, 7.0.0-rc6, or the 6.1 fix release (CVE record says 6.1.11, advisory metadata says 6.1.10 - verify which is tagged). The fixes are in upstream commits https://github.com/simplesamlphp/saml2/commit/7f3182e43dd5cc25a44f3f334053f895b5016a22 and https://github.com/simplesamlphp/saml2/commit/435036e16d00773caae63cee76e74362bf6ec31e, documented in GHSA-h8fv-vm7c-r6fh. Because the patched code resolves keys through the container method getPublicSigningKeysForEntity(), integrators must implement that method to return the entity's metadata signing keys from their container; the AbstractContainer default returns an empty array and the new code throws SignatureVerificationFailedException when no keys are found, so an incomplete upgrade fails closed and will reject legitimate signed Redirect-binding messages until metadata key plumbing is wired. Where upgrading is not immediately possible, the safest compensating control per the advisory is to stop relying on HTTPRedirect::receive() for signature validation and verify the Redirect-binding signature in the calling application against the peer's metadata key immediately after receipt - the trade-off is duplicated verification logic in the consumer and the need to handle the unverified-message path when no Signature parameter is present. The advisory also notes that refusing to verify against any known key (failing closed) is preferable to reusing the fixture key, and that a build-time check rejecting any src/ import of SimpleSAML\XMLSecurity\TestUtils\ prevents recurrence.

Affected VersionsENISA

Saml2 5.0.0 <5.0.14
Saml2 6.3.0 <6.3.5
Saml2 7.0.0-rc1 <7.0.0-rc6
Saml2 6.0.0 <6.1.11
Saml2 6.2.0 <6.2.9

Affected Packages

euvd saml2 fix: 5.0.14, 6.1.11, 6.2.9, 6.3.5, 7.0.0-rc6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The defect sits in the HTTP-Redirect binding of simplesamlphp/saml2, where an incoming GET carrying a SAMLRequest or SAMLResponse query string is dispatched to HTTPRedirect::receive() by Binding::getCurrentBinding(). Under CWE-321 (use of a hard-coded cryptographic key), the verifier is constructed through SignatureAlgorithmFactory using PEMCertificatesMock::getPublicKey(SELFSIGNED_PUBLIC_KEY) - a fixture that lives in the TestUtils namespace of simplesamlphp/xml-security, which is installed as a normal runtime dependency, so both halves of that keypair are public. Consequently any attacker can produce a query-string Signature that verify() accepts, and a genuine peer signature made with the metadata key is rejected with SignatureVerificationFailedException. A separate path in the same method returns the message unverified when no Signature parameter is present, which is correct for the binding (the profile decides whether signing is required); the net effect is that receive() authenticates nothing on its own. The upstream fix replaces the fixture key with a lookup of the issuer's public signing keys via the container (getPublicSigningKeysForEntity()), iterating them and failing closed when no keys are found - mirroring what HTTPArtifact::verifyMessageSignature() already does. Integrators upgrading must therefore wire this container method; the AbstractContainer default returns an empty array, which causes signed Redirect-binding messages to be rejected until metadata key plumbing exists.

Know when Simplesamlphp 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 (VulnCheck) PRIMARY 9.1 CRITICAL
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 9.1 CRITICAL

Remotely reachable with no auth or interaction (AV:N/PR:N/UI:N); forging a signature with the public test key is trivial (AC:L); forged authn/logout breaks integrity and confidentiality (C:H/I:H), no availability impact.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

SimpleSAMLphp SAML2 library before 5.0.14, 6.1.11, 6.2.9, 6.3.5, and 7.0.0-rc6 contains a signature verification bypass in HTTPRedirect::receive(), which checks signatures against a public test key. Remote unauthenticated attackers can sign SAMLRequest or SAMLResponse query strings with the publicly distributed private key to forge LogoutRequests or AuthnRequests attributed to trusted peers.

Technical POC Analysis

The bug is CWE-321: use of a hard-coded cryptographic key.

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-142239 poses a critical risk to organizations using SimpleSAMLphp's SAML2 library for single sign-on, as attackers could impersonate trusted identity providers and bypass authentication. Leadership should prioritize this because it directly undermines access control, potentially exposing sensitive systems and data to unauthorized users.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Medium
widely-used PHP SAML2 library, common in federated identity deployments
Data Quality
3 sources
Confidence: Low

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 CRITICAL
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
No
Human Impact
Very High

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2018-6521 CRITICAL POC
9.8 Feb 02

The sqlauth module in SimpleSAMLphp before 1.15.2 relies on the MySQL utf8 charset, which truncates queries upon encount

CVE-2023-49087 HIGH POC
7.5 Nov 30

xml-security is a library that implements XML signatures and encryption. Rated high severity (CVSS 7.5), this vulnerabil

CVE-2017-12868 CRITICAL
9.8 Sep 01

The secureCompare method in lib/SimpleSAML/Utils/Crypto.php in SimpleSAMLphp 1.14.13 and earlier, when used with PHP bef

CVE-2017-12873 CRITICAL
9.8 Sep 01

SimpleSAMLphp 1.7.0 through 1.14.10 might allow attackers to obtain sensitive information, gain unauthorized access, or

CVE-2016-9814 CRITICAL
9.1 Feb 17

The validateSignature method in the SAML2\Utils class in SimpleSAMLphp before 1.14.10 and simplesamlphp/saml2 library be

CVE-2019-3465 HIGH
8.8 Nov 07

Rob Richards XmlSecLibs, all versions prior to v3.0.3, as used for example by SimpleSAMLphp, performed incorrect validat

CVE-2026-32600 HIGH
8.2 Mar 13

Critical authentication bypass vulnerability in the simplesamlphp/xml-security library (versions before 2.3.1) that affe

CVE-2018-7711 HIGH
8.1 Mar 05

HTTPRedirect.php in the saml2 library in SimpleSAMLphp before 1.15.4 has an incorrect check of return values in the sign

CVE-2017-12869 HIGH
7.5 Sep 01

The multiauth module in SimpleSAMLphp 1.14.13 and earlier allows remote attackers to bypass authentication context restr

CVE-2017-12874 HIGH
7.5 Sep 01

The InfoCard module 1.0 for SimpleSAMLphp allows attackers to spoof XML messages by leveraging an incorrect check of ret

CVE-2018-7644 HIGH
7.5 Mar 05

The XmlSecLibs library as used in the saml2 library in SimpleSAMLphp before 1.15.3 incorrectly verifies signatures on SA

CVE-2018-6519 HIGH
7.5 Feb 02

The SAML2 library before 1.10.4, 2.x before 2.3.5, and 3.x before 3.1.1 in SimpleSAMLphp has a Regular Expression Denial

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