Intel

AIKIDO-2026-989955

spring-context-support is vulnerable to Path Traversal

Path TraversalCVE-2026-59280 Published 6 days ago

59

Medium Risk

This Affects:

JAVAspring-context-support
0.0.1 - 7.0.8
Fixed in 7.0.9
Are you affected? Scan for Free

TL;DR

spring-context-support SpringTemplateLoader does not reject backslash sequences in FreeMarker view names. A view name from untrusted input can escape the template directory and expose files that should not be readable. Applications that do not derive view names from untrusted input are not affected. The patch blocks backslash path traversal in template loading.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and a controller returns a FreeMarker view name derived from untrusted input through SpringTemplateLoader.

Background info

spring-context-support is vulnerable to Path Traversal in versions 0.0.1 - 7.0.8.

How to fix this

Upgrade the org.springframework:spring-context-support library to the patch version.