CVE-2026-22737

Spring Framework Improper Path Limitation with Script View Templates

State
Published
Severity
5.9 Medium
Published
Mar 19, 2026
Updated
Mar 20, 2026
Reserved
Jan 9, 2026

Read the record on cve.org

Description

Use of Java scripting engine enabled (e.g. JRuby, Jython) template views in Spring MVC and Spring WebFlux applications can result in disclosure of content from files outside the configured locations for script template views. This issue affects Spring Framework: from 7.0.0 through 7.0.5, from 6.2.0 through 6.2.16, from 6.1.0 through 6.1.25, from 5.3.0 through 5.3.46.

Scores

CVSSScoreVectorSource
3.15.9 MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:Nvmware

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.5Affected
  • 6.2.0 through 6.2.16Affected
  • 6.1.0 through 6.1.25Affected
  • 5.3.0 through 5.3.46Affected

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.