# CVE-2021-31635: jFinal Server-Side Template Injection vulnerability

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.21%, higher than 69% of CVEs (2026-12-01)
- Published: 2023-06-26T00:00:00.000Z
- Modified: 2026-06-17T03:52:06.163Z
- Also known as: GHSA-cgmm-c2m9-ff7r
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

Server-Side Template Injection (SSTI) vulnerability in jFinal v.4.9.08 allows a remote attacker to execute arbitrary code via the template function.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- com.jfinal:jfinal (Maven): up to 4.9.08
- jfinal jfinal: 4.9.08

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/jfinal/jfinal/issues/187> (issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-31635> (advisory)
- <https://gitee.com/jfinal/jfinal/issues/I3IXLE> (web)

## Sources

- CVE List: [CVE-2021-31635](https://www.cve.org/CVERecord?id=CVE-2021-31635), CVE Terms of Use, modified 2024-12-05
- GitHub Advisory Database: [GHSA-cgmm-c2m9-ff7r](https://github.com/advisories/GHSA-cgmm-c2m9-ff7r), CC-BY-4.0, modified 2024-12-05
- NVD: [CVE-2021-31635](https://nvd.nist.gov/vuln/detail/CVE-2021-31635), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-31635 · Whole record: https://cve.day/CVE-2021-31635.json · Rebuilt by cve.day 2026-11-25T22:58:08.476Z
