Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2024-23692: Unauthenticated template-injection RCE in Rejetto HTTP File Server

Published May 31, 2024 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS99.5%100th percentile
CISA KEVYesAdded Jul 9, 2024
In the wildActivePer CISA KEV
Vendor
Rejetto
IdentifiersCVE-2024-23692CWE-1336 · Improper Neutralization of Special…

CVE-2024-23692 is a server-side template injection vulnerability in Rejetto HTTP File Server (HFS) 2.x. Versions up to and including 2.3m are affected, and successful exploitation has also been reported against 2.4.0 RC7. HFS incorporates attacker-controlled HTTP search input into response templates. Improper escaping allows crafted input to introduce template symbols and macros, ultimately invoking the exec macro to execute operating system commands. Exploitation requires neither authentication nor user interaction and executes commands with the privileges of the account running HFS. The affected 2.x branch is unsupported.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits arbitrary command execution within the HFS process account's security context, potentially enabling system compromise, data theft, malware deployment, and service disruption. Observed attacks associated with this vulnerability include cryptocurrency mining, remote-access malware installation, information stealing, creation of persistent local accounts, and termination of the HFS service. CISA lists the vulnerability as known exploited and has marked its use in ransomware campaigns as known.

Mitigation

If you can’t patch tonight, do this now.

Isolate vulnerable installations from untrusted networks and restrict access through network segmentation and strict access controls until replacement is complete. Where continued operation is unavoidable, use compensating controls such as a WAF, strict access logging, and enhanced monitoring for suspicious HTTP requests, command execution, malware installation, and unauthorized accounts. Discontinue use if adequate mitigations cannot be implemented.

Remediation

Patch, then assume compromise.

Replace unsupported HFS 2.x installations with an up-to-date, supported HFS 3.x release or another maintained file-sharing solution. No patch is available for the unsupported 2.x branch. Decommission affected deployments if migration is not possible. Investigate previously exposed systems for compromise: upgrading prevents future exploitation of this flaw but does not remove existing malware, unauthorized accounts, or persistence.

Public exploits

Exploits

