CVE-2025-47812 Wing FTP Server Improper Neutralization of Null Byte or NUL Character
Remote attackers can inject Lua code via null bytes to execute arbitrary system commands with root privileges, compromising the entire server.
- Exploited in the wild
- Since 14 Jul 2025
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-47812?
CVE-2025-47812 is a critical code injection vulnerability in wftpserver Wing FTP Server, published on 10 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-158
Which versions are affected by CVE-2025-47812?
It affects 1 product.
Products include Wftpserver Wing Ftp Server.
How do I fix CVE-2025-47812?
No fix has been published for CVE-2025-47812 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 4 Aug 2025.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-47812 being exploited?
Yes. Attackers have exploited CVE-2025-47812 in the wild since at least 14 Jul 2025.
Public exploit code: 2 Metasploit modules, 1 Exploit-DB entry, 1 Nuclei template and 18 proofs of concept on GitHub.
Other vulnerabilities in wftpserver Wing FTP Server
- CVE-2025-47813 Wing FTP Server Information Disclosure
- CVE-2026-44403 Wing FTP Server < 8.1.3 Authenticated Remote Code Execution via Session Serialization
- CVE-2020-37032 Wing FTP Server 6.3.8 - Remote Code Execution
- CVE-2019-25267 Wing FTP Server 6.0.7 - Unquoted Service Path
- CVE-2020-9470 Information disclosure in n/a
Sources
Also known as GHSA-j4xf-75rr-vvrv.