CVE-2026-41730

Spring Data REST exposes persistence-layer internals in error responses

Published Jun 9, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
Spring Data REST serializes the full exception cause chain into HTTP error response bodies, potentially exposing persistence-layer internals to HTTP clients.

Affected versions:
Spring Data REST 3.7.0 through 3.7.19; 4.3.0 through 4.3.16; 4.4.0 through 4.4.14; 4.5.0 through 4.5.11; 5.0.0 through 5.0.5.

Analysis

AI-generated

Technical impact

Spring Data REST serializes the full exception cause chain into HTTP error response bodies, which can reveal internal persistence-layer details to HTTP clients. This flaw allows an attacker to gain visibility into database types, table names, and other internal objects, compromising confidentiality as described by CWE-209.

Affected Systems

The vulnerability affects Spring Data REST provided by Spring. Specifically, versions 3.7.0 through 3.7.19, 4.3.0 through 4.3.16, 4.4.0 through 4.4.14, 4.5.0 through 4.5.11, and 5.0.0 through 5.0.5 are affected. Users should verify their deployed version against these ranges.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity; the EPSS score is not available and the vulnerability is not listed in CISA's KEV catalog. An attacker likely exploits this by sending requests that trigger exceptions—such as malformed input or unauthorized access—and then capturing the detailed error response. The impact remains limited to informational disclosure and does not enable further code execution or privilege escalation, but the exposed internal details can aid in subsequent attacks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Spring Data REST to a version that is not listed in the affected ranges (e.g., 3.7.20 or newer, 4.3.17 or newer, 4.4.15 or newer, 4.5.12 or newer, or 5.0.6 or newer).
  • If an upgrade cannot be performed immediately, configure the application to suppress stack trace details in error responses by disabling the inclusion of the stack trace (e.g., set SERVER_ERROR_INCLUDE_STACKTRACE to never) and implement a custom error handler that omits exception causes.
  • Enable monitoring for unexpected error responses and configure alerts for repeated unauthorized exception exposure attempts.

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-p5mm-xwgq-whfr Spring Data REST potentially exposes persistence-layer internals to HTTP clients
References
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Spring
Spring spring Data Rest
Vendors & Products Spring
Spring spring Data Rest
Type Values Removed Values Added
Description Spring Data REST serializes the full exception cause chain into HTTP error response bodies, potentially exposing persistence-layer internals to HTTP clients. Affected versions: Spring Data REST 3.7.0 through 3.7.19; 4.3.0 through 4.3.16; 4.4.0 through 4.4.14; 4.5.0 through 4.5.11; 5.0.0 through 5.0.5.
Title Spring Data REST exposes persistence-layer internals in error responses
Weaknesses CWE-209
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses
  • CWE-209

    Generation of Error Message Containing Sensitive Information

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Jun 30, 2026, 9:47 PM
Reserved
Apr 22, 2026, 6:21 AM
Status
Analyzed
Published
Jun 10, 2026, 12:16 AM
Modified
Jul 23, 2026, 9:10 AM