CVE-2026-59280

Spring Framework Path Traversal via Backslash in SpringTemplateLoader

Published Aug 27, 2026 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
Description
Applications using Spring Framework's FreeMarker integration may be vulnerable to a path traversal attack when a controller returns a view name derived from untrusted input and FreeMarker is configured to resolve templates through SpringTemplateLoader.
Spring Framework 7.0.0 - 7.0.8
Spring Framework 6.2.0 - 6.2.19
Spring Framework 6.1.0 - 6.1.28
Spring Framework 6.0.0 - 6.0.30
Spring Framework 5.3.0 - 5.3.49
Spring Framework 5.2.25.RELEASE and earlier

Analysis

AI-generated

Technical impact

Spring Framework’s integration with FreeMarker allows template files to be located by a controller through a view name that can contain backslashes. When the SpringTemplateLoader processes such a view name, the backslashes are interpreted as directory separators that escape the intended template directory. This flaw permits an attacker to read arbitrary files on the application server, potentially exposing sensitive configuration, source code, or other confidential data. The vulnerability is a classic path‑traversal weakness that can serve as an initial foothold for further exploitability.

Affected Systems

Spring Framework versions 7.0.0 through 7.0.8, 6.2.0 through 6.2.19, 6.1.0 through 6.1.28, 6.0.0 through 6.0.30, 5.3.0 through 5.3.49, and any 5.2.25.RELEASE or earlier that employ FreeMarker via SpringTemplateLoader. Any web application that constructs view names from untrusted input and relies on FreeMarker via SpringTemplateLoader is potentially affected.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, indicating limited public exploitation evidence. The flaw can be triggered remotely through HTTP requests that supply a malicious view name. Exploitation requires that the application uses FreeMarker with SpringTemplateLoader and permits untrusted input to form the view name. If successful, an attacker can read arbitrary files, compromising confidentiality and possibly enabling further privilege escalation or code execution depending on the accessed resources.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Spring Framework to the latest patch release that addresses CVE-2026-59280: 7.0.9 or later, 6.2.20 or later, 6.1.29 or later, 6.0.31 or later, 5.3.50 or later, or any 5.2.26.RELEASE or later release.
  • Sanitize all view names derived from untrusted input by removing backslashes, normalizing path separators, and validating against a whitelist of approved templates before passing them to the template loader.
  • Reconfigure the FreeMarker SpringTemplateLoader to anchor the base directory strictly, preventing path traversal outside the designated template folder, or disable backslash traversal by setting an appropriate safe base path.

Generated by OpenCVE AI on August 28, 2026 at 07:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
References
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
First Time appeared Spring
Spring spring Framework
Weaknesses CWE-22
Vendors & Products Spring
Spring spring Framework
Metrics cvssV3_1

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

ssvc

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

Type Values Removed Values Added
Description Applications using Spring Framework's FreeMarker integration may be vulnerable to a path traversal attack when a controller returns a view name derived from untrusted input and FreeMarker is configured to resolve templates through SpringTemplateLoader. Spring Framework 7.0.0 - 7.0.8 Spring Framework 6.2.0 - 6.2.19 Spring Framework 6.1.0 - 6.1.28 Spring Framework 6.0.0 - 6.0.30 Spring Framework 5.3.0 - 5.3.49 Spring Framework 5.2.25.RELEASE and earlier
Title Spring Framework Path Traversal via Backslash in SpringTemplateLoader
References
Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Aug 27, 2026, 5:42 PM
Reserved
Jul 4, 2026, 6:13 PM
Status
Analyzed
Published
Aug 27, 2026, 5:18 PM
Modified
Sep 1, 2026, 3:44 PM