Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2021-48014 Overview
CVE-2021-48014 is a path traversal vulnerability [CWE-22] in Fanruan FineReport 9.0. The flaw resides in the /WebReport/ReportServer endpoint when invoking the design_save_svg operation. Unauthenticated attackers can supply directory traversal sequences in the filePath parameter and arbitrary content in the __CONTENT__ payload to write files anywhere the application process can reach. Attackers typically drop a JSP webshell into a web-accessible directory to achieve remote code execution. The Shadowserver Foundation first observed exploitation evidence on 2023-10-14.
Critical Impact
Unauthenticated remote attackers can write arbitrary files, including JSP webshells, leading to full remote code execution on the FineReport server.
Affected Products
- Fanruan FineReport 9.0
- FineReport WebReport module exposing /WebReport/ReportServer
- Deployments reachable over HTTP/HTTPS without authentication requirements on the design_save_svg operation
Discovery Timeline
- 2023-10-14 - Exploitation evidence first observed by the Shadowserver Foundation
- 2026-10-22 - CVE-2021-48014 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2021-48014
Vulnerability Analysis
FineReport 9.0 exposes the design_save_svg operation through the /WebReport/ReportServer servlet. The handler accepts a client-supplied filePath value and writes the __CONTENT__ body to that location on disk. The server does not authenticate the request and does not normalize or constrain the destination path. Attackers combine these weaknesses to escape the intended save directory and write files such as JSP webshells into the web application root. Once the webshell is deployed, the attacker executes arbitrary commands in the context of the FineReport Java process.
Root Cause
The root cause is improper limitation of a pathname to a restricted directory [CWE-22]. The filePath parameter is concatenated into a filesystem path without canonicalization or allow-list validation. Sequences such as ../ traverse outside the intended write location. The design_save_svg operation also lacks an authentication or authorization check, so any network client can invoke it.
Attack Vector
The attack is network-based and requires no authentication or user interaction. An attacker sends an HTTP POST request to /WebReport/ReportServer?op=design_save_svg containing a crafted filePath value with traversal sequences and a __CONTENT__ body holding the webshell source. The server writes the payload to the requested path. The attacker then requests the webshell URL to execute operating system commands. Public proof-of-concept tooling automates this chain, including a GitHub PoC script and a Nuclei template.
See the VulnCheck advisory for additional technical context.
Detection Methods for CVE-2021-48014
Indicators of Compromise
- POST requests to /WebReport/ReportServer containing the parameter op=design_save_svg from unauthenticated or external sources
- Request bodies or query strings containing filePath= values with ../ traversal sequences or references to JSP/JSPX file extensions
- New or modified .jsp files appearing under FineReport web directories (for example, WebReport/) with recent modification timestamps
- Java process (java.exe or java) spawning shell interpreters such as cmd.exe, powershell.exe, /bin/sh, or /bin/bash
Detection Strategies
- Deploy the Nuclei template for FineReport V9 file upload against FineReport assets to identify vulnerable instances
- Create web application firewall (WAF) and intrusion detection system (IDS) rules that flag design_save_svg requests containing traversal sequences in filePath
- Hunt for child processes of the FineReport JVM that match command interpreters or reconnaissance utilities
- Compare the FineReport web root against a known-good file manifest to surface unauthorized JSP artifacts
Monitoring Recommendations
- Enable verbose access logging on the FineReport application server and forward logs to a centralized analytics platform
- Alert on file-write events to web-accessible directories outside the normal deployment pipeline
- Monitor outbound network connections initiated by the FineReport host for reverse shells or command-and-control traffic
- Track authentication-less POST requests to /WebReport/ReportServer and baseline expected operations
How to Mitigate CVE-2021-48014
Immediate Actions Required
- Restrict network access to /WebReport/ReportServer so that only trusted internal clients can reach the endpoint
- Block or filter requests whose filePath parameter contains ../, absolute paths, or executable extensions such as .jsp and .jspx
- Inspect FineReport web directories for unauthorized JSP files and remove any confirmed webshells
- Rotate credentials and secrets accessible to the FineReport service account if compromise is suspected
Patch Information
Upgrade FineReport to a vendor-supported version that addresses the design_save_svg path traversal and enforces authentication on administrative operations. Review the Fanruan FineReport product page and vendor release notes for the latest fixed build, and apply it after validating in a non-production environment.
Workarounds
- Place FineReport behind a reverse proxy or WAF that enforces authentication and strips traversal characters from request parameters
- Deny HTTP POSTs to the design_save_svg operation at the proxy layer until the patch is applied
- Run the FineReport Java process under a least-privilege account that cannot write to web-accessible directories outside its intended scope
- Apply filesystem-level access controls that prevent the application user from modifying JSP files in the deployment root
# Example reverse proxy rule to block exploit attempts (nginx)
location /WebReport/ReportServer {
if ($arg_op = "design_save_svg") { return 403; }
if ($args ~* "filePath=.*\.\./") { return 403; }
if ($args ~* "filePath=.*\.jsp") { return 403; }
proxy_pass http://finereport_backend;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

