VulnWatch by ve1ve2
high 8.7 EPSS 0.47%

GHSA-r7hw-jx6r-756g: SAML2: Incomplete fix of CVE-2026-49283: unsigned embedded Response bypasses HTTP-Artifact signature verification (no embedded-Issuer binding)

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
simplesamlphp/saml2

https://osv.dev/vulnerability/GHSA-r7hw-jx6r-756g ↗

osvpackagistfix-available

SAML2: Incomplete fix of CVE-2026-49283: unsigned embedded Response bypasses HTTP-Artifact signature verification (no embedded-Issuer binding) ## Summary CVE-2026-49283 / GHSA-6929-8p9f-26jx ("HTTP-Artifact TLS validator confusion allows cross-IdP authentication bypass") was fixed so that `HTTPArtifact::receive()` verifies the embedded SAML `Response` using the IdP metadata signing keys. The current implementation (master `31c72c1d`, released **v6.2.3**) reaches that verification **only when the embedded Response is signed**: ```php // src/Binding/HTTPArtifact.php (receive()) if (!$samlResponse->isSigned()) { return $samlResponse; // ← unsigned embedded Response returned UNVERIFIED } return $this->verifyMessageSignature($samlResponse, $idpMetadata); // only runs when signed ``` An attacker who controls one trusted-federation IdP therefore returns a **validly-signed outer `ArtifactResponse`** (signed with their own real key, which passes the mandatory outer check) that **wraps an *unsigned* ` ` whose ` ` names a *different* IdP**. `isSigned()` is false, so `verifyMessageSignature()` never runs and the forged Response is returned as successfully received. Additionally, even on the signed path `verifyMessageSignature()` verifies against the **artifact issuer's** metadata keys but **never asserts that the embedded Response's ` ` equals the artifact issuer** — the same cross-IdP confusion the CVE was assigned for is not closed by identity binding. This is an incomplete implementation of the fix's own stated goal ("verify signatures using IdP metadata signing keys", commit `dac0b4b6` / #419), and a regression introduced by the `#414` refactor (v6.2.2) — the official CVE fix in **v6.2.1 did not contain this short-circuit**. ## Affected component - `src/Binding/HTTPArtifact.php` - `receive()` line **206-207**: `if (!$samlResponse->isSigned()) { return $samlResponse; }` — the bypassed guard. - `receive()` line 210: `verifyMessageSignature($samlResponse, $idpMetadata)` — only reached when signed. - `verifyMessageSignature()` lines 230-286: verifies against `$idpMetadata` (artifact-issuer keys); **no `getIssuer()` comparison** to bind the embedded Response to the artifact issuer. - `verifyArtifactResponseSignature()` line **300-302**: `if ($artifactResponse->isSigned() !== true) throw` — the OUTER response is mandatorily signed; the asymmetry with the embedded `return`-on-unsigned is the defect. - Regression commit **3b589636** (#414, v6.2.2, "refactor/soap-ssl-validator-openssl"); key-source fix **dac0b4b6** (#419) left the short-circuit unchanged. - **Affected: v6.2.2, v6.2.3 (latest), and master.** v6.2.1 (official CVE fix) used a deferred-validator model without this short-circuit. ## Reachability (hop-by-hop, guards named) Threat model: SP uses the HTTP-Artifact binding in a multi-IdP federation; attacker operates one trusted IdP-B (valid `saml20-idp-remote` metadata, real signing key, an ArtifactResolutionService). Goal: impersonate `admin@IdP-A`. 1. Attacker hits the SP artifact endpoint with `SAMLart` encoding `source Affected: Packagist:simplesamlphp/saml2 Fixed in: 6.2.4, 7.0.0-rc2 References: https://github.com/simplesamlphp/saml2/security/advisories/GHSA-r7hw-jx6r-756g https://nvd.nist.gov/vuln/detail/CVE-2026-110782 https://github.com/simplesamlphp/saml2/commit/7b7fbb5322cb5607db3e5a329681f4886b1449fe https://github.com/simplesamlphp/saml2/commit/9a21edb96de1f3ece3b40ccbe3b7de761917a06f https://github.com/simplesamlphp/saml2 https://github.com/simplesamlphp/saml2/releases/tag/v6.2.4 https://github.com/simplesamlphp/saml2/releases/tag/v7.0.0-rc2

Linked vulnerabilities (4)

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N

SAML2: Incomplete fix of CVE-2026-49283: unsigned embedded Response bypasses HTTP-Artifact signature verification (no embedded-Issuer binding)

CWE: CWE-287, CWE-347Aliases: CVE-2026-110782, CVE-2026-49283, GHSA-6929-8p9f-26jx
CVE-2026-110782 high 8.7 EPSS 0.32% (p25) NVDCVE.orgGHSAGHSA
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N

SAML2: Incomplete fix of CVE-2026-49283: unsigned embedded Response bypasses HTTP-Artifact signature verification (no embedded-Issuer binding)

CWE: CWE-287, CWE-347Aliases: GHSA-r7hw-jx6r-756g, CVE-2026-49283, GHSA-6929-8p9f-26jxNVD: Received
CVE-2026-49283 high 8.7 EPSS 0.47% (p42) NVDCVE.org
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N

The SimpleSAMLphp SAML2 library is a PHP library for SAML2 related functionality. Prior to versions 4.19.3, 4.20.2, 5.0.6, and 6.2.1, the HTTPArtifact::receive() flow can treat an unsigned embedded SAML Response as cryptographically valid for the wrong identity provider. SOAPClient::addSSLValidator() attaches a TLS-based validator to the outer SOAP ArtifactResponse, while the embedded Response receives a validator that delegates to the outer message and is later checked against metadata selected from the embedded response issuer rather than necessarily the artifact issuer....

CWE: CWE-295NVD: Deferred

Also reported by (1)