Loading SecureCyberVM…
SecureCyberVM
CVE Lookup Daily Threat Briefing Exploited CVEs Ransomware Zero-day
SecureCyberVM
Get the Patch Brief

SimpleSAMLphp saml2 signature bypass via public test key (CVE-2026-142239), patch now

The SimpleSAMLphp saml2 PHP library verified HTTP-Redirect signatures against a test key whose private half is public, letting attackers forge SAML logout and authentication requests. Fixed releases were tagged on 24 November 2026.

SimpleSAMLphp saml2 signature bypass via public test key (CVE-2026-142239), patch now

CVE-2026-142239 is a critical signature verification bypass in simplesamlphp/saml2, the PHP SAML 2.0 library used by SimpleSAMLphp and other PHP single sign-on integrations: its HTTP-Redirect binding checked signatures against a test key whose private half is public, so anyone can forge signed SAML logout and authentication requests. Fixes are available in saml2 5.0.14, 6.1.11, 6.2.9, 6.3.5 and 7.0.0-rc6, all tagged on 24 November 2026.

The CVE was published by VulnCheck on 2 December 2026 with a CVSS 4.0 score of 9.1 (Critical) and a CVSS 3.1 score of 7.4 (High). There is no confirmed exploitation in the wild and the flaw is not in the CISA Known Exploited Vulnerabilities catalogue, but the exploitation method is fully described in the public advisory and the key needed to exploit it ships with the library’s own dependencies.

What happened

According to the project’s GitHub security advisory, GHSA-h8fv-vm7c-r6fh, the HTTPRedirect::receive() method in src/Binding/HTTPRedirect.php did not verify query-string signatures against the sending peer’s key from metadata. Instead it loaded PEMCertificatesMock::SELFSIGNED_PUBLIC_KEY from SimpleSAMLXMLSecurityTestUtils, a test helper shipped in the simplesamlphp/xml-security package, which is installed as an ordinary runtime dependency. The code sat beneath a comment noting that the metadata key still needed to be used.

Because both halves of that test keypair are published, an attacker can sign a crafted SAMLRequest or SAMLResponse with the public private key and it will pass verification. The advisory also notes the reverse effect: genuine signatures from real peers fail with a SignatureVerificationFailedException, and messages without a Signature parameter are returned unverified, so the receive path never actually authenticated a sender. The weakness is classified as CWE-321, use of a hard-coded cryptographic key.

The advisory, published on 24 November 2026, says the bug was present in v6.2.4, the release named as patched in an earlier advisory (GHSA-r7hw-jx6r-756g), and on the master branch. VulnCheck’s advisory credits Zachariah Mithani of AploSec alongside five other reporters. The fix, in a commit titled “move key to container”, looks up the signer from the message’s Issuer and verifies against that entity’s public signing keys supplied by the application’s container. If the container returns no keys, verification now fails closed.

Who is affected

The affected package is the Composer package simplesamlphp/saml2. According to the CVE record, vulnerable ranges are:

  • 5.0.0 up to but not including 5.0.14
  • 6.0.0 up to but not including 6.1.11 (the GitHub advisory lists 6.1.10; the tagged fix release is 6.1.11)
  • 6.2.0 up to but not including 6.2.9
  • 6.3.0 up to but not including 6.3.5
  • 7.0.0-rc1 up to but not including 7.0.0-rc6

Exposure depends on how the library is used. The CVSS vector includes an attack prerequisite: the application must rely on Binding::getCurrentBinding() or HTTPRedirect::receive() to check Redirect-binding signatures. The advisory states that consumers which verify signatures themselves are not affected. For an identity provider, the impact is forged signed LogoutRequests, which can log out any subject, and forged AuthnRequests attributed to a trusted service provider. For a service provider, forged LogoutRequests and LogoutResponses are possible. At the time of writing, the SimpleSAMLphp project’s own security page had not published a matching notice. SimpleSAMLphp 2.5.5 and 2.4.12, released on 25 November as security releases, pin fixed saml2 versions (6.3.5 and 5.0.14) in their lock files, and 2.4.13 pins 5.0.16. Check which saml2 version your SimpleSAMLphp installation or framework plugin actually pulls in.

