Updated December 3, 2026: added CVE-2026-142239, assigned to the test key flaw, with VulnCheck’s scores and fixed versions.
CVE-2026-142239 is a critical flaw, rated 9.1 under CVSS v4.0, in which the simplesamlphp/saml2 PHP library checks HTTP-Redirect signatures against a public test key. No exploitation has been confirmed. Fixes ship in v6.3.5, v6.2.9, v6.1.10 or v6.1.11, v5.0.14 and v7.0.0-rc6, while two related high-severity SimpleSAMLphp SAML2 vulnerabilities have no CVE ID or patched version yet.
| CVE ID | Product | Flaw type | CVSS | Exploited / KEV | Fixed version |
|---|---|---|---|---|---|
| CVE-2026-142239 (GHSA-h8fv-vm7c-r6fh) | saml2 | Hard-coded test key (CWE-321) | 9.1 (v4.0) / 7.4 (v3.1) | Not confirmed | See table below |
| Not assigned (GHSA-vpqj-26g5-4qqm) | saml2, saml2-legacy | Unsigned Response bypass (CWE-347) | 7.4 (v3.1) | Not confirmed | None listed |
| Not assigned (GHSA-6vhm-xfmv-94pj) | saml2 | DEFLATE DoS (CWE-409) | 7.5 (v3.1) | PoC only | None listed |
In the tables, saml2 means the simplesamlphp/saml2 package and saml2-legacy means simplesamlphp/saml2-legacy. CVSS v4.0 scores come from the GitHub advisories. The 7.4 CVSS v3.1 score for CVE-2026-142239 comes from VulnCheck. The other scores are CVSS v3.1 from the GitHub advisories.
What are the new SimpleSAMLphp SAML2 vulnerabilities?
The simplesamlphp/saml2 package is the low-level library that SimpleSAMLphp uses to create and handle SAML 2.0 messages. Project maintainer tvdijen published four new GitHub security advisories for it in November 2026. So far, only the test key flaw has a CVE ID: CVE-2026-142239, assigned by VulnCheck and published on December 2, 2026.
CVE-2026-142239: HTTP-Redirect binding trusts a bundled test key
The critical flaw sits in src/Binding/HTTPRedirect.php. According to the GitHub advisory GHSA-h8fv-vm7c-r6fh, the binding checks query-string signatures against PEMCertificatesMock. That is a test keypair shipped in the simplesamlphp/xml-security package, not the peer’s key from metadata.
Both halves of that keypair are public. An attacker can sign a SAMLRequest or SAMLResponse with the published private key, and the library reports the message as verified. No login or user interaction is needed. Genuine signatures from the real peer fail instead and throw an exception.
Binding::getCurrentBinding() sends any GET request carrying SAMLRequest or SAMLResponse to this class. Consumers that rely on the binding layer therefore hit the bad check by default. For an identity provider (IdP), the advisory warns of forged signed LogoutRequests and AuthnRequests. For a service provider (SP), it lists forged LogoutResponses and LogoutRequests.
Messages with no Signature parameter come back without any check at all. Applications that verify signatures themselves are not affected, which is why the score carries the AT:P (attack requirements present) value.
The scores differ by source. The GitHub advisory gives 9.1 under CVSS v4.0 with low attack complexity (AC:L). VulnCheck, the CVE numbering authority, also gives 9.1 under CVSS v4.0 but with high attack complexity (AC:H), and rates the flaw 7.4 under CVSS v3.1. The CVE record classifies it as CWE-321, use of a hard-coded cryptographic key.
Technical details
The code passes the test public key to the signature verifier. A TODO comment next to it notes that the key should come from metadata. The advisory says the defect is present in the released v6.2.4 and on master. It credits kta1kri, manus-pi, gosusnkr, manus-use and ucsurf as reporters. VulnCheck also credits Zachariah Mithani of AploSec.
Reused Response Processor accepts unsigned Responses
GitHub advisory GHSA-vpqj-26g5-4qqm (CVSS v3.1 7.4, CWE-347) covers Response\Processor. The class stores a $responseIsSigned flag. It sets the flag when a signed Response arrives, before checking the signature, and never resets it.
On a reused Processor, a signed Response with any key is rejected but still sets the flag. A later Response with no signature, naming any user and attributes, is then accepted. The result is a login as any user without the IdP’s key.
The attack needs a Processor that lives across messages. Examples in the advisory are long-lived PHP workers such as FrankenPHP worker mode, RoadRunner, Swoole and Laravel Octane. Classic PHP-FPM builds a fresh Processor per request, so the flag does not carry over. The advisory states SimpleSAMLphp itself is not affected because it does not use this class. The bug traces to a 2014 commit and appears in most tagged releases from v0.6.1 through v7.0.0-rc5. GrantZero604 reported it.
DEFLATE decompression causes memory exhaustion
GitHub advisory GHSA-6vhm-xfmv-94pj (CVSS v3.1 7.5, CWE-409) affects HTTPRedirect::receive(). The method calls gzinflate() on attacker data with no size cap. The reported amplification ratio is roughly 922:1 to 1002:1.
At the default URL limit of about 8 KB, one request inflates to roughly 5.5 MB. When output passes PHP’s memory_limit, the worker dies with a fatal error. Unauthenticated GET requests to SSO or SLO endpoints can exhaust the PHP-FPM worker pool and block SAML logins. Sites that raise URL limits to 32 KB or more for large assertions face a more practical attack. The reporter is zx (manus-pi), with manus-use also credited.
A fourth advisory, GHSA-48pv-rhh3-85qr (CVSS v3.1 5.3), describes a malformed HTTP-POST SAMLResponse that bypasses the SimpleSAMLphp ExceptionHandler and its error logging in the 4.x line.
Is CVE-2026-142239 being exploited?
None of the advisories reports exploitation in the wild, and the CVE-2026-142239 record does not either. None of the flaws appears in the CISA KEV catalog. The DEFLATE advisory includes a proof-of-concept script that reproduces the decompression path and shows an out-of-memory crash under a low memory limit. No public exploit has been confirmed for the test key or Processor flaws.
Affected and fixed versions
| Product | Branch | Affected versions | Fixed version |
|---|---|---|---|
| saml2 (test key) | 7.0 prerelease | <= 7.0.0-rc5 | v7.0.0-rc6 |
| saml2 (test key) | 6.3 | <= 7.0.0-rc5 (advisory range) | v6.3.5 |
| saml2 (test key) | 6.2 | <= 7.0.0-rc5 (advisory range) | v6.2.9 |
| saml2 (test key) | 6.1 | <= 7.0.0-rc5 (advisory range) | v6.1.10 (GitHub) / 6.1.11 (CVE record) |
| saml2 (test key) | 5.0 | <= 7.0.0-rc5 (advisory range) | v5.0.14 |
| saml2 (Processor) | 4.x to 7.0 | <= 4.20.8, 4.21.1, 5.0.12, 6.1.9, 6.2.7, 6.3.3, 7.0.0-rc5 | None listed |
| saml2-legacy (Processor) | 4.x | <= 4.19.8, 4.20.8, 4.21.1 | None listed |
| saml2 (DEFLATE) | Up to 6.3.0, 7.0.0-rc1 | <= 6.3.0 | None listed |
| saml2 (HTTP-POST) | 4.19 to 4.21 | 4.19 to before 5 | 4.19.10, 4.20.10, 4.21.2 |
The test key advisory lists no fix for the 4.x line. The CVE record lists affected ranges only from 5.0.0 onward, and it names 6.1.11 rather than v6.1.10 as the fix for the 6.1 branch. The Processor and DEFLATE advisories list no patched versions at the time of writing.
How to fix CVE-2026-142239 and the other SAML2 flaws
Update simplesamlphp/saml2 through Composer to the fixed release for your branch: v6.3.5, v6.2.9, v6.1.10 or v5.0.14. On the 6.1 branch, version 6.1.11 matches both the GitHub advisory and the CVE record. Teams testing the 7.0 line should move to v7.0.0-rc6 or later. Packagist shows v7.0.0-rc7 published on November 30, 2026. Applications on the 4.x line need 4.19.10, 4.20.10 or 4.21.2 for the HTTP-POST issue.
For the Processor and DEFLATE flaws, watch the two advisory pages for patched versions. Neither advisory names a fixed release yet.
If you cannot patch yet
The test key advisory says consumers that verify signatures themselves against the peer’s metadata key are unaffected. The maintainers’ suggested interim step is to make the binding throw instead of verifying, so applications fail closed and check signatures on their own.
For the Processor flaw, the risk depends on reuse. Setups that create a new Processor for every Response, as classic PHP-FPM does, fall outside the advisory’s attack scenario.
For the DEFLATE flaw, the reporter says there is no library-side mitigation. Lowering web server URL limits or raising PHP’s memory_limit reduces the impact but does not remove the bug.
How to check if you are affected
Look up the installed simplesamlphp/saml2 and simplesamlphp/saml2-legacy versions in your project’s composer.lock file. Compare them with the table above. Next, review how your code receives messages. Applications that accept HTTP-Redirect messages through Binding::getCurrentBinding() and trust its signature check face the critical flaw. Code that keeps one Response\Processor alive across requests in a worker runtime faces the unsigned Response flaw.
Why it matters
The test key defect shipped in v6.2.4. An earlier advisory, GHSA-r7hw-jx6r-756g, named that release as the fix for an HTTP-Artifact signature bypass. Teams that upgraded for that fix still carried a broken HTTP-Redirect check.
The Processor bug shows how runtime choices change risk. Code that is safe under PHP-FPM becomes exploitable once an app moves to a persistent worker model such as Laravel Octane or RoadRunner. That flaw sat in the code for about 12 years.
Two questions remain open. The advisories do not say whether the SimpleSAMLphp product relies on the vulnerable HTTP-Redirect signature path. They also give no date for fixes or CVE IDs for the Processor and DEFLATE issues.
Timeline
| Date | Event |
|---|---|
| November 5, 2026 | DEFLATE decompression advisory GHSA-6vhm-xfmv-94pj published |
| November 22, 2026 | Response Processor advisory GHSA-vpqj-26g5-4qqm published |
| November 24, 2026 | Test key advisory GHSA-h8fv-vm7c-r6fh and HTTP-POST advisory GHSA-48pv-rhh3-85qr published |
| November 30, 2026 | v7.0.0-rc7 published on Packagist |
| December 2, 2026 | CVE-2026-142239 published by VulnCheck for the test key flaw |