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
Published: 2026-08-27
Score: 4.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Remote File Access
Action: Apply Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

References
History

Tue, 01 Sep 2026 22:00:00 +0000

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

Thu, 27 Aug 2026 18:00:00 +0000

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'}


Thu, 27 Aug 2026 16:45:00 +0000

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

Subscriptions

Spring Spring Framework
Vmware Spring Framework
cve-icon MITRE

Status: PUBLISHED

Assigner: vmware

Published:

Updated: 2026-08-27T17:42:15.735Z

Reserved: 2026-07-04T18:13:26.297Z

Link: CVE-2026-59280

cve-icon Vulnrichment

Updated: 2026-08-27T17:41:21.291Z

cve-icon NVD

Status : Analyzed

Published: 2026-08-27T17:18:57.780

Modified: 2026-09-01T15:44:36.320

Link: CVE-2026-59280

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T08:00:13Z

Weaknesses
  • CWE-22

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