79% vs 51%: independent neobanks lag on app security. Read the report

Deep Dive

Deep Dive

Shibboleth SP SAML Authentication Bypass (CVE-2026-145755)

A binding confusion in Shibboleth SP lets an attacker forge a SAML session through the ECP endpoint; fixed in OpenSAML 3.3.2 and SP 3.6.1.

TL;DR

  • A binding confusion in Shibboleth Service Provider lets an unauthenticated attacker submit a forged SAML assertion to the ECP endpoint and obtain a session as any user. Shibboleth rates the flaw critical (CVSS v4.0 9.1).
  • A Service Provider that links OpenSAML C++ before 3.3.2 is affected. On Windows, SP installers before 3.6.1 bundle the older library, and the ECP endpoint is enabled by default.
  • No public proof of concept and no confirmed in-the-wild exploitation are reported. CVE-2026-145755 is not in the CISA Known Exploited Vulnerabilities catalog, version 2026.12.04, as of 2026-12-06.
  • Update OpenSAML to 3.3.2 or later and restart shibd. On Windows, install SP 3.6.1. "How do I fix it?" gives the package commands and the configuration workaround.

Am I affected?

You are affected if all of these hold:

  • The Service Provider links OpenSAML C++ before 3.3.2. On Windows, an SP installer before 3.6.1 bundles the older library.
  • An affected endpoint is reachable: SAML 2 Enhanced Client/Proxy (ECP) for session forgery, or a SOAP endpoint for the separate SOAP variant. ECP is enabled by default; the advisory names single logout, name identifier management and artifact resolution as the SOAP paths.
  • The Service Provider trusts an identity provider whose signed message an attacker can obtain or reuse. The signature rule still has to verify a real signature before it marks the message authenticated.

Shibboleth Service Provider is the reference SAML Service Provider for research and education federations. The UK federation, which Jisc operates, says the software is "the most prevalent Service Provider software deployed in the UK Access Management Federation and across eduGAIN". It called this "the worst vulnerability in the Project's history" and told members to patch or mitigate.

Deployment Affected version Fixed version
Windows Service Provider SP before 3.6.1 (bundles OpenSAML before 3.3.2) SP 3.6.1
Shibboleth RPM repository libsaml13 before 3.3.2 libsaml13 3.3.2
Debian 13 (trixie) opensaml 3.3.1-2 (libsaml13) opensaml 3.3.1-2+deb13u1 (libsaml13)
Debian 12 (bookworm) opensaml 3.2.1-3+deb12u1 (libsaml12) no fixed package on 2026-12-06
Debian unstable opensaml 3.3.1-5 (libsaml13) no fixed package on 2026-12-06

The CVE record rates the flaw CVSS v4.0 9.1 Critical, CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H, with the provider urgency set to red. The record lists every OpenSAML C++ version before 3.3.2 as affected.

Check the OpenSAML version the running daemon loaded. The startup line names every library version:

grep -m1 'Library versions' /var/log/shibboleth/shibd.log

On Windows, read the same line in C:\opt\shibboleth-sp\var\log\shibd.log or in the application event log. The line must show OpenSAML-C 3.3.2 or later.

Check the package on the platforms that ship one:

rpm -q libsaml13         # Shibboleth RPM repository
dpkg -l libsaml13        # Debian 13
port installed opensaml  # macOS MacPorts

Check whether the ECP handler answers. A 404 usually means the path is not exposed. The Service Provider's own error page means the handler is configured.

curl -s -o /dev/null -w '%{http_code}\n' https://sp.example.org/Shibboleth.sso/SAML2/ECP

Compare that answer with the mitigation check in "How do I fix it?". A reverse proxy can return 404 in both states, so the log version is the reliable exposure check.

How do I fix it?

