CVE-2024-4040 in Crushftp
A server side template injection vulnerability in CrushFTP in all versions before 10.7.1 and 11.1.0 on all platforms allows unauthenticated remote attackers to read files from the filesystem outside of the VFS Sandbox, bypass authentication to gain administrative access, and perform remote code execution on the server.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Crushftp | Crushftp | — |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: 430a6cef-dc26-47e3-9fa8-52fb7f19644e
Exploitation
| CISA known-exploited | Yes added 2024-04-24 |
|---|---|
| Public exploit | Not confirmed |
Official description
A server side template injection vulnerability in CrushFTP in all versions before 10.7.1 and 11.1.0 on all platforms allows unauthenticated remote attackers to read files from the filesystem outside of the VFS Sandbox, bypass authentication to gain administrative access, and perform remote code execution on the server.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-4040 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-269410-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| Published | 2024-04-22 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-94: Code Injection
Attacker injects arbitrary code that is executed by the application process.
CWE-1336: CWE-1336
Related attack patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-94
CAPEC-77 Manipulating User-Controlled Variables via CWE-94
CAPEC-242 Code Injection via CWE-94
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A critical server-side template injection vulnerability exists in CrushFTP versions prior to 10.7.1 and 11.1.0, allowing unauthenticated remote attackers to read files, bypass authentication, and execute arbitrary code. This vulnerability has a CVSS score of 10.0 and is listed in the KEV catalog with a public proof of concept available.
The vulnerability can be exploited by an unauthenticated attacker over the network without user interaction. The attacker can inject malicious templates into the server, leading to file system access, administrative privileges, and remote code execution.
Compensating controls AI-drafted, review before use
Implement strict input validation and sanitization for all user inputs, especially those related to template rendering. Enforce least privilege principles and restrict file system access to the application.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2024-4040?
A critical server-side template injection vulnerability exists in CrushFTP versions prior to 10.7.1 and 11.1.0, allowing unauthenticated remote attackers to read files, bypass authentication, and execute arbitrary code. This vulnerability has a CVSS score of 10.0 and is listed in the KEV catalog with a public proof of concept available.
What is the CVSS score for CVE-2024-4040?
CVE-2024-4040 has CVSS 10.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H. EPSS: 74.3%.
Is CVE-2024-4040 actively exploited?
Yes. CVE-2024-4040 is in the CISA known-exploited catalog (added 2024-04-24). Active exploitation confirmed. Immediate patching required.
How do I remediate CVE-2024-4040?
Priority: IMMEDIATE. Advisory: https://www.crushftp.com/crush10wiki/Wiki.jsp?page=Update PSIRT: 430a6cef-dc26-47e3-9fa8-52fb7f19644e
What systems are affected by CVE-2024-4040?
CVE-2024-4040 affects Crushftp Crushftp.
What NERC-CIP standard applies to CVE-2024-4040?
NERC CIP CIP-007 CIP-007-R2: This vulnerability allows unauthorized access to the system, which could compromise the integrity and availability of critical assets, violating the requirement for secure access controls.
What IEC 62443 requirement maps to CVE-2024-4040?
IEC 62443 SR 7.6: The vulnerability enables unauthorized access and code execution, which directly impacts the security requirements for protecting against unauthorized access and ensuring the integrity of the system.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Crushftp","product":"Crushftp","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.