Unauthenticated code execution via unsafe template expansion
Published Apr 22, 2024 · Updated Oct 21, 2025
Server-side template injection in CrushFTP before 10.7.1 and 11.1.0 allows unauthenticated remote attackers to read files and execute code. ServerSessionAJAX.writeResponse passes attacker-controlled API response text to an unsafe variable-expansion routine that evaluates template directives, including file inclusion. An anonymous web session can reach the API, exposing files outside the VFS sandbox and enabling administrator-session theft and server compromise.
Summary
What happened
Server-side template injection in CrushFTP before 10.7.1 and 11.1.0 allows unauthenticated remote attackers to read files and execute code. ServerSessionAJAX.writeResponse passes attacker-controlled API response text to an unsafe variable-expansion routine that evaluates template directives, including file inclusion. An anonymous web session can reach the API, exposing files outside the VFS sandbox and enabling administrator-session theft and server compromise.
The record
- CVE
- CVE-2024-4040
- Published
- Apr 22, 2024
- Updated
- Oct 21, 2025
- Vendor
- CrushFTP
- Product
- CrushFTP
- Classifications
- CWE-1336, CAPEC-253, CAPEC-115, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 22, 2024CVE publishedPublication date reported by the CVE source.
- Oct 21, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=10.0 <10.7.1
- Affected versionversion=11.0 <11.1.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
View daily counts
| Reporting day | Unique IPs |
|---|---|
| Sep 10, 2026 | Unavailable |
| Sep 11, 2026 | Unavailable |
| Sep 12, 2026 | Unavailable |
| Sep 13, 2026 | Unavailable |
| Sep 14, 2026 | 1 |
| Sep 15, 2026 | Unavailable |
| Sep 16, 2026 | Unavailable |
Weakness, pattern, technique
Public exploit references
- Airbus CERT CVE-2024-4040 exploit scannerfunctional · demonstrated
- CrushFTP Unauthenticated Arbitrary File Read Metasploit modulefunctional · validated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- CISA Known Exploited Vulnerabilities entry for CrushFTP VFS Sandbox Escapeknown exploited catalog
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo