CVE-2024-4040

CRITICAL KEV RANSOMWARE NUCLEI LAB

CrushFTP < 10.7.1 - Unauthenticated Server-Side Template Injection

Title source: llm
STIX 2.1

Exploitation Summary

CVE-2024-4040 is actively exploited and listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added April 24, 2024, with confirmed use in ransomware campaigns. EIP tracks 23 public exploits from researchers including Stuub, airbus-cert, rbih-boulanouar, including a Metasploit module auxiliary/gather/crushftp_fileread_cve_2024_4040. A Nuclei detection template is also available.

AI-analyzed exploit summary This repository contains a functional exploit for CVE-2024-4040, targeting CrushFTP's SSTI and LFI vulnerabilities. The PoC automates session token generation, SSTI exploitation, and LFI to read arbitrary files, including session tokens for privilege escalation.

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.

Exploits (23)

nomisec WORKING POC 60 stars
by Stuub · infoleak
https://github.com/Stuub/CVE-2024-4040-SSTI-LFI-PoC

This repository contains a functional exploit for CVE-2024-4040, targeting CrushFTP's SSTI and LFI vulnerabilities. The PoC automates session token generation, SSTI exploitation, and LFI to read arbitrary files, including session tokens for privilege escalation.

Classification
Working Poc 95%
Attack Type
Info Leak | Auth Bypass
Complexity
Moderate
Reliability
Reliable
Target: CrushFTP versions below 10.7.1 and 11.1.0
No auth needed
Prerequisites: Network access to CrushFTP WebInterface · Python 3.x environment
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec SCANNER 51 stars
by airbus-cert · infoleak
https://github.com/airbus-cert/CVE-2024-4040

This repository contains scanner scripts for CVE-2024-4040, a CrushFTP VFS escape vulnerability. The scripts detect the vulnerability by attempting to read files outside the sandbox and check logs for exploitation traces.

Classification
Scanner 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: CrushFTP
No auth needed
Prerequisites: Access to CrushFTP server · Network connectivity to target
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 13 stars
by rbih-boulanouar · infoleak
https://github.com/rbih-boulanouar/CVE-2024-4040

The repository contains a functional Python exploit for CVE-2024-4040, a server-side template injection vulnerability in CrushFTP. The exploit reads arbitrary files from the filesystem by leveraging unauthenticated access and a crafted request to the '/WebInterface/function/' endpoint.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: CrushFTP versions before 10.7.1 and 11.1.0
No auth needed
Prerequisites: Target CrushFTP server with vulnerable version · Network access to the target
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 8 stars
by geniuszly · infoleak
https://github.com/geniuszly/GenCrushSSTIExploit

This repository contains a functional exploit for CVE-2024-4040, targeting a Server-Side Template Injection (SSTI) vulnerability in CrushFTP. The exploit establishes a session, retrieves authentication cookies, and leverages the SSTI to execute arbitrary commands and extract files.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: CrushFTP
Auth required
Prerequisites: Network access to the target CrushFTP server · Valid credentials or session cookies
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec SCANNER 5 stars
by gotr00t0day · infoleak
https://github.com/gotr00t0day/CVE-2024-4040

The repository contains a Python script that scans for CVE-2024-4040, a server-side template injection vulnerability in CrushFTP. It checks for the presence of a specific response pattern to determine vulnerability but does not include exploit code for remote code execution.

Classification
Scanner 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: CrushFTP versions before 10.7.1 and 11.1.0
No auth needed
Prerequisites: Network access to the target CrushFTP server
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 5 stars
by dhammerg · poc
https://github.com/dhammerg/CVE-2024-4040

This exploit targets CVE-2024-4040 in CrushFTP, leveraging a server-side template injection vulnerability to read the 'sessions.obj' file and extract valid authentication tokens. It then verifies these tokens to gain unauthorized access to user accounts.

Classification
Working Poc 95%
Attack Type
Auth Bypass
Complexity
Moderate
Reliability
Reliable
Target: CrushFTP versions before 10.7.1 and 11.1.0
No auth needed
Prerequisites: Network access to the target CrushFTP server · The 'sessions.obj' file must be accessible via the vulnerability
devstral-2 · analyzed Feb 19, 2026 Full analysis →
nomisec WORKING POC 3 stars
by entroychang · remote
https://github.com/entroychang/CVE-2024-4040

This repository contains a functional exploit for CVE-2024-4040, leveraging a malicious MySQL JDBC driver to execute arbitrary commands. The exploit embeds command execution logic within the `connect` method of a custom `NonRegisteringDriver` class, decoding and executing base64-encoded commands provided via the `user` property.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: MySQL Connector/J (JDBC Driver)
No auth needed
Prerequisites: Target application must load the malicious JDBC driver · Attacker must be able to control the JDBC connection URL or properties
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC 3 stars
by jakabakos · infoleak
https://github.com/jakabakos/CVE-2024-4040-CrushFTP-File-Read-vulnerability

