CVE-2021-31635:
jFinal Server-Side Template Injection vulnerability
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.78467%
CWE
Published
6/26/2023
Updated
12/5/2024
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
com.jfinal:jfinal | maven | <= 4.9.08 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of user input in template processing functions. JFinal's template engine evaluates expressions during rendering, and the advisory explicitly identifies the 'template function' as the attack vector. The Engine.getTemplate
method is the entry point for template processing, and Template.render
executes the logic. Together they form the chain for SSTI exploitation when user input isn't properly sanitized, consistent with CWE-94 code injection patterns in template engines.