Update OpenSAML C++ to 3.3.2 or later, then restart shibd and the web server module. On Linux, updating the shibboleth package alone does not fix the issue, because the Service Provider loads the separate libsaml library.

  1. On Windows, install Service Provider 3.6.1 or later. That installer bundles OpenSAML 3.3.2.
  2. On a host that uses the Shibboleth RPM repository, run sudo dnf update --repo shibboleth. The update replaces libsaml13 and the other packages built from the Shibboleth sources.
  3. On Debian 13 (trixie), run sudo apt update and then sudo apt install --only-upgrade libsaml13. The fixed package is 3.3.1-2+deb13u1, which backports the fix.
  4. On macOS with MacPorts, run sudo port upgrade opensaml. The xmltooling and shibboleth ports also have updates.
  5. On any other platform, build OpenSAML 3.3.2 from source, or wait for the platform's package.
  6. Restart the daemon with sudo systemctl restart shibd, then reload the web server module (Apache or IIS).
  7. Repeat the Library versions check from "Am I affected?". It must show OpenSAML-C 3.3.2.

If you cannot patch, disable the endpoints the advisory names. Shibboleth calls this a mitigation, not a fix.

  1. If /etc/shibboleth/protocols.xml exists, comment out the lines that enable the ECP/PAOS and SOAP handlers. The advisory's wiki page lists the shipped lines.
  2. In /etc/shibboleth/shibboleth2.xml, comment out any explicit <md:AssertionConsumerService ... Binding="urn:oasis:names:tc:SAML:2.0:bindings:PAOS"/>, <md:SingleLogoutService ... Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"/>, <md:ManageNameIDService ... Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"/> and <md:ArtifactResolutionService ... Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP"/> elements. Most newer deployments do not have them.
  3. If you use ECP and cannot patch, also comment out <Rule type="SimpleSigning" errorFatal="true"/>. It can appear in security-policy.xml or in shibboleth2.xml, and it may appear more than once. This breaks signed logout over the HTTP-Redirect binding.
  4. Reload or restart shibd and the web server.
  5. Request /Shibboleth.sso/SAML2/ECP. The Service Provider should answer "Shibboleth handler invoked at an unconfigured location."

A load-balancer rule that blocks the /SAML2/ECP path is only a partial mitigation. The advisory's wiki page warns that URL-encoding tricks can reach the same handler, so the comparison must be done on the unencoded path.

What is the root cause?

The Service Provider applied its signature policy rule to a request without checking which SAML binding the request used. As a result, the rule and the message decoder could read two different messages from one request.

OpenSAML C++ is the library behind the Shibboleth Service Provider. The library implements the SAML bindings, the message decoders and the security policy rules that check signatures. The SimpleSigning rule verifies the non-XML signatures used by the HTTP-Redirect binding and by the HTTP-POST-SimpleSign binding. The ECP and SOAP decoders parse an XML message from the request body.

The rule lives in saml/binding/impl/SimpleSigningRule.cpp. In 3.3.1, evaluate() selects a branch on the HTTP method. A GET reads the raw query string. Every other method reads the message parameter and base64-decodes it:

// cpp-opensaml 3.3.1, saml/binding/impl/SimpleSigningRule.cpp, evaluate()
const HTTPRequest* httpRequest = dynamic_cast<const HTTPRequest*>(request);
if (!request || !httpRequest) {
    return false;
}
...
const char* messageParameterName = getMessageParameterName(&message);
...
string input;
const char* pch;
if (!strcmp(httpRequest->getMethod(), "GET")) {
    pch = httpRequest->getQueryString();
    appendParameter(*request, input, pch, messageParameterName);
    appendParameter(*request, input, pch, "RelayState");
    appendParameter(*request, input, pch, "SigAlg");
}
else {
    XMLSize_t x;
    pch = httpRequest->getParameter(messageParameterName);
    if (pch) {
        XMLByte* decoded=Base64::decode(reinterpret_cast<const XMLByte*>(pch),&x);
        ...
        input = string(messageParameterName) + "=" + reinterpret_cast<const char*>(decoded);
        ...
    }
    ...
}

The rule builds the signed string from a request parameter. It never reads the request body. The ECP decoder in saml/saml2/binding/impl/SAML2ECPDecoder.cpp does the opposite. It checks the content type and then parses the raw body:

// cpp-opensaml 3.3.1, saml/saml2/binding/impl/SAML2ECPDecoder.cpp, decode()
const HTTPRequest* httpRequest = dynamic_cast<const HTTPRequest*>(&genericRequest);
if (httpRequest) {
    string s = httpRequest->getContentType();
    if (s.find("application/vnd.paos+xml") == string::npos ||
            s.find("application/x-www-form-urlencoded") != string::npos) {
        throw BindingException("Invalid content type for PAOS message.");
    }
}

const char* data = genericRequest.getRequestBody();
...
istringstream is(data);
DOMDocument* doc = (policy.getValidating() ? XMLToolingConfig::getConfig().getValidatingParser()
    : XMLToolingConfig::getConfig().getParser()).parse(is);

The two components have no shared view of the message. A request can carry a validly signed message in its parameters and a different message in its body. The rule verifies the first and the decoder parses the second.

The same mismatch exists in the SOAP decoders, which also parse getRequestBody(). Shibboleth describes the ECP path as the important one because it creates a session, and the SOAP path as a way to submit forged messages such as logout requests.

Shibboleth fixed the same rule in March 2025 for CVE-2025-31335. That fix hardened how the rule builds the signed string and rejected duplicated or prefixed parameters. It did not check that the HTTP method and content type matched the binding the rule was verifying. The 3.3.2 change adds that check.

The signature rule was fixed in March 2025 and again in November 2026
Figure 1: The same signature rule was fixed in March 2025 and again in November 2026. Source: Shibboleth advisories and CVE records, checked December 6, 2026.

How is it exploited?

  1. The attacker sends a POST to the Service Provider's ECP endpoint, /Shibboleth.sso/SAML2/ECP.
  2. The query string carries a SAML message and a signature the Service Provider will accept. The attacker can use an assertion issued to them, or an older signed message they captured.
  3. The request body carries a different, forged SAML Response inside a PAOS/SOAP envelope. The forged Response names any trusted identity provider and carries any attributes the attacker wants.
  4. The SimpleSigning rule reads the message parameter, verifies the signature over the query-string message, and marks the security policy authenticated.
  5. The ECP decoder ignores the query string. It parses the forged Response from the body.
  6. The Service Provider accepts the forged assertion and creates a session with the attacker's chosen identity and attributes.

No public proof-of-concept code exists for CVE-2026-145755, so this path is reconstructed from the advisory and the patch.

How does the attack flow?

One request carries two messages: the signature rule verifies a valid one in the query string while the ECP decoder parses a forged one from the body.