The repository contains a functional Python exploit for CVE-2024-4040, a file read vulnerability in CrushFTP versions below 10.7.1 and 11.1.0. The exploit leverages improper path handling in the 'exists' command to read arbitrary files, including session tokens and configuration files.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: CrushFTP < 10.7.1, < 11.1.0
No auth needed
Prerequisites: Network access to CrushFTP WebInterface · Python 3.6+ with 'requests' library
devstral-2 · analyzed Feb 18, 2026 Full analysis →
github SCANNER 2 stars
by adminlove520 · pythonpoc
https://github.com/adminlove520/CVE-Poc_All_in_One/tree/main/2024/CVE-2024-4040

The repository contains a scanner for CVE-2024-21762, which checks for the presence of the vulnerability in Fortinet SSL VPN interfaces by sending crafted HTTP requests. It does not include exploit code but provides detection capabilities.

Classification
Scanner 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: Fortinet SSL VPN
No auth needed
Prerequisites: network access to the target Fortinet SSL VPN interface
devstral-2 · analyzed Feb 27, 2026 Full analysis →
nomisec SCANNER 1 stars
by tucommenceapousser · poc
https://github.com/tucommenceapousser/CVE-2024-4040-Scanner

This repository contains a scanner for CVE-2024-4040, a vulnerability in CrushFTP VFS allowing unauthorized file access. The scripts include a mass scanner with multithreading and a log analyzer for detecting exploitation attempts.

Classification
Scanner 90%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: CrushFTP VFS
No auth needed
Prerequisites: Network access to CrushFTP server
devstral-2 · analyzed Feb 18, 2026 Full analysis →
github WORKING POC
by dyeat · pythonpoc
https://github.com/dyeat/cve-reproduction/tree/main/CrushFTP/CrushFTP/CVE-2024-4040

The repository contains a functional Python script that exploits CVE-2024-4040, a path traversal vulnerability in CrushFTP. The exploit leverages an unauthenticated VFS sandbox escape to read arbitrary files from the server, demonstrated by reading /etc/passwd.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: CrushFTP (versions affected by CVE-2024-4040)
No auth needed
Prerequisites: Network access to the target CrushFTP server on port 8080
devstral-2 · analyzed May 22, 2026 Full analysis →
gitlab SCANNER
by mdelaclaire · poc
https://gitlab.com/mdelaclaire/CVE-2024-4040-Scanner

This repository contains a scanner for CVE-2024-4040, a vulnerability in CrushFTP VFS allowing unauthorized file access. The scripts include a mass scanner with multithreading and a log analyzer to detect exploitation attempts.

Classification
Scanner 90%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: CrushFTP VFS
No auth needed
Prerequisites: target IP/URL · network access to CrushFTP server
devstral-2 · analyzed Feb 23, 2026 Full analysis →
nomisec WORKING POC
by juanorts · poc
https://github.com/juanorts/CrushFTP10-Docker-CVE-2024-4040

The repository contains functional exploit code for CVE-2024-4040, targeting CrushFTP10. The scripts demonstrate command injection vulnerabilities in the `pcastaction_wrapper.sh` and `qlmanage_wrapper.sh` files, which are used for generating preview icons and thumbnails.

Classification
Working Poc 80%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: CrushFTP10
No auth needed
Prerequisites: Access to the target system's file system · Ability to execute scripts in the context of CrushFTP10
devstral-2 · analyzed Feb 19, 2026 Full analysis →
nomisec WORKING POC
by ill-deed · remote
https://github.com/ill-deed/CrushFTP-CVE-2024-4040-illdeed

This repository contains a functional Python exploit for CVE-2024-4040, an authentication bypass vulnerability in CrushFTP v10.x. The exploit crafts a forged CrushAuth cookie and AWS-style Authorization header to bypass authentication and access internal web functions.

Classification
Working Poc 95%
Attack Type
Auth Bypass
Complexity
Trivial
Reliability
Reliable
Target: CrushFTP v10.x
No auth needed
Prerequisites: Known valid username on the target system
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec SCANNER
by rahisec · infoleak
https://github.com/rahisec/CVE-2024-4040

This is a Nuclei template designed to detect CVE-2024-4040, a VFS sandbox escape vulnerability in CrushFTP. It sends a crafted POST request to exploit the vulnerability and checks for the presence of 'root:' in the response to confirm successful exploitation.

Classification
Scanner 90%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: CrushFTP (all versions before 10.7.1 and 11.1.0)
Auth required
Prerequisites: Access to CrushFTP WebInterface · Valid authentication credentials
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC
by safeer-accuknox · remote
https://github.com/safeer-accuknox/CrushFTP-cve-2024-4040-poc

This repository contains a functional exploit for CVE-2024-4040, targeting CrushFTP's Server-Side Template Injection (SSTI) and Local File Inclusion (LFI) vulnerabilities. The exploit automates session token extraction, SSTI exploitation, and LFI to extract sensitive files like user groups and session objects.

