Security Resilience

CVE-2024-4040

RCE in Crushftp 10.0.0 – 10.7.1

CISA KEVActive ExploitationEUVD ExploitedPublic PoCRCE
Published
22 April 2024
Modified
26 February 2026
KEV Added
24 April 2024
Patch / advisory
CVSS Score v3.1 9.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.99 99.9th percentile
Risk Priority 97 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-4040 is a critical-severity Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336) vulnerability in Crushftp. Its CVSS base score is 9.8 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 0.1% of CVEs by exploit likelihood; CISA has added it to the Known Exploited Vulnerabilities catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2024-4040 is a server-side template injection vulnerability affecting CrushFTP versions prior to 10.7.1 and 11.1.0 across all platforms. The flaw, tracked under CWE-1336 and CWE-94, permits unauthenticated remote attackers to escape the virtual file system sandbox, read arbitrary files on the underlying host, bypass authentication controls, and execute arbitrary code with administrative privileges.

Unauthenticated attackers with network access can exploit the issue by submitting crafted template expressions that are processed on the server. Successful exploitation grants full read access outside the intended VFS boundaries, administrative login bypass, and remote code execution, resulting in complete server compromise as reflected by the CVSS 9.8 base score.

Vendor advisories direct administrators to upgrade immediately to CrushFTP 10.7.1 or 11.1.0; the updates close the template injection vector and are referenced in the official CrushFTP wiki update pages. Public exploit code and technical analyses have been published on GitHub and by Rapid7.

The vulnerability was disclosed as an actively exploited zero-day, with security researchers and media outlets confirming in-the-wild attacks shortly after publication. The associated EPSS score remains elevated, with a current value of 0.9443 and a recorded peak of 0.9679.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

perform remote code execution on the server.

CWE(s)
KEV Date Added
24 April 2024

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
T1559.003 XPC Services Execution
Adversaries can provide malicious content to an XPC service daemon for local code execution.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-23692Shared CWE-1336, CWE-94both on KEV
CVE-2026-102142Same product class: managed file transfer
CVE-2020-8644Shared CWE-94both on KEV
CVE-2013-3906Shared CWE-94both on KEV
CVE-2014-4148Shared CWE-94both on KEV
CVE-2023-24955Shared CWE-94both on KEV
CVE-2019-16759Shared CWE-94both on KEV
CVE-2013-4810Shared CWE-94both on KEV
CVE-2026-1281Shared CWE-94both on KEV
CVE-2015-1635Shared CWE-94both on KEV

Affected Assets

crushftp
crushftp
10.0.0 — 10.7.1 · 11.0.0 — 11.1.0

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V1.3.7
  • V1.3.10
  • V1.3.1

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and static analysis can discover missing neutralization of template directives.

Input validation rejects or sanitizes untrusted data before it reaches the template engine, stopping injection of special syntax.

Least privilege limits the damage an injected code fragment can perform once executed.

Requiring documented secure development standards and tools enforces use of safe code-generation APIs and escaping.

Security engineering principles require use of safe templating APIs and proper escaping of external input.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require proper input neutralization in template engines to prevent injection.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

A.8.29's programme of code review, static analysis, dynamic testing and penetration testing is the complete pre-production discovery set for code injection: eval/dynamic-execution sinks are visible to SAST, code review catches them, and penetration testing reaches the externally exploitable instances, with no nameable remainder.

prevents

Training developers on template engine security (sandboxing, escaping, untrusted input handling) reduces some instances of CWE-1336, but the topic is specialized and not all developers receive this specific training, so the effect is a minority one — parallel to A.6.3 vs CWE-598.

prevents

Secure coding standards require proper escaping or sandboxing of template directives, directly mitigating CWE-1336.

prevents

A.8.30 carries its effect through the secure-design, coding and testing practices its contract requires of the supplier (8.25–8.29), so a faithfully implemented clause reduces template-injection defects in delivered code the way those practices do; the practice is fallible and the clause depends on the referenced controls being in place, so a minority of instances are prevented.

finds

A.8.8's reach is DISCLOSURE — it sees template injection only where it surfaces as a published advisory in a third-party component (the observed CVEs show SSTI/CSTI does commonly appear as CVEs in libraries and engines), but the bulk of template injection lives in first-party application code that A.8.8's disclosure-based programme does not reach, mirroring the A.8.8 -> CWE-89 anchor at the same rung.

References