CVE-2025-47812: Wing FTP Server NULL Byte Lua Injection Remote Code Execution
- Vendor
- Wftpserver
CVE-2025-47812 is a critical improper code-generation vulnerability in Wing FTP Server versions 7.4.3 and earlier. The user and administrative web interfaces, specifically the /loginok.html authentication flow, improperly handle NULL bytes in the username parameter. An attacker can use the NULL-byte truncation behavior to inject arbitrary Lua code into a server-side user-session file. When Wing FTP Server subsequently deserializes or processes that session data, including during requests to authenticated endpoints, the injected Lua executes and can invoke operating-system commands.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation provides remote arbitrary operating-system command execution in the security context of the Wing FTP service. Default deployments may run the service as root on Linux and other Unix-like platforms or NT AUTHORITY\SYSTEM on Windows, enabling complete compromise of the affected host. Observed post-compromise activity has included host and network reconnaissance, creation of local accounts for persistence, payload retrieval, and attempted deployment of remote-management tooling.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrading is not possible, disable or strictly restrict network access to the Wing FTP web interface, disable anonymous FTP access, and limit access to trusted administrative networks. Monitor Wing FTP application, domain, and security logs and inspect session-file storage for anomalous or unusually large Lua session files and evidence of malformed or truncated usernames. Run the Wing FTP service with the least privileges feasible and isolate the service host from sensitive systems.
Remediation
Patch, then assume compromise.
Upgrade Wing FTP Server to version 7.4.4 or later. Version 7.4.4, released in May 2025, remediates CVE-2025-47812.
Exploits
20 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-47812 exploited in the wild?
- Yes. As of Sep 26, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jul 14, 2025.
- Is there a public exploit for CVE-2025-47812?
- Yes. Mallory tracks 20 public exploits or proofs of concept for CVE-2025-47812, the earliest disclosed Jun 19, 2014.
- Is there a patch for CVE-2025-47812?
- Upgrade Wing FTP Server to version 7.4.4 or later. Version 7.4.4, released in May 2025, remediates CVE-2025-47812.
- What products are affected by CVE-2025-47812?
- Wftpserver Wing Ftp Server.
- How severe is CVE-2025-47812?
- CVE-2025-47812 has a CVSS v3.1 score of 10.0 (Critical) and an EPSS score of 60.2% (99th percentile) as of Sep 26, 2026.
Recent activity
68 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.