Severity and exploitation

  • CVSS 4.0: 9.1 Critical (AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H) from VulnCheck as CNA; the GitHub advisory rates attack complexity as low.
  • CVSS 3.1: 7.4 High from VulnCheck.
  • Exploitation: not reported in the wild.
  • Proof of concept: no standalone exploit has been published, but the advisory describes the method and the signing key is public.
  • CISA KEV: not listed.

The attack needs no credentials and no user interaction, only network access to the SAML endpoint. Forged requests cannot by themselves mint a valid login assertion through this path, which explains the lower CVSS 3.1 score, but forged logouts and authentication requests attributed to trusted partners undermine the trust model of a federation.

What defenders should do now

  1. Run composer show simplesamlphp/saml2 in every PHP project and SimpleSAMLphp installation to find the installed version. Upgrade SimpleSAMLphp itself to 2.5.5 or 2.4.13 or later.
  2. Update to 5.0.14, 6.1.11, 6.2.9, 6.3.5 or 7.0.0-rc6 (or later in the same branch) with composer update simplesamlphp/saml2, then redeploy and confirm the lock file changed.
  3. If you build your own container class on saml2, implement getPublicSigningKeysForEntity() so it returns your peers’ metadata signing keys; the default returns none and Redirect-signed messages will be rejected.
  4. Search your code for any import of SimpleSAMLXMLSecurityTestUtils outside test directories, as the reporters suggested, and add a CI check that fails on it.
  5. Until patched, prefer the HTTP-POST binding for logout and authentication requests where your partners support it, or verify Redirect signatures in your own code against metadata keys.
  6. Review IdP and SP logs for unexpected single logout requests or AuthnRequests from trusted entity IDs since your last update.
  7. Track the SecureCyberVM CVE Lookup page for score, exploitation and KEV changes.

SCVM analysis

This is a textbook case of test code leaking into production: a mock key, a TODO comment and a runtime dependency that happened to carry test utilities. It also follows an earlier saml2 advisory whose patched release still contained the flaw, a reminder that an advisory’s “fixed in” line is only as good as the code review behind it. SAML libraries are rarely updated by hand because they sit several layers below the application, so organisations should check lock files directly rather than trust that a framework update pulled in the fix.

Frequently asked questions

What is CVE-2026-142239?

A flaw in the simplesamlphp/saml2 PHP library where the HTTP-Redirect binding verified signatures against a public test key, letting attackers forge signed SAML requests.

Which saml2 versions fix CVE-2026-142239?

Versions 5.0.14, 6.1.11, 6.2.9, 6.3.5 and 7.0.0-rc6, released on 24 November 2026.

Is CVE-2026-142239 being exploited?

No exploitation has been reported and it is not in CISA KEV, but the method and key are public.

Am I affected if I verify SAML signatures myself?

According to the advisory, no. Only applications relying on the library’s HTTPRedirect::receive() to check signatures are affected.

Sources

Update history

  • 2 Dec 2026, 22:47 IST: Expanded with the GitHub (GHSA-h8fv-vm7c-r6fh) and VulnCheck advisories: root cause (bundled PEMCertificatesMock test key), affected code paths, exact fixed versions, who is exposed, numbered defender steps and FAQ.
  • 2 Dec 2026, 22:32 IST: First published as an early alert from the official CVE record.

About this article: produced by the SCVM Newsroom with AI assistance from the public sources linked above, enriched with NVD, FIRST EPSS and CISA KEV data, and checked by automated quality controls under our editorial policy. Spotted an error? Request a correction.

SecureCyberVM

Install SecureCyberVM

Get the Daily Threat Briefing and exploited-CVE alerts one tap away, full screen, like an app.