CVE Database›Document archive›CVE-2026-59280

CVE-2026-59280

org.springframework/spring-webmvc: Spring Framework: Path Traversal via untrusted input in FreeMarker integration

Loading…

Severity

Moderate

Red Hat Product Security

4.3

CVSS 3.1

Review impact separately from score.

Published · August 28, 2026

Updated · October 30, 2026

Description

A flaw was found in Spring Framework. Applications using its FreeMarker integration may be vulnerable to a path traversal attack. A remote attacker could exploit this by providing untrusted input to a controller that returns a view name, allowing unauthorized access to files or directories when FreeMarker is configured to resolve templates through SpringTemplateLoader.

Statement

This Moderate path traversal vulnerability impacts Spring Framework applications that use FreeMarker integration. It arises when a controller generates a view name from untrusted input, and FreeMarker is configured with SpringTemplateLoader. This specific configuration is required for exploitation, limiting the attack surface.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

CVSS / CWE

CVSS 3.1 · 4.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')