CVE-2026-41843

Spring Framework Path Traversal via Versioned Static Resources in Spring MVC and WebFlux

Published Jun 9, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
Spring MVC and WebFlux applications are vulnerable to Path Traversal attacks when resolving static resources.

Affected versions:
Spring Framework 7.0.0 through 7.0.7; 6.2.0 through 6.2.18; 6.1.0 through 6.1.27; 5.3.0 through 5.3.48.

Analysis

AI-generated

Technical impact

Spring MVC and WebFlux applications may allow attackers to perform path traversal when resolving versioned static resources. The vulnerability is triggered by crafting URLs that map to internal files outside the intended web root. If successful, it can expose any file readable by the application process, potentially leaking sensitive configuration or source code. This flaw is categorized as CWE‑22, reflecting improper path handling.

Affected Systems

Affected versions include Spring Framework 5.3.0 through 5.3.48, 6.1.0 through 6.1.27, 6.2.0 through 6.2.18, and 7.0.0 through 7.0.7. The core issue is present in the static resource resolver for both MVC and WebFlux modules across these releases.

Risk and Exploitability

The CVSS score is 5.9, indicating moderate severity. EPSS is not available, so the current exploitation probability is unknown. The vulnerability is not listed in CISA KEV. The path traversal could be achieved by any user who can send a request to the application, so authentication is not required. Attackers may abuse the flaw without additional privileges, making the risk context‑dependent on the application’s exposure to external traffic. Organizations should treat this as a moderate risk until a fix is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Spring Framework to at least 5.3.49, 6.1.28, 6.2.19, or 7.0.8, whichever matches your environment.
  • If an immediate upgrade is not possible, restrict static resource path mapping by configuring the resource handler to allow only whitelisted directories or disable versioned static resource support.
  • Run the application with the minimum file system permissions required, limiting the ability of the process to read sensitive files, and monitor for anomalous static resource requests.

Generated by OpenCVE AI on June 9, 2026 at 05:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-72pg-x5f8-j25j Spring Framework Path Traversal via Versioned Static Resources in Spring MVC and WebFlux
History
Type Values Removed Values Added
First Time appeared Vmware
Vmware spring Framework
CPEs cpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:*
Vendors & Products Vmware
Vmware spring Framework
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 Framework
Vendors & Products Spring
Spring spring Framework
Type Values Removed Values Added
Description Spring MVC and WebFlux applications are vulnerable to Path Traversal attacks when resolving static resources. Affected versions: Spring Framework 7.0.0 through 7.0.7; 6.2.0 through 6.2.18; 6.1.0 through 6.1.27; 5.3.0 through 5.3.48.
Title Spring Framework Path Traversal via Versioned Static Resources in Spring MVC and WebFlux
Weaknesses CWE-22
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Jun 27, 2026, 9:00 PM
Reserved
Apr 22, 2026, 6:22 AM
Status
Analyzed
Published
Jun 9, 2026, 5:16 AM
Modified
Jul 23, 2026, 8:10 AM
Severity
Moderate
Public date
Jun 9, 2026, 3:50 AM