CVE-2026-22737

Spring Framework Improper Path Limitation with Script View Templates

Published Mar 19, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability allows the use of Java scripting engines such as JRuby or Jython in Spring MVC and WebFlux template views to read files outside the configured template directories. This can expose sensitive application configuration, source code, or other private files, leading to a confidentiality breach. The weakness is a path traversal or improper path validation, identified as CWE-22.

Affected Systems

Affected versions of Spring Framework include 5.3.0 through 5.3.46, 6.1.0 through 6.1.25, 6.2.0 through 6.2.16, and 7.0.0 through 7.0.5. The product is the Spring Framework from the Spring vendor.

Risk and Exploitability

The CVSS score of 5.9 indicates moderate severity, while the EPSS score of less than 1% suggests a low likelihood of exploitation in the wild. The vulnerability is not listed in CISA's KEV catalog, implying no known active exploitation. Based on the description, the likely attack vector is an application that supports script template views; an attacker with access to the application can supply a malicious template path to read arbitrary files. Mitigation requires application configuration changes or patching.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Spring Framework to a non‑affected version (7.0.6 or later, 6.2.17 or later, 6.1.26 or later, 5.3.47 or later).
  • Restrict script template view directories to a trusted path and enforce strict path validation.
  • Disable or limit the use of Java scripting engines if they are not required.
  • Verify filesystem permissions so that the application process cannot read sensitive files outside its intended scope.
  • Stay informed about vendor advisories and apply security patches promptly.

Generated by OpenCVE AI on March 20, 2026 at 16:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-4773-3jfm-qmx3 Spring Framework Improper Path Limitation with Script View Templates
History
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
Type Values Removed Values Added
Weaknesses CWE-22
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-20
CWE-22
Type Values Removed Values Added
Weaknesses CWE-20
CWE-22
Type Values Removed Values Added
First Time appeared Spring
Spring spring Framework
Vendors & Products Spring
Spring spring Framework
Type Values Removed Values Added
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.
Title Spring Framework Improper Path Limitation with Script View Templates
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Mar 20, 2026, 2:43 PM
Reserved
Jan 9, 2026, 6:54 AM
Status
Analyzed
Published
Mar 20, 2026, 12:16 AM
Modified
Jun 17, 2026, 10:20 AM
Severity
Moderate
Public date
Mar 19, 2026, 11:53 PM