CVE-2026-59280

Spring Framework Path Traversal via Backslash in SpringTemplateLoader

State
Published
Severity
4.3 Medium
Published
Aug 27, 2026
Updated
Aug 27, 2026
Reserved
Jul 4, 2026

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.14.3 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NCISA-ADP

Weaknesses

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

Affected Products

ProductVersions
Spring FrameworkSpring
  • 7.0.0 through 7.0.8Affected
  • 6.2.0 through 6.2.19Affected
  • 6.1.0 through 6.1.28Affected
  • 6.0.0 through 6.0.30Affected
  • 5.3.0 through 5.3.49Affected
  • 5.2.25.RELEASE and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.