Vulnerability
CVE-2025-47812
Vulnerability details
- Score
- 10.0
- Severity
- critical
CVSS 3.1 · mitre
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HDescription
In Wing FTP Server before 7.4.4. the user and admin web interfaces mishandle '\0' bytes, ultimately allowing injection of arbitrary Lua code into user session files. This can be used to execute arbitrary system commands with the privileges of the FTP service (root or SYSTEM by default). This is thus a remote code execution vulnerability that guarantees a total server compromise. This is also exploitable via anonymous FTP accounts.
CVE ProgramExploit source choices
12 sourcesWing FTP Server allows arbitrary Lua code injection via a NULL-byte (%00) truncation bug (CVE-2025-47812). Supplying <valid-user>%00<lua-payload> as the username makes the C++ authentication routine validate only the prefix, while the full string is written unfiltered into the session file and later executed with root/SYSTEM privileges, leading to Remote Code Execution.
This module exploits the embedded Lua interpreter in the admin web interface for versions 3.0.0 and above. When supplying a specially crafted HTTP POST request an attacker can use os.execute() to execute arbitrary system commands on the target with SYSTEM privileges.
Wing FTP Server Remote Code Execution (RCE) Exploit (CVE-2025-47812)
Simple exploit for Wing FTP Server RCE (CVE-2025-47812) to run commands and get a reverse shell. For educational use only.
Wing FTP Server RCE via Lua Injection
Unauthenticated remote code execution vulnerability in Wing FTP Server <= 7.4.3.
r0otk3r/cve-2025-47812 source repository
CVE-2025-47812 POC
0xrevers3r/cve-2025-47812 source repository
blindma1den/cve-2025-47812 source repository
CVE-2025-47812 Poc for wingdata HTB