Skip to main content

Spring Security CVE-2026-40993

| EUVDEUVD-2026-35886 HIGH
Deserialization of Untrusted Data (CWE-502)
2026-06-10 security@vmware.com GHSA-2q7c-5gjm-7q23
7.2
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify Spring Security 7.0.x SAML JDBC deployment
  2. Delivery
    Obtain write access to application database
  3. Exploit
    Craft Java deserialization gadget payload
  4. Install
    Insert payload into verification_credentials column
  5. C2
    Trigger SAML metadata load via login flow
  6. Execute
    Deserialize and execute code as application JVM
  7. Impact
    Pivot 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jun 18, 2026 - 03:49 cvss changed CVSS 7.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.

v1 Jun 10, 2026 - 00:31 CVSS 7.3

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

Spring Security 7.0.0 <7.0.6

Affected Packages

maven org.springframework.security:spring-security-saml2-service-provider fix: 7.0.6
euvd spring_security fix: 7.0.6

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

NVD PRIMARY 7.2 HIGH
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.2 HIGH

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.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Analysis Updated
Jun 18, 2026 - 03:49 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 18, 2026 - 03:49 vuln.today
v2 - CVSS changed
CVSS changed
Jun 18, 2026 - 03:38 NVD
7.3 (HIGH) 7.2 (HIGH)
Patch available
Jun 10, 2026 - 02:01 EUVD

DescriptionNVD

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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2014-3527 CRITICAL
9.8 May 25

When using the CAS Proxy ticket authentication from Spring Security 3.1 to 3.2.4 a malicious CAS Service could trick ano

CVE-2023-34034 CRITICAL
9.8 Jul 19

Using "**" as a pattern in Spring Security configuration for WebFlux creates a mismatch in pattern matching between Spri

CVE-2022-31692 CRITICAL
9.8 Oct 31

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

CVE-2022-22978 CRITICAL
9.8 May 19

In spring security versions prior to 5.4.11+, 5.5.7+ , 5.6.4+ and older unsupported versions, RegexRequestMatcher can ea

CVE-2026-22752 CRITICAL
9.6 Jul 16

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

CVE-2023-34035 MEDIUM POC
5.3 Jul 18

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

CVE-2018-1258 HIGH
8.8 May 11

Spring Framework version 5.0.5 when used in combination with any versions of Spring Security contains an authorization b

CVE-2026-111235 CRITICAL
9.1 Oct 15

Unauthenticated authorization bypass in the OpenNMS Meridian and Horizon REST API lets any remote attacker who can reach

CVE-2026-59270 CRITICAL
9.1 Aug 27

Improper authorization in Spring Security's embedded UnboundID test LDAP server (UnboundIdContainer) exposes an administ

CVE-2026-22732 CRITICAL POC
9.1 Mar 19

Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.

CVE-2021-22112 HIGH
8.8 Feb 23

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

CVE-2020-5407 HIGH
8.8 May 13

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy