On Monday November 23, the maintainers of Shibboleth sent an announcement to their official mailing list warning of an upcoming security update for a severe vulnerability in SP 3.
The release schedule was set for the week of November 30, later specified as 8 AM ET on Monday. The actual problems were kept secret to avoid exploitation prior to release. Even the Git repository (on Codeberg) was not updated.
The vulnerabilities are as severe as the announcement implies: multiple unrelated ways to bypass authentication altogether and create (or steal) a session as an arbitrary user. The worse of the two affects all mod_shib and Shibboleth SP users in SP’s default configuration. Even worse, even if you patch all of your own systems, an attacker could still authenticate as one of your users at any other institution that federates with you.
The Shibboleth team sent a pair of advisories (SAML, ODBC) via their announcements list. Please read the advisories and follow their instructions if possible. The SAML advisory offers official mitigations for most of the above.
Under the right conditions, the forged messages can appear to come from any trusted Identity Provider and contain any data desired by the attacker. (SAML advisory)
Note that these are SP bugs. Shibboleth users running only IdPs are not directly affected. Applications that process SAML2 responses without passing through cpp-opensaml, shibd, or mod_shib are also not affected.
Mitigations
As noted by the Shibboleth team, if you can patch, you should do so. They have provided a Wiki page full of details, including their recommended mitigation path. If you cannot patch, we encourage you to apply their mitigations (the changes to protocols.xml) if feasible, rather than the Apache changes below.
Before I move on to the other subject of this post, I wanted to post Apache web server mitigations for the two most severe SP issues. Both of these have been verified against a lab instance. Apply these blocks if you cannot apply the official mitigations. As with the official recommendations, these are stopgaps until you can patch.
For the more severe issue, the following block is sufficient to prevent exploitation and arbitrary session creation.
# Remove after upgrading to SP 3.6.1.
<LocationMatch "^/Shibboleth\.sso/(SAML2/ECP|SLO/SOAP|NIM/SOAP|Artifact/SOAP)">
<If "%{REQUEST_METHOD} != 'POST' || %{QUERY_STRING} != ''">
Require all denied
</If>
</LocationMatch>
# Required. Do not remove.
<LocationMatch "^/Shibboleth\.sso/.*;">
Require all denied
</LocationMatch>
Some notes from testing this:
- Put it somewhere every virtual host that serves the SP will see it. We first tried a
mod_rewriteversion in the main server config, and it silently did nothing, because Debian’s default virtual host doesn’t inherit rewrite rules. The<LocationMatch>version above doesn’t have that problem. - If you’ve changed
handlerURLfrom/Shibboleth.sso, or you have several applications with their own handler URLs, adjust the path to match each one. - Use both blocks exactly as written. Don’t tighten the patterns.
The second issue is a SQL injection allowing session hijacking. It affects SPs storing sessions through ODBC using SQLServer, Postgres, or Oracle. If you are not using ODBC, this does not apply to you. One entry point is the default session cookie. The following Apache configuration change ought to block those exploitation attempts without interfering with actual sessions.
<Location />
<If "%{HTTP_COOKIE} =~ /_shibsession_[^=;]*=(?!_[0-9a-f]{32}(;|$))/">
Require all denied
</If>
</Location>
Other options:
- Move the session cache off ODBC until you’ve upgraded. In-memory storage with sticky sessions on the load balancer is the usual answer. Users may have to log in again if a node fails over.
- On MySQL/MariaDB, check that
NO_BACKSLASH_ESCAPESisn’t set in the global or sessionsql_mode. If it isn’t, the attack we tested didn’t work against MariaDB’s defaults.
How do we already have a lab exploit?
The short answer, of course, is “AI”.
On November 23, armed with only the binary Windows installer, I was able to use Claude to compare the code changes between 3.6.0 and 3.6.1-prerelease. Claude took about seven minutes to find both severe issues, then another ten minutes to create a containerized lab with proof-of-concept exploits in multiple configurations. Finally, within another five minutes, Claude produced and tested the above Apache configuration changes. All of this happened in the background while I was on an unrelated Zoom meeting.
This is the core danger of the AI era and the reason behind the endless series of compromises since September 2026. Even a partial binary release can be enough to deduce and exploit an unpublished vulnerability, within minutes of release. Extreme care must be taken to avoid pre-release of patches or patch details. Simply knowing that a vulnerability exists can be enough for a frontier agent to find one.
Tiny local models
Instrumental ID is a member of Anthropic’s Cyber Verification Program, giving us “defensive security” access to Claude models. In exchange for some extra scrutiny, we can use Claude to detect vulnerabilities in the software we support and design mitigations for those vulnerabilities.
However, open-weight models have been advancing rapidly on both red-team and defensive cyber tasks. I have high confidence that GLM-5.4 (or even 5.3) would be able to locate and exploit Shibboleth SP 3.6.0 just like Claude. There are dozens of companies hosting GLM models in many countries.
For completeness, I wanted to be sure that small local models (in llama.cpp) could not find and exploit the same vulnerabilities. The outcome is… not great for defenders.
Every recent local model I tested found both changes via the binary and managed to deduce an exploit for the ODBC flaw. Simply diffing the strings output between the two versions was sufficient to put them on the right track. After several guided iterations, Qwensploit 3.8 (a security-trained model) running on a Macbook Pro was able to find both vulnerabilities and design exploits without any hints or tests.
Need a hand?
We work with Shibboleth deployments across higher education. If you’d like help applying the workaround, testing it, checking for existing compromises, or scheduling your upgrade, contact us via our website.


