Unauthenticated Server-Side Template Injection in CrushFTP
CVE-2024-4040 is a server-side template injection vulnerability in CrushFTP affecting legacy 9.x installations, 10.x releases before 10.7.1, and 11.x releases before 11.1.0 across all supported platforms. Crafted requests to the web interface allow unauthenticated remote attackers to escape the virtual filesystem (VFS) sandbox and read arbitrary files, bypass administrator authentication, and achieve remote code execution. The vulnerability has been exploited in the wild, including in targeted attacks against multiple U.S. organizations.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise the confidentiality, integrity, and availability of the CrushFTP server. Attackers can access and exfiltrate files outside configured VFS restrictions, obtain administrative access, and execute arbitrary code. Arbitrary file reads as root have been demonstrated; effective operating-system access depends on the privileges of the CrushFTP process. Administrative access and code execution can lead to full server compromise.
If you can’t patch tonight, do this now.
Until patched, tightly restrict network access to CrushFTP services using firewall allowlists, particularly access to the HTTP/S web interface. Deployments exposing only SFTP are not reachable through this web-interface exploit path. Enable Limited Server mode with the most restrictive practical configuration to reduce administrator-level code-execution opportunities. Do not rely on a DMZ deployment or reverse proxy as a complete mitigation. Monitor for suspicious file access and administrative activity, recognizing that evasive payloads may be redacted from logs and that a lack of logged evidence does not establish absence of exploitation.
Patch, then assume compromise.
Upgrade CrushFTP 10.x to version 10.7.1 or later, or CrushFTP 11.x to version 11.1.0 or later; preferably deploy the latest supported release. Migrate legacy 9.x installations to a supported, patched release. Treat patching as an emergency because exploitation is confirmed in the wild. Investigate potentially exposed systems for prior compromise, since installing the patch does not remove attacker access or reverse earlier data theft.
9 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
22 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.