flowchart LR A["POST /SAML2/ECP
signed message in query string"] --> B["SimpleSigning verifies
the query-string message"] --> C["No binding check:
ECP decoder reads the SOAP body"] --> D["Forged assertion accepted
for any trusted IdP"] --> E["Session created with
attacker-chosen attributes"] --> F["Protected resources
reachable"]

What can an attacker do?

An attacker who reaches the ECP endpoint can create a session as any user of any identity provider the Service Provider trusts, with any attributes the forged assertion carries.

The impact is access to every resource the Service Provider protects for that identity. The advisory says the forged messages "can appear to come from any trusted Identity Provider and contain any data desired by the attacker". It adds that they defeat "any access control measures in place". The forged session can carry administrator or faculty attributes if the downstream application trusts them.

The attack needs four conditions:

  • The ECP endpoint is reachable from the attacker's network.
  • The Service Provider links OpenSAML C++ before 3.3.2.
  • The attacker can obtain or reuse a signed message the Service Provider accepts, so the signature rule returns true.
  • The Service Provider trusts the identity provider named in the forged assertion. In a federation, that is usually many identity providers.

The SOAP variant is narrower. The advisory says those endpoints do not create sessions, and gives forged logout requests as the example.

The flaw does not give code execution or direct database access. Its impact is the access the forged identity carries.

Why does the fix work?

The fix pins each binding to its HTTP method and content type, so one request can no longer be read as two different messages.

The SimpleSigning rule now refuses any request that is not a GET or a form-encoded POST:

@@ saml/binding/impl/SimpleSigningRule.cpp
     const HTTPRequest* httpRequest = dynamic_cast<const HTTPRequest*>(request);
     if (!request || !httpRequest) {
         return false;
     }

+    const char* method = httpRequest->getMethod();
+    if (!strcmp(method, "POST")) {
+        if (httpRequest->getContentType().find("application/x-www-form-urlencoded") == string::npos) {
+            log.debug("ignoring message, POST without form-urlencoded content type");
+            return false;
+        }
+    }
+    else if (strcmp(method, "GET")) {
+        log.debug("ignoring message, unsupported HTTP method (%s)", method);
+        return false;
+    }
+
     // Make sure Signature only shows up once.

The ECP decoder now requires a POST, and it still rejects a form-encoded content type:

@@ saml/saml2/binding/impl/SAML2ECPDecoder.cpp
     const HTTPRequest* httpRequest = dynamic_cast<const HTTPRequest*>(&genericRequest);
     if (httpRequest) {
+        if (strcmp(httpRequest->getMethod(), "POST")) {
+            log.warn("ignoring non-POST request (%s)", httpRequest->getMethod());
+            throw BindingException("Invalid HTTP method ($1).", params(1, httpRequest->getMethod()));
+        }
         string s = httpRequest->getContentType();
         if (s.find("application/vnd.paos+xml") == string::npos ||
                 s.find("application/x-www-form-urlencoded") != string::npos) {

The SOAP decoders received the same POST-only check. The patch also adds a null check before tlist->getSize() in SignatureProfileValidator.cpp, which removes a crash when a signature Reference has no transform list.

Together, the checks leave one interpretation per request. A PAOS or SOAP POST cannot satisfy the SimpleSigning rule, because its content type is not form-encoded. A form-encoded POST cannot reach the ECP or SOAP decoder, because those decoders reject that content type. The signature rule and the decoder can no longer see different messages.

The patch covers the two decoders and the rule the advisory names. The changed files contain no other decoder that reads the body under the same policy.

How do I check if I was compromised?

Shibboleth has not published indicators. It says it believes evidence can usually be seen in web access logs, and it is withholding the detail for a short time so operators can protect their systems first.

Until that guidance is published, review the access logs for these paths:

  • /Shibboleth.sso/SAML2/ECP, the ECP handler.
  • /Shibboleth.sso/SLO/SOAP, /Shibboleth.sso/NIM/SOAP and /Shibboleth.sso/Artifact/SOAP, the SOAP handlers named in the advisory's mitigation.

Look for POST requests to those paths that carry SAML parameters in the query string while the body is XML or PAOS. That split is the shape of the flaw. Then compare sessions created around those requests with the identity provider that normally serves the user. A session whose issuer or attributes do not match that identity provider is a lead to investigate.

A hit on the ECP path is not proof by itself. Legitimate ECP clients use the same endpoint. An attempt that failed may leave no trace.

Timeline

  • 2025-03-13: Shibboleth publishes advisory secadv_20250313 for CVE-2025-31335, a parameter-manipulation flaw in the same non-XML signature rule. OpenSAML 3.3.1 fixes it.
  • 2025-03-28: CVE-2025-31335 is published.
  • 2026-11-30: Shibboleth publishes advisory secadv_20261130, commits fix ba8fb409 and releases Service Provider 3.6.1 for Windows.
  • 2026-12-06: CVE-2026-145755 is published.

FAQ

Is the ECP endpoint enabled by default?

Yes. The advisory says the ECP endpoint is enabled by default, and Shibboleth adds that most deployments do not use it. If you do not know whether you use ECP, you almost certainly do not.

Does updating the Service Provider package fix it on Linux?

No. On Linux the Service Provider loads the separate libsaml library, so updating the shibboleth package alone leaves the vulnerable library in place. Update libsaml13 or the distribution's opensaml package, then restart shibd.

Is there a public proof of concept?

No. A GitHub repository search for CVE-2026-145755 returned no result on 2026-12-06, and no researcher write-up is public. The attack steps in this article come from the advisory and the patch.

Is CVE-2026-145755 exploited in the wild?

No confirmed exploitation is reported. The CVE is not in the CISA Known Exploited Vulnerabilities catalog, version 2026.12.04, as of 2026-12-06. Shibboleth says it withholds the access-log evidence for now, so the absence of a public report is not proof that no one tried.

Which versions are fixed?

OpenSAML C++ 3.3.2 and later. On Windows, Service Provider 3.6.1 bundles it. Debian 13 has a backport in 3.3.1-2+deb13u1. Debian 12 and Debian unstable had no fixed package on 2026-12-06.

Does disabling ECP break single sign-on?

No. Disabling ECP removes only the Enhanced Client/Proxy profile, which most browser-based single sign-on does not use. If you use ECP and cannot patch, the workaround also removes the SimpleSigning rule, and that breaks signed logout over HTTP-Redirect.

References

  • Shibboleth Consortium, "Shibboleth Service Provider Security Advisory [30 November 2026]", secadv_20261130, published 2026-11-30 (checked December 6, 2026): https://shibboleth.net/community/advisories/secadv_20261130.txt
  • CVE Program, "CVE-2026-145755" record, published 2026-12-06 (checked December 6, 2026): https://www.cve.org/CVERecord?id=CVE-2026-145755
  • Shibboleth, fix commit ba8fb409, "XML handling improvements", 2026-11-30 (checked December 6, 2026): https://codeberg.org/Shibboleth/cpp-opensaml/commit/ba8fb40945176567b50a01c77787f432ddb662cf
  • Shibboleth, secadv_20261130 FAQ and mitigations, published 2026-11-30 (checked December 6, 2026): https://shibboleth.atlassian.net/wiki/spaces/SP3/pages/5885067302/secadv_20261130
  • Shibboleth, OpenSAML C++ tags, including 3.3.2 (checked December 6, 2026): https://codeberg.org/Shibboleth/cpp-opensaml/tags
  • Shibboleth, Service Provider 3.6.1 download listing, published 2026-11-30 (checked December 6, 2026): https://shibboleth.net/downloads/service-provider/3.6.1/
  • Shibboleth, SimpleSigningRule.cpp at tag 3.3.1, the vulnerable rule (checked December 6, 2026): https://codeberg.org/Shibboleth/cpp-opensaml/src/tag/3.3.1/saml/binding/impl/SimpleSigningRule.cpp
  • Shibboleth, SAML2ECPDecoder.cpp at tag 3.3.1, the vulnerable decoder (checked December 6, 2026): https://codeberg.org/Shibboleth/cpp-opensaml/src/tag/3.3.1/saml/saml2/binding/impl/SAML2ECPDecoder.cpp
  • Shibboleth, SimpleSigningRule.cpp at tag 3.3.2, the fixed rule (checked December 6, 2026): https://codeberg.org/Shibboleth/cpp-opensaml/src/tag/3.3.2/saml/binding/impl/SimpleSigningRule.cpp
  • Shibboleth, SAML2ECPDecoder.cpp at tag 3.3.2, the fixed decoder (checked December 6, 2026): https://codeberg.org/Shibboleth/cpp-opensaml/src/tag/3.3.2/saml/saml2/binding/impl/SAML2ECPDecoder.cpp
  • Shibboleth Consortium, "Shibboleth Service Provider Security Advisory [13 March 2025]", secadv_20250313, published 2025-03-13 (checked December 6, 2026): https://shibboleth.net/community/advisories/secadv_20250313.txt
  • CVE Program, "CVE-2025-31335" record, published 2025-03-28 (checked December 6, 2026): https://www.cve.org/CVERecord?id=CVE-2025-31335
  • Debian Security Tracker, opensaml source package and the trixie fixed version, checked 2026-12-06 (checked December 6, 2026): https://security-tracker.debian.org/tracker/source-package/opensaml
  • UK Access Management Federation (Jisc), "UK federation members security advisory: Service Provider (SP) 2026-11-30", published 2026-11-30 (checked December 6, 2026): https://www.ukfederation.org.uk/content/News/2026-11-30-Shibboleth-Service-Provider-Security-Advisories
  • CISA, Known Exploited Vulnerabilities catalog, version 2026.12.04 (checked December 6, 2026): https://www.cisa.gov/known-exploited-vulnerabilities-catalog

Free scan

Scan your own app for free

or book a demo

Keep reading

Related articles

Browse the blog