11 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
rejetto_hfs_rce_cve_2024_23692.rbThis repository contains a single Metasploit module targeting CVE-2024-23692, an unauthenticated remote code execution (RCE) vulnerability in Rejetto HTTP File Server (HFS) version 2.x for Windows. The exploit leverages a server-side template injection (SSTI) flaw in the 'search' query parameter, allowing an attacker to execute arbitrary commands as the user running the HFS process. The module is weaponized, supporting customizable payloads via Metasploit, and does not require authentication. The main entry point is the Ruby file 'modules/exploits/windows/http/rejetto_hfs_rce_cve_2024_23692.rb', which implements all logic for detection and exploitation. The exploit interacts with the target over HTTP (default port 80), and the only required endpoint is the base URI of the HFS web application. The code is well-structured, with clear separation of check and exploit routines, and is suitable for operational use within the Metasploit framework.Disclosed May 25, 2024 · Framework: metasploit · ruby · networkWeaponizedCVE-2024-23692This repository contains a Python proof-of-concept exploit for CVE-2024-23692, which targets a Server-Side Template Injection (SSTI) vulnerability in a web application. The main script, 'CVE-2024-23692.py', reads a list of target URLs from 'xxx.txt', then sends specially crafted HTTP GET requests to each URL, attempting to execute the 'ipconfig /all' command on the server. If the response contains multiple 'RESULT' markers, the script considers the target vulnerable and logs the URL to 'vul_url'. The exploit uses multithreading for efficiency and routes requests through a local proxy at 127.0.0.1:7890. The README provides a sample HTTP request and describes the expected output. No specific product is named, but the exploit is tailored for systems vulnerable to CVE-2024-23692.NanoWraith · Disclosed Jun 11, 2024 · python · networkOperationalCVE-2024-23692-RCE-in-Rejetto-HFSThis repository provides exploit and detection scripts for CVE-2024-23692, a critical unauthenticated remote code execution (RCE) vulnerability in Rejetto HTTP File Server (HFS) version 2.3m. The repository contains three files: a README.md with usage instructions and vulnerability details, 'exploit.py' (the main exploit script), and 'detect.py' (a detection script). Both Python scripts construct a specially crafted HTTP GET request targeting the vulnerable HFS server. The exploit script allows the user to specify a target IP, port, and arbitrary command to execute on the server, leveraging the '.exec' template feature in HFS to achieve code execution. The detection script uses a default harmless command ('calc') to check for vulnerability. The exploit is unauthenticated and works over the network, requiring only that the target HFS instance is accessible. No hardcoded IPs or domains are present; the scripts are generic and require user-supplied targets.jakabakos · Disclosed Jun 13, 2024 · python · networkOperationalCVE-2024-23692This repository contains a Python exploit script (exploit.py) targeting the Rejetto HTTP File Server (HFS) template injection vulnerability (CVE-2024-23692). The exploit allows remote, unauthenticated attackers to execute arbitrary system commands on vulnerable HFS servers (version 2.3m and earlier) by sending a specially crafted HTTP GET request. The script supports both single and batch exploitation modes, accepts a custom command to execute (defaulting to 'whoami'), and can save successful results to a file. The main attack vector is network-based, leveraging HTTP(S) requests to the target server. The repository also includes a README with detailed usage instructions and a LICENSE file. The exploit is operational, providing real command execution on the target, and is intended for authorized security testing and research.vanboomqi · Disclosed Jun 13, 2024 · python · networkOperationalCVE-2024-23692This repository provides a Bash exploit script (CVE-2024-23692.sh) targeting the Rejetto HFS (HTTP File Server) vulnerability CVE-2024-23692, a server-side template injection (SSTI) flaw that allows remote code execution. The script takes three arguments: the target server's IP address, port, and a command to execute. It crafts a malicious HTTP GET request exploiting the SSTI vulnerability, sending it to the target using netcat. The README.md explains the vulnerability, its impact, usage instructions (including how to obtain a reverse shell using msfvenom), and mitigation steps. The exploit is operational, allowing arbitrary command execution or reverse shell access on vulnerable HFS servers. The repository is simple, containing the exploit script, a README, and an image directory.Mr-r00t11 · Disclosed Jun 14, 2024 · bash · networkOperationalCVE-2024-23692This repository is a Go-based exploit for CVE-2024-23692, targeting Rejetto HTTP File Server (HFS) versions <= 2.3 on Windows. The exploit leverages a template injection vulnerability in HFS to achieve unauthenticated remote command execution. The main entry point is 'hfs.go', which provides a CLI interface for detection, command execution, and DNSLOG-based out-of-band verification. The exploit constructs a specially crafted GET request to the target HFS server, injecting a payload that triggers the '.exec' template to run arbitrary system commands. The output is parsed and displayed to the user. For detection in environments where direct output is not possible, the tool supports DNSLOG verification using ceye.io or a custom DNSLOG service, configurable via 'config/config.ini'. The codebase is modular, with separate packages for configuration, DNSLOG interaction, HTTP client handling (including proxy support), and argument parsing. The exploit is operational, providing both detection and exploitation capabilities, and is not part of a larger framework.BBD-YZZ · Disclosed Jun 17, 2024 · go · networkOperationalCVE-2024-23692-EXPThis repository provides an exploit and detection template for CVE-2024-23692, a critical remote code execution vulnerability in Rejetto HTTP File Server (HFS). The repository contains three files: a Bash exploit script (CVE-2024-23692.sh), a Nuclei detection template (CVE-2024-23692.yaml), and a README.md with usage instructions. The Bash script takes a target URL and a command, crafts a malicious HTTP GET request exploiting template injection in HFS, and executes arbitrary commands on the target using PowerShell, returning the output. The Nuclei template is designed for automated detection, sending a similar payload and checking for DNS interactions and response content. The exploit is operational, providing real command execution on vulnerable targets, and is suitable for both manual and automated exploitation or detection.0x20c · Disclosed Jun 18, 2024 · bash · yaml · networkOperationalhfs-checkThis standalone Python repository implements detection and exploitation of CVE-2024-23692 in Rejetto HFS, with documentation focused on version 2.3m. Its four files are an MIT license, two Russian-language Markdown guides, and the sole executable script, hfs_check.py. The supplied file sizes total 29,439 bytes; the archive size and Git reference were not supplied, so size_bytes is an unknown-value placeholder and ref is empty. The repository URL is taken from the documented clone command. Visible code first fetches the root page and fingerprints the Server header. In batch mode, an HFS 2.x banner gates a separate template-evaluation probe: a randomized cookie value must appear alongside an evaluated version string. This distinguishes demonstrated macro execution from banner-only identification. Other outcomes include HTML-encoded macro reflection, an unconfirmed vulnerability, a non-HFS banner, and connection errors. The probe does not intentionally change server state, but a positive probe demonstrates template evaluation rather than independently proving OS command execution. The exploitation path uses the HFS exec macro with decimal character encoding to submit operator-selected commands. Output is captured and extracted between RESULT: and ==== delimiters, then HTML-unescaped. Visible wrappers support Windows cmd commands and UTF-16LE/Base64-encoded PowerShell. Requests use raw IPv4 TCP sockets, plaintext HTTP/1.1, connection-close response collection, timeouts, and retries. No fixed command-and-control destination, downloader, persistence mechanism, or destructive payload is visible. Retrying execution requests can run a command more than once. Documentation describes target files, port lists and ranges, common-port selection, an interactive shell with PowerShell detection and remembered working directory, local command history, and JSONL results. The visible main-function tail confirms JSONL output, optional command execution after a positive check, and additional checks following negative results. However, the supplied Python content is truncated in the middle, omitting most argument parsing and shell implementation; those capabilities cannot be fully verified from source. The documented shell is request-based rather than a persistent PTY. Banner gating, response parsing, template customization, and the documented command-length limit can cause missed detections or unreliable execution. This is substantive exploit code rather than merely a detector, although it was not executed or independently validated.Lolicks · Disclosed Nov 17, 2026 · python · network · webOperationalhfs2xrayThis standalone repository contains four files: an MIT license, a Russian-language README, one Python exploit/deployment script, and a saved VLESS connection link. It targets CVE-2024-23692 in Rejetto HFS, with a workflow combining vulnerability detection, optional remote command execution, and documented Xray proxy deployment. The visible Python code sends raw HTTP over IPv4 sockets, fingerprints the Server header, and tests template evaluation with a randomized cookie. Command execution uses HFS exec and chr macros, with output extracted from response markers. The main routine supports optional command execution and calls deploy() after a positive vulnerability check. It records per-target verdicts and results as JSONL. The script is therefore more than a detection tool, and the visible code is consistent with a genuine exploit rather than an unrelated or fake payload. According to the README, deployment installs one VLESS Reality inbound, selects among ports 443/80/8080, creates a firewall rule and an automatically starting service, and attempts UAC-bypass or reduced-privilege fallback behavior. It also warns that taking over an occupied HFS port can terminate the RCE channel. These deployment details cannot be independently confirmed because a substantial middle section of hfs2xray.py, including deploy(), is truncated. No payload download URL or specific UAC-bypass mechanism is visible. Notable artifacts include hardcoded Reality private/public key constants and a short ID, making potential key reuse a concern if those constants are used in deployment. The bundled VLESS link instead uses security=none on port 9999, inconsistent with the documented Reality configuration; it should be treated as a saved artifact, not proof of successful current deployment. No repository URL, Git reference, or archive size was supplied; empty strings and zero represent unavailable metadata.Lolicks · Disclosed Nov 17, 2026 · python · network · webOperationalCVE-2024-23692This repository provides a proof-of-concept (POC) exploit for CVE-2024-23692, a critical unauthenticated remote code execution vulnerability in Rejetto HTTP File Server (HFS) version 2.3m. The main exploit is implemented as a Bash script (CVE-2024-23692.sh) that takes a target URL and a command to execute. The script crafts a malicious HTTP GET request, injecting a base64-encoded PowerShell command via the vulnerable endpoint. If the target is vulnerable, the command is executed on the server, and the output is returned to the attacker. The repository includes a README with usage instructions and context about the vulnerability, and a LICENSE file. The exploit is straightforward, does not require authentication, and targets Windows systems running HFS 2.3m. No hardcoded IPs or domains are present; the user supplies the target URL. The attack vector is network-based, exploiting the HTTP interface of the HFS server.verylazytech · Disclosed Sep 15, 2024 · bash · networkPoCCVE-2024-23692_ExploitThis repository provides a proof-of-concept (POC) exploit for CVE-2024-23692, a command execution vulnerability in Rejetto HFS (HTTP File Server) version 2.3 and below. The main exploit is implemented in 'poc.py', a Python script that takes a target URL and a command as arguments. It crafts a GET request to the HFS server, injecting a base64-encoded PowerShell command via the 'cmd' parameter in the URL. The script uses unique markers to extract and display the output of the executed command from the server's response. The exploit requires the target to be running a vulnerable version of HFS and accessible over the network. The repository also includes a README with a brief description and a .gitignore file. No hardcoded IPs or domains are present; the target URL is supplied by the user at runtime.999gawkboyy · Disclosed Mar 6, 2025 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
RejettoHttp File Serverapplication
FAQ

