Skip to main content
VulnerabilityPublished

CVE-2026-22737: Spring Framework · Path Traversal

Affects Spring FrameworkSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 5.9 Medium.

Data as of 31 Oct 2026, 20:20 UTC

CVSS 3.1 base score
5.9Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 34% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 19 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 31 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
SpringSpring FrameworkAffected
  • >=7.0.0 <=7.0.5
  • >=6.2.0 <=6.2.16
  • >=6.1.0 <=6.1.25
  • >=5.3.0 <=5.3.46
Fixed in–

AI-suggested

  1. Immediately review and disable Java scripting engines (e.g., JRuby, Jython) for template views in Spring MVC and Spring WebFlux applications unless explicitly required.
  2. Monitor official Spring Framework security advisories for patches addressing CVE-2026-22737 and apply updates promptly once available.
  3. Implement strict access controls and file system permissions to limit the exposure of sensitive files to the application runtime environment.
  4. Conduct code audits to identify and refactor any usage of scripting engines in template rendering that could lead to this vulnerability.
  5. Employ runtime application self-protection (RASP) or web application firewalls (WAFs) with custom rules to detect and block suspicious template rendering requests that attempt to access unauthorized files.
  6. Use application-level logging and monitoring to detect anomalous access patterns or errors related to template rendering.
  7. Educate development teams about the risks of enabling scripting engines in template views and encourage secure coding practices.
  8. Consider architectural changes to avoid reliance on dynamic scripting engines for template rendering where feasible.

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.

References

Community reviews

Loading reviews…