Classification
Working Poc 95%
Attack Type
Auth Bypass | Info Leak
Complexity
Moderate
Reliability
Reliable
Target: CrushFTP (version not explicitly specified)
No auth needed
Prerequisites: Network access to the CrushFTP WebInterface · Python environment with required libraries (requests, rich)
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec SCANNER
by olebris · infoleak
https://github.com/olebris/CVE-2024-4040

This script checks for the presence of CVE-2024-4040 by sending a crafted POST request to a target and checking for a specific response pattern. It does not exploit the vulnerability but scans for its presence.

Classification
Scanner 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: Unknown (likely a web interface with a specific vulnerability)
Auth required
Prerequisites: Target URL or list of domains · Valid authentication cookie if required
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC
by 1ncendium · infoleak
https://github.com/1ncendium/CVE-2024-4040

This repository contains a functional Python exploit for CVE-2024-4040, a server-side template injection vulnerability in CrushFTP. The exploit demonstrates unauthenticated file inclusion and vulnerability testing by leveraging the 'INCLUDE' tag in crafted HTTP requests.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: CrushFTP versions before 10.7.1 and 11.1.0
No auth needed
Prerequisites: Network access to the target CrushFTP server
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC
by Praison001 · infoleak
https://github.com/Praison001/CVE-2024-4040-CrushFTP-server

The repository contains a functional exploit for CVE-2024-4040, a server-side template injection vulnerability in CrushFTP. The exploit allows unauthenticated remote attackers to read arbitrary files from the filesystem, bypass authentication, and potentially achieve remote code execution.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: CrushFTP versions before 10.7.1 and 11.1.0
No auth needed
Prerequisites: Network access to the target CrushFTP server · CrushFTP server running a vulnerable version
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec STUB
by 0xN7y · poc
https://github.com/0xN7y/CVE-2024-4040

The repository contains only a minimal README with no exploit code, technical details, or functional content. It is a placeholder with no substantive information about CVE-2024-4040.

Classification
Stub 90%
Attack Type
Other
Complexity
Trivial
Reliability
Theoretical
Target: unknown
No auth needed
devstral-2 · analyzed Feb 18, 2026 Full analysis →
nomisec WORKING POC
by Mufti22 · infoleak
https://github.com/Mufti22/CVE-2024-4040

The repository contains a functional Python exploit for CVE-2024-4040, a server-side template injection vulnerability in CrushFTP. The PoC demonstrates unauthenticated file read capabilities by leveraging a crafted request to the '/WebInterface/function/' endpoint with a malicious 'path' parameter.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: CrushFTP versions before 10.7.1 and 11.1.0
No auth needed
Prerequisites: Target CrushFTP server with vulnerable version · Network access to the target
devstral-2 · analyzed Feb 18, 2026 Full analysis →
vulncheck_xdb WORKING POC
remote
https://github.com/Mohammaddvd/CVE-2024-4040

This exploit targets CVE-2024-4040 in CrushFTP, leveraging a server-side template injection vulnerability to read the 'sessions.obj' file and extract valid authentication tokens. It then verifies these tokens to gain unauthorized access to user accounts.

Classification
Working Poc 95%
Attack Type
Auth Bypass
Complexity
Moderate
Reliability
Reliable
Target: CrushFTP (versions before 10.7.1 and 11.1.0)
No auth needed
Prerequisites: Network access to the target CrushFTP server · The 'sessions.obj' file must be accessible via the vulnerability
devstral-2 · analyzed Feb 25, 2026 Full analysis →
metasploit WORKING POC
by remmons-r7 · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/gather/crushftp_fileread_cve_2024_4040.rb

This Metasploit module exploits an unauthenticated server-side template injection vulnerability in CrushFTP to achieve arbitrary file read as root. It leverages the 'zip' or 'exists' API functions to inject payloads that are evaluated server-side, allowing file exfiltration.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Moderate
Reliability
Reliable
Target: CrushFTP < 10.7.1, < 11.1.0, and legacy 9.x versions
No auth needed
Prerequisites: Network access to CrushFTP web interface (default port 8080) · Target file path must be known or guessable
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Nuclei Templates (1)

CrushFTP VFS - Sandbox Escape LFR
CRITICALVERIFIEDby DhiyaneshDK,pussycat0x
Shodan: html:"CrushFTP" || http.html:"crushftp"
FOFA: body="crushftp"

Scores

CVSS v3 9.8
EPSS 0.9443
EPSS Percentile 100.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation active
Automatable yes
Technical Impact total

Details

CISA KEV 2024-04-24
VulnCheck KEV 2024-04-19
InTheWild.io 2024-04-24
ENISA EUVD EUVD-2024-32605
Ransomware Use Confirmed
CWE
CWE-1336 CWE-94
Status published
Products (1)
crushftp/crushftp 10.0.0 - 10.7.1
Published Apr 22, 2024
KEV Added Apr 24, 2024
Tracked Since Feb 18, 2026