Frequently asked questions

Is CVE-2024-23692 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jul 9, 2024.
Is there a public exploit for CVE-2024-23692?
Yes. Mallory tracks 11 public exploits or proofs of concept for CVE-2024-23692, the earliest disclosed May 25, 2024.
Is there a patch for CVE-2024-23692?
Replace unsupported HFS 2.x installations with an up-to-date, supported HFS 3.x release or another maintained file-sharing solution. No patch is available for the unsupported 2.x branch.
What products are affected by CVE-2024-23692?
Rejetto Http File Server.
How severe is CVE-2024-23692?
CVE-2024-23692 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.5% (100th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

23 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
cryptika blogNews · Oct 7, 2026Anthropic Mythos AI Finds Rejetto HFS Flaw That Lets Attackers Forge Admin Sessions and Execute Code | Cryptika CybersecurityAn unauthenticated template-injection vulnerability enabling remote code execution in older Rejetto HFS releases. It is mentioned as historical background, not as part of the newly disclosed exploit chain.Read more ↗cyber security newsNews · Oct 7, 2026Anthropic Mythos AI Finds Rejetto HFS Flaw That Lets Attackers Forge Admin Sessions and Execute CodeAn unauthenticated template-injection vulnerability enabling remote code execution in older Rejetto HFS releases. It is mentioned as historical background, not as part of the newly disclosed exploit chain.Read more ↗security affairsNews · Oct 5, 2026Anthropic Mythos Found A Bug in Rejetto HFS. Attackers Are Now Exploiting It. - Security AffairsAn unauthenticated template-injection vulnerability in Rejetto HFS that can lead to remote code execution. The article mentions its inclusion in CISA’s Known Exploited Vulnerabilities catalog as historical context, rather than as part of the current attack chain.Read more ↗mkd cirtNews · Oct 5, 2026Напаѓачи ја таргетираат ранливоста во Rejetto HFS која овозможува фалсификување на администраторска сесија и RCE | MKD-CIRT | Национален центар за одговор на компјутерски инцидентиA critical vulnerability in Rejetto HTTP File Server, rated CVSS 9.8, mentioned as historical context for the newer flaw. Multiple threat actors exploited it in July 2024 to deliver cryptocurrency miners, trojans, and HATVIBE malware. The content does not describe its underlying technical cause.Read more ↗
+13 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence4Every report linking this CVE to a named adversary.
Associated malware17Malware families linked to this CVE, with evidence and IOCs.
Detection signatures4YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity3Community discussion across Reddit, Mastodon, and other social sources.