CVE-2026-40993

Unfiltered Java Native Deserialization of SAML 2.0 Asserting Party Credentials BLOB Database Entry

Published Jun 9, 2026 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Spring Security allows unfiltered Java deserialization of SAML 2.0 asserting party credentials stored in a database table. If an attacker writes malicious serialized objects into the columns containing verification or encryption credentials, those objects can be later deserialized by the application, resulting in execution of arbitrary code. The weakness is classified as CWE‑502, reflecting insecure deserialization.

Affected Systems

The issue affects Spring Security 7.0.0 through 7.0.5, specifically the JdbcAssertingPartyMetadataRepository component that manages the saml2_asserting_party_metadata table. Users deploying these versions of Spring Security are potentially at risk when the database allows write access to that table.

Risk and Exploitability

The CVSS score of 7.3 indicates a high severity for this vulnerability. The EPSS score is not available, and the vulnerability is not currently listed in CISA KEV. Exploitation requires the attacker to have write permissions to the saml2_asserting_party_metadata table, a condition that could arise from misconfiguration or an insider with database access. If write privileges are granted, the attacker can implant a malicious payload that will be deserialized later during SAML processing, providing a path to remote code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the Spring Security 7.0.6 or newer patch that fixes the deserialization issue.
  • Restrict write access to the saml2_asserting_party_metadata table to prevent unauthorized credential injection.
  • Audit existing entries in the table and replace any suspicious credential blobs with validated, known‑good ones.

Generated by OpenCVE AI on June 10, 2026 at 01:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-2q7c-5gjm-7q23 Spring Security SAML2 Service Provider is vulnerable to Deserialization of Untrusted Data via JdbcAssertingPartyMetadataRepository
References
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Spring
Spring spring Security
Vendors & Products Spring
Spring spring Security
Type Values Removed Values Added
Description 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.
Title Unfiltered Java Native Deserialization of SAML 2.0 Asserting Party Credentials BLOB Database Entry
Weaknesses CWE-502
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:A/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H'}

Weaknesses
  • CWE-502

    Deserialization of Untrusted Data

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Jun 27, 2026, 9:23 PM
Reserved
Apr 16, 2026, 2:19 AM
Status
Analyzed
Published
Jun 10, 2026, 12:16 AM
Modified
Jul 23, 2026, 9:10 AM