Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify Spring Security 7.0.x SAML JDBC deployment
-
DeliveryObtain write access to application database
-
ExploitCraft Java deserialization gadget payload
-
InstallInsert payload into verification_credentials column
-
C2Trigger SAML metadata load via login flow
-
ExecuteDeserialize and execute code as application JVM
-
ImpactPivot to host and downstream systems
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target Spring application (1) runs Spring Security 7.0.0-7.0.5, (2) is configured to use the JdbcAssertingPartyMetadataRepository for SAML 2.0 asserting-party metadata persistence (the default in-memory or file-based repositories are not affected), and (3) the attacker has write capability - directly or via a separate vulnerability such as SQL injection - to the saml2_asserting_party_metadata table's verification_credentials or encryption_credentials columns. Exploitation is further limited by the need for a usable Java deserialization gadget chain on the application classpath and by the fact that the malicious row is only deserialized when the repository loads metadata (e.g., during a SAML authentication flow), so no user interaction at the web tier is required but a triggering SAML operation must occur. Despite the CVSS AV:N marking, real-world reachability hinges on prior compromise of the data tier rather than direct internet exposure of the deserialization sink. |
| Impact | The CVSS 3.1 base score of 7.2 (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) reflects High privileges required - the attacker must already be able to write rows into the SAML metadata table - but full triad impact once that precondition is met. CISA SSVC corroborates this: Exploitation=none, Automatable=no, Technical Impact=partial, indicating no active campaigns and an attack that does not readily lend itself to mass exploitation. EPSS of 0.01% (2nd percentile) and the absence of KEV listing and public PoCs reinforce that this is not yet an opportunistic threat. The realistic risk is therefore secondary or chained: an attacker who already has SQL injection, leaked DB credentials, or insider DB access against an application using the JDBC SAML metadata store can pivot from data tampering to RCE. Note a mild signal conflict - AV:N implies network reachability, but in practice the attacker needs database-write capability, which is rarely directly exposed to the network and effectively narrows the population at risk to applications with separately compromised data tiers. |
| Exploit ScenarioDerived | An attacker who obtains write access to the application database - for instance through a separate SQL injection flaw, leaked DBA credentials, or a malicious insider - crafts a Java serialized gadget chain using libraries already on the Spring Security classpath and writes it into the verification_credentials column of a row in saml2_asserting_party_metadata. When the application next loads asserting-party metadata via JdbcAssertingPartyMetadataRepository (for example, on a SAML login attempt), the payload is deserialized in-process and executes arbitrary code under the application's JVM identity. No public exploit identified at time of analysis, but standard ysoserial-style gadgets make weaponization straightforward once DB write access exists. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 18, 2026
Insecure deserialization in Spring Security 7.0.0 through 7.0.5 allows an attacker with write access to the saml2_asserting_party_metadata database table to store malicious serialized Java payloads in the verification_credentials or encryption_credentials columns, leading to code execution when the JdbcAssertingPartyMetadataRepository deserializes them. The flaw affects deployments using the JDBC-backed SAML 2.0 asserting-party metadata repository introduced in the Spring Security 7.x line. No public exploit identified at time of analysis and EPSS is very low (0.01%), but CVSS rates impact as High due to full confidentiality, integrity, and availability loss on the application.
Earlier versions of this analysis (2)
Insecure deserialization in Spring Security 7.0.0 through 7.0.5 allows an attacker with write access to the saml2_asserting_party_metadata database table to store malicious serialized Java payloads in the verification_credentials and encryption_credentials columns, which are deserialized by JdbcAssertingPartyMetadataRepository and can lead to remote code execution in the application context. EPSS is very low (0.01%) and there is no public exploit identified at time of analysis, but a vendor patch is available in 7.0.6.
Insecure deserialization in Spring Security 7.0.0 through 7.0.5 allows an attacker with write access to the saml2_asserting_party_metadata database table to store malicious Java serialized payloads in the verification_credentials and encryption_credentials columns, leading to high-impact integrity and availability compromise when those credentials are loaded by JdbcAssertingPartyMetadataRepository. The CVSS 7.3 vector reflects adjacent network reach, high attack complexity, and required high privileges (database write access), with scope change indicating the impact extends beyond the vulnerable component. No public exploit identified at time of analysis and the issue is not listed in CISA KEV.
RemediationAI
Upgrade to Spring Security 7.0.6 or later, which is the vendor-released patched version per the Spring advisory at https://spring.io/security/cve-2026-40993 and EUVD-2026-35886. If immediate upgrade is not feasible, tightly restrict who and what can issue INSERT/UPDATE statements against the saml2_asserting_party_metadata table by enforcing least-privilege database accounts so that only a dedicated metadata-management identity (not the application's runtime account, and not shared with other tenants) can write the verification_credentials and encryption_credentials columns; this prevents an attacker who compromises another component from poisoning the table at the cost of operational friction during metadata rotation. Audit existing rows in the table for unexpected serialized blobs before patching and, where feasible, switch to a non-JDBC AssertingPartyMetadataRepository implementation (e.g., the in-memory or file-based variants) until the upgrade lands, accepting that this loses the dynamic-update behavior the JDBC store provides.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Spring Security's JdbcAssertingPartyMetadataRepository persists SAML 2.0 Relying Party / Asserting Party metadata, including verification and encryption credentials, in a relational database table named saml2_asserting_party_metadata. The credential collections are serialized as Java objects into the verification_credentials and encryption_credentials columns and rehydrated via Java's native deserialization when the repository loads metadata. CWE-502 (Deserialization of Untrusted Data) applies: any gadget chain present on the application classpath (Spring, Apache Commons, Hibernate, etc.) can be triggered when the malicious blob is read back, turning a database write primitive into in-process code execution under the Spring Security web application's JVM identity. The affected CPE is cpe:2.3:a:vmware:spring_security, and the SAML2 JDBC metadata repository was added in the 7.x branch.
Know when Spring Security gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Requires high-privilege DB write access (PR:H), no user interaction, and successful deserialization yields full RCE in the application JVM, so C/I/A all High.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
An attacker with write permissions to the database table managed by JdbcAssertingPartyMetadataRepository (saml2_asserting_party_metadata) may be able to store malicious serialized payloads in the columns containing the collection of verification or encryption credentials (verification_credentials and encryption_credentials, respectively).
Affected versions: Spring Security 7.0.0 through 7.0.5.
Blast Radius
ecosystem impact- 3 maven packages depend on org.springframework.security:spring-security-saml2-service-provider (1 direct, 2 indirect)
Ecosystem-wide dependent count for version 7.0.0.
Executive ViewAI
Spring Security 7.0.0-7.0.5 contains a code execution vulnerability in JDBC-backed SAML 2.0 metadata storage that exposes organizations to application compromise if database write access is inadequately protected. Organizations using these versions must prioritize patching to eliminate the risk of attackers with database-level access gaining application control.
Apply vendor patch. Interim mitigation: restrict write access to saml2_asserting_party_metadata table to essential service accounts only; implement database-level audit logging to detect unauthorized modifications.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
Related Vulnerabilities in Spring Security Auth and Injection Flaws
View all 6More in Spring Security
View allWhen using the CAS Proxy ticket authentication from Spring Security 3.1 to 3.2.4 a malicious CAS Service could trick ano
Using "**" as a pattern in Spring Security configuration for WebFlux creates a mismatch in pattern matching between Spri
Spring Security, versions 5.7 prior to 5.7.5 and 5.6 prior to 5.6.9 could be susceptible to authorization rules bypass v
In spring security versions prior to 5.4.11+, 5.5.7+ , 5.6.4+ and older unsupported versions, RegexRequestMatcher can ea
Authentication bypass in VMware/Spring's Spring Authorization Server (versions 7.0.0-7.0.4, 1.5.0-1.5.6, 1.4.0-1.4.9, an
Spring Security versions 5.8 prior to 5.8.5, 6.0 prior to 6.0.5, and 6.1 prior to 6.1.2 could be susceptible to authoriz
Spring Framework version 5.0.5 when used in combination with any versions of Spring Security contains an authorization b
Unauthenticated authorization bypass in the OpenNMS Meridian and Horizon REST API lets any remote attacker who can reach
Improper authorization in Spring Security's embedded UnboundID test LDAP server (UnboundIdContainer) exposes an administ
Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.
Spring Security 5.4.x prior to 5.4.4, 5.3.x prior to 5.3.8.RELEASE, 5.2.x prior to 5.2.9.RELEASE, and older unsupported
Spring Security versions 5.2.x prior to 5.2.4 and 5.3.x prior to 5.3.2 contain a signature wrapping vulnerability during
EUVD-2026-35886
GHSA-2q7c-5gjm-7q23
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB