Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft SAMLRequest/Response query string
-
ExploitSign with public test private key
-
ExecutionHTTPRedirect::receive() accepts forged signature
-
ImpactForge 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Simplesamlphp
View allThe sqlauth module in SimpleSAMLphp before 1.15.2 relies on the MySQL utf8 charset, which truncates queries upon encount
xml-security is a library that implements XML signatures and encryption. Rated high severity (CVSS 7.5), this vulnerabil
The secureCompare method in lib/SimpleSAML/Utils/Crypto.php in SimpleSAMLphp 1.14.13 and earlier, when used with PHP bef
SimpleSAMLphp 1.7.0 through 1.14.10 might allow attackers to obtain sensitive information, gain unauthorized access, or
The validateSignature method in the SAML2\Utils class in SimpleSAMLphp before 1.14.10 and simplesamlphp/saml2 library be
Rob Richards XmlSecLibs, all versions prior to v3.0.3, as used for example by SimpleSAMLphp, performed incorrect validat
Critical authentication bypass vulnerability in the simplesamlphp/xml-security library (versions before 2.3.1) that affe
HTTPRedirect.php in the saml2 library in SimpleSAMLphp before 1.15.4 has an incorrect check of return values in the sign
The multiauth module in SimpleSAMLphp 1.14.13 and earlier allows remote attackers to bypass authentication context restr
The InfoCard module 1.0 for SimpleSAMLphp allows attackers to spoof XML messages by leveraging an incorrect check of ret
The XmlSecLibs library as used in the saml2 library in SimpleSAMLphp before 1.15.3 incorrectly verifies signatures on SA
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
EUVD-2026-141591
GHSA-v6g5-q8p3-g8fh
NVD
CVE.org
Exploit-DB