Summary
CVE-2018-25443 is an unrestricted file upload vulnerability in the catchimage action of the .NET controller in Baidu UEditor 1.4.0 through 1.4.3.3. Unauthenticated remote attackers can write an executable .aspx file to the server and achieve remote code execution. The CVE record rates it Critical (CVSS 4.0 base score 9.3).
Technical details
- Root cause: The
catchimageaction of/ueditor/net/controller.ashxvalidates only theContent-Typeheader of the remote resource it fetches, not the file extension of the saved file. - Trigger conditions: The attacker supplies a
source[]URL such asx.jpg?.aspx, so the malicious extension is retained when the file is written. - Attack vector: Network, no authentication or user interaction required.
- Impact: An executable
.aspxfile is written to the server, leading to remote code execution. - Exploitation: The CVE record lists first observed exploitation on October 17, 2023, and credits The Shadowserver Foundation as reporter. The issue was publicly disclosed in August 2018.
Affected software
- Baidu UEditor 1.4.0 through 1.4.3.3 (the .NET controller,
/ueditor/net/controller.ashx)
Severity
- CVSS v4.0 base score 9.3 (Critical):
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N - CVSS v3.1 base score 9.8 (Critical):
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: The CVE record does not identify a fixed version. Check whether UEditor is deployed with the .NET backend and whether
/ueditor/net/controller.ashxis reachable from the internet. - Restrict or remove access to
controller.ashx, or disable thecatchimageaction, until a fix is available. - Block requests whose
source[]values contain executable extensions such as.aspx, for example with WAF rules. - Prevent script execution in upload directories.
- Review upload directories for unexpected
.aspxfiles, and investigate any found as potential compromise.

