Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2021-41773: Path Traversal and Conditional RCE in Apache HTTP Server 2.4.49

Published Oct 5, 2021 · Updated 11 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days11 mentions · peak 2 in a dayToday
CVSS9.8Critical · v3.1
EPSS100.0%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendors
Apache Software FoundationNetAppFedora ProjectOracle Corporation
IdentifiersCVE-2021-41773CWE-22 · Improper Limitation of a Pathname…

CVE-2021-41773 is a path traversal vulnerability introduced by a path normalization change in Apache HTTP Server 2.4.49. Improper handling of URL-encoded dot characters allows crafted requests to access files outside directories configured by Alias-like directives when those files lack effective access restrictions. If CGI execution is enabled for the affected aliased paths, exploitation can also permit remote code execution. The vulnerability has been exploited in the wild. Versions earlier than 2.4.49 are unaffected by this flaw. The incomplete fix in version 2.4.50 is tracked separately as CVE-2021-42013.

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 can disclose server files accessible to the Apache worker process, potentially exposing application configuration, credentials, and other sensitive information. Under CGI-enabled configurations that permit access to executable targets, attackers can execute arbitrary commands with the privileges of the server's execution context. Observed exploitation has supported malware deployment, cryptomining, credential theft, and botnet propagation; these follow-on outcomes depend on the compromised system's permissions and environment.

Mitigation

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

Enforce default-deny filesystem access using Require all denied outside explicitly authorized directories, and review Alias-like mappings for overly broad access grants. Disable CGI execution for affected mappings where it is unnecessary. Use tested reverse-proxy, WAF, or IPS rules to block traversal attempts as a temporary control while patching, and restrict network access to exposed servers where feasible.

Remediation

Patch, then assume compromise.

Upgrade Apache HTTP Server to a currently supported release containing complete fixes for both CVE-2021-41773 and CVE-2021-42013, or apply the corresponding vendor security update. Do not rely on version 2.4.50 as the final remediation because its path traversal fix was incomplete. Verify the installed package's patch status and review effective directory authorization and CGI configuration after updating.

Public exploits

Exploits

74 exploits validated by Mallory's analysis. Hidden: 43 rejected by Mallory's analysis as not a working exploit; 4 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.

View more in app →
apache_normalize_path_rce.rbThis repository contains a single Metasploit exploit module targeting Apache HTTP Server versions 2.4.49 and 2.4.50, specifically exploiting the path traversal and remote command execution vulnerabilities (CVE-2021-41773 and CVE-2021-42013). The module leverages a crafted HTTP request to a CGI-enabled endpoint (default: /cgi-bin) to traverse directories and execute arbitrary commands or drop a payload on the target system. The exploit supports both in-memory command execution and dropping a binary payload (such as Meterpreter) to disk. The code is written in Ruby and follows the standard Metasploit module structure, with configurable options for the CVE, traversal depth, and target URI. The attack vector is network-based, requiring only HTTP(S) access to the vulnerable server. The module is weaponized, allowing for flexible payload delivery and session handling.Disclosed May 10, 2021 · Framework: metasploit · ruby · networkWeaponizedapache_normalize_pathThis repository contains two Metasploit modules (an auxiliary scanner and an exploit) targeting the Apache HTTP Server vulnerabilities CVE-2021-41773 and CVE-2021-42013. The vulnerabilities affect Apache versions 2.4.49 and 2.4.50, allowing unauthenticated attackers to perform path traversal, read arbitrary files, and achieve remote code execution (RCE) if CGI is enabled. The auxiliary module (apache_normalize_path.rb) checks for vulnerability, attempts file read, and tests for RCE. The exploit module (apache_normalize_path_rce.rb) delivers a payload (either a Meterpreter reverse shell or arbitrary command) by exploiting the path traversal flaw to access /bin/sh via crafted HTTP requests. The modules are highly weaponized, supporting both file disclosure and full RCE, and are designed for use within the Metasploit framework. The repository also includes detailed markdown documentation and setup instructions for creating a vulnerable lab environment using Docker. The main attack vector is network-based, targeting HTTP endpoints (typically /cgi-bin) on vulnerable Apache servers. Key fingerprintable endpoints include the /cgi-bin path, /etc/passwd for file disclosure, and /bin/sh for command execution. The exploit is operational and can be used to gain full control over affected systems.Zeop-CyberSec · Disclosed Oct 6, 2021 · Framework: metasploit · ruby · networkWeaponizedCVE-2021-41773This repository provides two Python proof-of-concept exploits for CVE-2021-41773, a path traversal and remote code execution vulnerability in Apache HTTP Server 2.4.49. The first script (CVE-2021-41773.py) checks if a target is vulnerable by attempting to read /etc/passwd via a crafted HTTP GET request exploiting path traversal. The second script (CVE-2021-41773_RCE.py) attempts remote code execution by sending a POST request to a crafted CGI path, executing arbitrary shell commands and optionally providing an interactive shell. The repository also includes a Docker environment (Dockerfile and httpd.conf) for testing the exploit against a vulnerable Apache 2.4.49 instance. The main attack vector is network-based, targeting HTTP endpoints on the vulnerable server. The exploit is operational, providing both file read and RCE capabilities, and is specific to Apache HTTP Server 2.4.49 on Linux platforms.AssassinUKG · Disclosed Oct 6, 2021 · python · dockerfile · networkOperationalscarce-apache2This repository contains a Bash script ('scarce.sh') that automates the detection and exploitation of CVE-2021-41773, a path traversal and remote code execution vulnerability in Apache HTTP Server 2.4.49/2.4.50. The script provides a menu-driven interface for scanning single or multiple targets for LFI and RCE vulnerabilities. It uses crafted HTTP requests to test for LFI by attempting to access '/etc/passwd' and for RCE by sending commands to '/cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/bash'. If the server is vulnerable and mod_cgi is enabled, arbitrary commands can be executed remotely. The script supports both single-target and mass-target modes, reading targets from a user-supplied file. The repository is structured with a main Bash script, a README, a license file, and an image directory. The exploit is operational, providing both detection and exploitation capabilities for the targeted Apache vulnerability.HightechSec · Disclosed Oct 7, 2021 · bash · networkOperationalSimplesApachePathTraversalThis repository provides a Python-based tool for testing Apache HTTP Server and Apache Flink installations for path traversal vulnerabilities (CVE-2021-41773, CVE-2021-42013, CVE-2020-17519). The main script (main.py) orchestrates multi-threaded HTTP(S) requests to a list or range of target IPs, using a set of crafted path traversal payloads defined in assets/exploits.json. The tool attempts to access sensitive files (such as /etc/passwd) by exploiting improper input validation in vulnerable servers. Results are logged to output files, with successful exploitation attempts recorded in output/vuln.txt. The codebase is modular, with separate modules for threading, HTTP requests, file handling, and optional Shodan integration. The tool is operational and can be used to automate the detection and exploitation of these specific path traversal vulnerabilities across multiple targets.MrCl0wnLab · Disclosed Oct 13, 2021 · python · networkOperationalapache-httpd-path-traversal-checkerThis repository provides a Python script ('apache-httpd-path-traversal.py') that exploits path traversal vulnerabilities in Apache HTTP Server versions 2.4.49 and 2.4.50 (CVE-2021-41773 and CVE-2021-42013). The script can check single or multiple URLs for vulnerability, attempt to read arbitrary files (such as /etc/passwd), and, if CGI is enabled, execute arbitrary commands on the server. It uses several path traversal payloads and supports both file read and RCE modes. The script is multi-threaded for batch testing and allows customization of target directories and payloads. The repository includes a README with usage instructions, a sample 'urls.txt' for batch mode, and a 'batch_result' directory for output. The main attack vector is network-based HTTP requests targeting exposed Apache directories. The exploit is operational and can be used for both detection and exploitation, depending on the configuration of the target server.theLSA · Disclosed Oct 15, 2021 · python · networkOperationalCVE-2021-41773This repository contains a Bash script (CVE-2021-41773.sh) that serves as a proof-of-concept exploit for CVE-2021-41773, a path traversal and remote code execution vulnerability in Apache HTTP Server versions 2.4.49 and 2.4.50. The script provides an interactive menu allowing the user to choose between two attack modes: (1) launching a reverse shell to the attacker's machine, or (2) reading arbitrary files from the target server via path traversal. The exploit works by sending specially crafted HTTP requests to the target's /cgi-bin/ directory, abusing double URL encoding to bypass path restrictions. The script requires the attacker's machine to have netcat and gnome-terminal installed for reverse shell functionality. The README.md provides usage instructions, requirements, and references to the CVE. The repository is straightforward, with the main exploit logic contained in a single Bash script, and is intended for demonstration and testing purposes against vulnerable Apache installations.MazX0p · Disclosed Oct 25, 2021 · bash · markdown · networkOperationalCVE-2021-41773This repository contains a Python exploit script (exploit.py) and a README for CVE-2021-41773, a path traversal and remote code execution vulnerability in Apache HTTP Server 2.4.49. The exploit script allows an attacker to interactively execute arbitrary shell commands on a vulnerable server by sending crafted HTTP POST requests to a path-traversed /cgi-bin/.%2e/%2e%2e/.../bin/sh endpoint. The script takes a target IP or domain as input and provides a pseudo-interactive shell. The README provides context, usage information, and screenshots. The exploit targets Apache HTTP Server 2.4.49 and leverages a network-based attack vector. The main fingerprintable endpoint is the crafted CGI path used for command execution.thehackersbrain · Disclosed Mar 12, 2022 · python · networkOperationalPath-traversal-RCE-Apache-2.4.49-2.4.50-ExploitThis repository contains a Python exploit script (main.py) targeting path traversal and remote code execution vulnerabilities in Apache HTTP Server versions 2.4.49 and 2.4.50 (CVE-2021-41773 and CVE-2021-42013). The exploit works by sending crafted HTTP requests to URLs on the target server, attempting to traverse directories and access sensitive files such as /etc/passwd. If CGI is enabled on the server, the script can escalate to remote code execution by sending POST requests to /cgi-bin endpoints, executing arbitrary shell commands (e.g., via /bin/bash). The script first checks the server version via HTTP headers, then attempts both file disclosure and RCE payloads depending on the configuration. The repository includes a README with background on the vulnerabilities, a requirements.txt for dependencies (requests, termcolor), and a standard MIT license. The main entry point is main.py, which takes a file containing target URLs and automates the exploitation process. No hardcoded IPs or domains are present; the script is designed to be used against user-supplied targets.CalfCrusher · Disclosed Apr 4, 2022 · python · networkOperationalCVE-2021-41773This repository provides a working exploit for CVE-2021-41773, a critical vulnerability in Apache HTTP Server 2.4.49 that allows for path traversal and unauthenticated remote code execution. The main exploit script (CVE-2021-41773.rb) is written in Ruby and sends a crafted HTTP POST request to a vulnerable Apache server, exploiting improper path normalization and a misconfigured directory directive to execute arbitrary shell commands via the CGI interface. The repository includes a Dockerfile and a custom httpd.conf to facilitate local testing of the vulnerability. The README provides background on the vulnerability, exploitation conditions, and usage instructions. The exploit is operational and demonstrates both file read and command execution capabilities against a properly misconfigured and vulnerable Apache 2.4.49 instance.Habib0x0 · Disclosed Jun 7, 2022 · ruby · dockerfile · networkOperationalCVE-2021-41773This repository contains a Go-based exploit for CVE-2021-41773, a path traversal and remote code execution vulnerability in Apache HTTP Server versions 2.4.49 and 2.4.50. The main.go file is the core of the exploit, providing both proof-of-concept (PoC) and exploit (exp) functionality. It allows the user to: - Test a single URL or a list of URLs for the vulnerability by attempting to read /etc/passwd via a crafted path traversal request. - If the target is vulnerable, execute arbitrary shell commands on the server by sending a POST request to a crafted /cgi-bin/.%2e/%2e%2e/%2e%2e/bin/sh endpoint. - Output vulnerable URLs to a file when scanning in bulk. The exploit is operational, providing both file read and command execution capabilities. The code is structured with clear functions for URL handling, vulnerability checking, and exploitation. The readme.md provides usage instructions and context. No hardcoded IPs or domains are present; the tool is designed for user-supplied targets.aqiao-jashell · Disclosed Nov 1, 2022 · go · networkOperationalpy-CVE-2021-41773This repository provides a Python-based proof-of-concept and exploit for CVE-2021-41773, a path traversal and remote code execution vulnerability in Apache HTTP Server 2.4.49/2.4.50. The structure includes three main Python files: 'get.py' (for path traversal to read /etc/passwd), 'post.py' (for remote code execution via POST to /cgi-bin/.%2e/%2e%2e/.../bin/bash), and 'main.py' (the entry point, handling command-line arguments and orchestrating the attack). The exploit can test single URLs or batch test from a file, and optionally output vulnerable URLs. The payloads leverage crafted HTTP requests to exploit the vulnerability, allowing both file read and arbitrary command execution if the target is vulnerable. No hardcoded IPs or domains are present; the user supplies the target URL(s).aqiao-jashell · Disclosed Nov 1, 2022 · python · networkOperationalApache-HTTP-Server-2.4.49-2.4.50-Path-Traversal-Remote-Code-ExecutionThis repository contains a Python exploit script (exploit.py) targeting Apache HTTP Server versions 2.4.49 and 2.4.50, specifically for CVE-2021-41773 and CVE-2021-42013. The exploit provides two main capabilities: (1) arbitrary file read via path traversal, and (2) remote code execution (RCE) via a crafted POST request to a vulnerable CGI endpoint. The script takes command-line arguments for the target host, port, operation (rce or file), and the command or file path. It constructs specific URL payloads to exploit the vulnerabilities and provides an interactive shell for further exploitation. The repository is structured with a single exploit script, a README with usage instructions, and a license file. No hardcoded IPs or domains are present; the script dynamically targets user-specified hosts. The exploit is operational, providing a working payload for both file read and RCE, and is not part of a larger framework.blackn0te · Disclosed Nov 22, 2022 · python · networkOperationalCVE-2021-41773-MSFThis repository contains multiple exploit modules, primarily Metasploit modules (1.rb, 2.rb, apache_rce.rb), as well as supporting scripts in Python (uploader.py, exploit.py), Java (ReverseShell.java), and Ruby (uploader.rb, insert.rb). The main focus is on exploiting file upload vulnerabilities and path traversal issues in web servers, particularly targeting Apache HTTP Server vulnerabilities CVE-2021-41773 and CVE-2021-42013. The exploits work by uploading a malicious payload (webshell or command execution script) to the target server via a file upload endpoint (e.g., /fileupload.php), then accessing the uploaded file through a crafted URL that abuses path traversal or CGI handling to execute arbitrary commands. The Java ReverseShell.java automates the process of generating payloads and uploading them, while uploader.py and uploader.rb handle the actual file upload and execution steps. The payloads are typically PHP or Python scripts that execute arbitrary OS commands, providing the attacker with remote code execution capabilities. The repository is operational and provides working exploit code for remote code execution via web application vulnerabilities.belajarqywok · Disclosed Aug 11, 2023 · Framework: metasploit · ruby · python · networkOperationalApache-HTTP-Server-2.4.50-RCEThis repository contains a Python exploit script (50512.py) targeting Apache HTTP Server 2.4.50 for CVE-2021-41773 and CVE-2021-42013. The exploit checks if the target server is running the vulnerable Apache version by inspecting HTTP headers. If the server is vulnerable, it attempts two attacks: (1) directory traversal to read /etc/passwd, and (2) remote code execution (RCE) if CGI is enabled, by sending a reverse shell payload to /cgi-bin/.%%32%65.../bin/bash. The attacker must provide a file with target URLs and specify their own IP and port for the reverse shell. The repository includes a README with usage instructions, a requirements file for dependencies, and a BSD license. The exploit is operational, providing a working reverse shell if successful, and is intended for educational use only.Zyx2440 · Disclosed Aug 26, 2024 · python · networkOperationalCVE-2021-41773This repository contains three Python scripts and a README for exploiting CVE-2021-41773, a path traversal and remote code execution vulnerability in Apache HTTP Server 2.4.49/2.4.50. The main script (cve-2021-41773.py) performs mass scanning of targets for the vulnerability by attempting to read /etc/passwd using a crafted URL. The second script (cve-2021-41773_RCE.py) attempts remote code execution by POSTing shell commands to a specially encoded CGI path, checking for successful execution by looking for 'Linux' in the response. The third script (cve-2021-41773_manual.py) allows interactive command execution on a single target. All scripts use Python's requests library and multiprocessing for concurrent scanning. The exploit targets Apache servers with mod_cgi enabled and not properly patched for CVE-2021-41773, and can both read sensitive files and execute arbitrary commands remotely. The repository is operational and provides working exploit code for both detection and exploitation.FakesiteSecurity · Disclosed Jan 3, 2025 · python · networkOperationalCVE-2021-41773This repository contains a Python exploit script (exploit.py) and a README.md for CVE-2021-41773 and CVE-2021-42013, which are critical path traversal vulnerabilities in Apache HTTP Server versions 2.4.49 and 2.4.50. The exploit.py script allows an attacker to perform Local File Inclusion (LFI) to read arbitrary files or Remote Code Execution (RCE) if CGI is enabled on the target server. The script provides an interactive shell for both LFI and RCE modes, allowing repeated file reads or command execution. The attack is performed by sending crafted HTTP requests with encoded traversal sequences to endpoints such as /cgi-bin/.%2e/%2e%2e/.../bin/sh for RCE or /cgi-bin/.%2e/%2e%2e/.../<file> for LFI. The README provides usage instructions and highlights the affected and patched Apache versions. The repository is operational and ready for use in penetration testing or research against vulnerable Apache HTTP Server instances.r0otk3r · Disclosed Jul 5, 2025 · python · networkOperationalCVE-2021-41773This repository contains a proof-of-concept Bash script (exploit.sh) that exploits CVE-2021-41773, a path traversal and remote code execution vulnerability in Apache HTTP Server 2.4.49. The script takes three arguments: the target base URL, the attacker's listener IP, and the listener port. It crafts a POST request using curl to a specially constructed path traversal endpoint that ultimately invokes /bin/sh on the target server. The payload sent causes the server to open a reverse shell back to the attacker's machine. The repository is minimal, containing only a license, a README with usage instructions, and the exploit script. The exploit is operational and provides a working reverse shell if the target is vulnerable and properly configured.mah4nzfr · Disclosed Aug 11, 2025 · bash · networkOperationalCVE-2021-41773This repository contains a Python exploit script (CVE-2021-41773.py) and a README.md. The script targets Apache HTTP Server 2.4.49 vulnerable to CVE-2021-41773, which allows path traversal and remote code execution via crafted requests to the CGI handler. The exploit takes user input for the target IP/hostname, port, command to execute, and optionally the binary to use (default /bin/sh) and HTTPS usage. It constructs a POST request to a path-traversed CGI endpoint (e.g., /cgi-bin/.%2e/%2e%2e/.../bin/sh) with a payload that executes the supplied command. The output of the command is returned to the attacker. The README provides usage examples and describes the exploit's purpose. The repository is a straightforward, operational proof-of-concept for remote code execution against vulnerable Apache servers.gunzf0x · Disclosed Oct 7, 2025 · python · networkOperationalCVE-2021-41773This repository contains a working exploit for CVE-2021-41773, a path traversal and remote code execution vulnerability in Apache HTTP Server 2.4.49. The repository consists of two files: a README.md with usage instructions and vulnerability details, and exploit.py, a Python script that automates detection and exploitation. The exploit first checks if the target is vulnerable by attempting to read /etc/passwd using crafted path traversal URLs. If vulnerable, it constructs a reverse shell payload in multiple languages (bash, python, perl, php, nc, socat, telnet, zsh, awk, sh) and sends it to the target via a POST request to a path-traversed /bin/sh endpoint. Successful exploitation results in a reverse shell to the attacker's machine. The exploit is operational, providing a real payload and automating the attack process. The main attack vector is network-based, targeting HTTP(S) endpoints on the vulnerable server. The code is standalone and not part of a larger framework.adrianmafandy · Disclosed Oct 31, 2025 · python · markdown · networkOperationalcve-2021-42013Repository purpose: a Python PoC/exploit helper for Apache httpd path traversal and optional CGI-based RCE affecting 2.4.49 (CVE-2021-41773) and 2.4.50 (CVE-2021-42013), plus a Docker lab to spin up a vulnerable 2.4.50 instance. Structure: - cve-2021-42013.py: main exploit script. It performs a HEAD request to the target to read the `Server` header and chooses payloads based on whether the version string contains “49” or “50”; otherwise it tries both CVEs. It supports: - Path traversal check/PoC (-pt): requests a crafted /icons/ traversal URL and considers the target vulnerable if response contains "root:". - RCE check/PoC (-rce): POSTs to a crafted /cgi-bin/ traversal URL ending in /bin/sh with body "echo;id" and considers the target vulnerable if response contains "uid=". - Bulk scanning (-l): iterates over a list of URLs. - Dockerfile: builds Apache httpd 2.4.50 from source on Ubuntu 20.04, installs it to /, copies in httpd.conf, and runs httpd in foreground. - httpd.conf: Apache configuration intended to be vulnerable for testing; README notes enabling CGI-BIN and adding an Alias for "icons" to make traversal testing possible. - README.md: usage examples and lab setup instructions. Notable implementation details/limitations: - The script is primarily a PoC/verification tool (hardcoded checks and command `id`), not a full interactive shell. - It relies on the `Server` header substring matching ("49"/"50"), which may be absent/modified; in that case it falls back to trying both payload styles. - The traversal/RCE endpoints are relative to the user-supplied base URL (e.g., http(s)://host:port + payload path).ranasen-rat · Disclosed Jan 24, 2026 · python · dockerfile · network (HTTP) unauthenticated path traversal and CGI-based RCE against Apache httpd 2.4.49/2.4.50OperationalPoC-Apache-CVE-2021-41773-Infrastructure-LABRepository purpose: a self-contained Docker lab and Python PoC exploit for Apache HTTP Server 2.4.49 CVE-2021-41773 (path traversal leading to file read and, when CGI is enabled, RCE). Key exploit capabilities (exploit.py): - Sends non-normalized raw HTTP requests using Python stdlib http.client to preserve encoded traversal sequences (.%2e). - Vulnerability check: POST to /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh and reads /etc/passwd to confirm exposure. - Arbitrary file read: runs `cat <filepath>` via /bin/sh. - RCE: executes arbitrary shell commands supplied via -c. - Interactive pseudo-shell: repeatedly issues separate HTTP requests to execute commands. Lab environment structure: - docker-compose.yml defines three services: nginx reverse proxy (80:80), vulnerable apache (8888:80), and mysql:5.7 on a backend network. It intentionally includes insecure practices (containers run as root, secrets in environment variables). - apache/Dockerfile pins httpd:2.4.49 and enables mod_cgi/mod_cgid; installs mysql-client for post-exploitation/pivot demonstration. - apache/httpd.conf is intentionally vulnerable: <Directory /> Require all granted and ScriptAlias /cgi-bin/ with ExecCGI enabled. - nginx/nginx.conf proxies to Apache using proxy_pass http://apache_backend$request_uri to pass the raw URI (helping the encoded traversal reach Apache) and leaks version via server_tokens on. - mysql/init.sql seeds demo data and grants root access from any host ('root'@'%') with a known password; includes example “sensitive” values. Overall, this is an operational PoC exploit plus a reproducible vulnerable stack to demonstrate unauthenticated traversal-to-RCE, secret extraction from container environments (e.g., /proc/1/environ), and potential pivoting to MySQL using exposed credentials.ISabbiI · Disclosed Feb 11, 2026 · python · yaml · networkOperationalLFI-DestructionRepository purpose: a modular Python-based LFI exploitation framework (“LFI-Destruction v5.2”) intended for authorized penetration testing. It targets generic LFI primitives in web apps and chains them into file disclosure, credential harvesting, and multiple LFI→RCE techniques. Structure & key files: - LFI-Destruction.py: main entry point and core engine. Implements interactive configuration (target URL, LFI type path vs param, traversal depth, encoding, headers/cookies/proxy, OS selection) and runs Mode 1 & Mode 2 directly. Also dynamically loads additional modes (3–5) from separate Python modules. - mode3_phpinfo_race.py: Mode 3 (beta) automates discovery of phpinfo() endpoints using OS-specific path wordlists, parses phpinfo output for upload constraints, then attempts a classic upload temp-file race to obtain a temporary filename (e.g., /tmp/phpXXXX or C:/Windows/Temp/phpXXXX.tmp) and includes it via LFI to execute a PHP payload; on success it can proceed to a reverse shell. - mode4_upload_trigger.py: Mode 4 (beta) attempts to include an already-uploaded PHP webshell via LFI. Supports a single operator-provided path or brute-force of common upload locations; verifies execution via ?cmd=id/whoami and can then attempt a reverse shell. - mode5_session_grabber.py: Mode 5 (beta) attempts to locate PHP session.save_path (fallback wordlists for Linux/Windows), optionally enumerate session files via directory listing, download sess_* files via LFI, and attempt php://filter/convert.base64-decode to recover readable session contents for hijacking. - encoding_patterns.json / headers.json / user_agents.txt / cookies.txt / proxies.txt: supporting data for traversal/encoding variants, header profiles (including spoofed client IP headers), and operator convenience for authenticated testing and proxying. - install_dependencies.sh: installs colorama (and optionally requests/bs4/urllib3) and creates local directories (artifacts, etc.). Exploit capabilities (by mode): 1) Artifact fuzzing / file disclosure: enumerates likely user directories (Linux/Windows) and attempts to retrieve sensitive files via LFI (SSH keys, browser credential stores, cloud credentials, etc.), saving results under ./artifacts/. 2) Log poisoning → RCE: injects PHP into log sinks via configurable vectors (User-Agent/Referer/XFF/custom header/parameter), then includes candidate log files via LFI to execute system($_GET['cmd']); validates with a test command and can deliver a reverse shell (bash or PowerShell) including a customizable command template. 3) phpinfo() race LFI2RCE: finds phpinfo(), confirms file_uploads and size constraints, races to capture the upload tmp_name and includes it via LFI to execute PHP payload; then offers reverse shell. 4) Uploaded file trigger: includes an existing webshell via LFI and executes commands via ?cmd=. 5) Session grabbing: reads and optionally enumerates PHP session files to facilitate session hijacking; attempts base64 decode wrapper bypass. Notable observables: the repo includes example target URLs (192.168.1.100 and target.com:8443) and many local filesystem paths used as LFI targets (session directories, upload locations, PHP temp paths). No hardcoded attacker C2 is present; reverse shell destinations are operator-supplied at runtime.RevShellXD · Disclosed Feb 11, 2026 · python · bash · network · network · networkOperationalLFI-SSH-FuzzerRepository purpose: a Python-based interactive LFI/path traversal fuzzer focused on discovering and exfiltrating SSH artifacts from a vulnerable web server via file-read primitives. Key files and structure (11 files): - LFI-SSH-FUZZER.py: main tool. Implements an interactive scanner with options for advanced mode, user-agent rotation, rate limiting, proxy support, custom headers, cookie handling, timeouts, traversal depth, and redirect handling. It targets two LFI styles: (1) path-segment traversal and (2) query-parameter LFI. It confirms LFI by reading /etc/passwd, parses usernames, then attempts to locate and download SSH-related files for those users. - encoding_patterns.json: database of traversal encodings/obfuscations, including Apache-specific patterns for CVE-2021-41773 and CVE-2021-42013, plus PHP wrapper examples (php://filter, data://). - headers.json: header profiles for “bypass”/testing (X-Forwarded-For, CF headers, debug headers, etc.) to help reach internal-only routes or evade simplistic controls. - proxies.txt, cookies.txt, user_agents.txt: operator convenience lists for routing through tools (Burp/ZAP/Tor), supplying authenticated cookies, and rotating UAs. - README.md and quick_reference.md: usage notes; explicitly claims support for Apache 2.4.49/2.4.50 traversal (CVE-2021-41773) and SSH key discovery. - install_dependencies.sh: installs Python deps (colorama; optionally requests/bs4/urllib3) and creates local directories (artifacts/, config_examples/, tests/). Exploit capabilities (actionable): - Network-based exploitation of LFI/path traversal to read arbitrary local files. - Automated enumeration: reads /etc/passwd, extracts users, then hunts for SSH artifacts (keys and related files) and downloads them locally. - Bypass/fuzzing support: multiple traversal encodings (single/double/triple encoding, unicode slashes, Windows backslashes), Apache traversal variants, null-byte/wrapper patterns, and header/cookie/proxy features to operate against authenticated or filtered endpoints. No hardcoded victim infrastructure is present beyond example targets and local proxy endpoints; the actual target host/URL is provided interactively/through CLI arguments.RevShellXD · Disclosed Feb 11, 2026 · python · bash · network (HTTP/HTTPS) - LFI/path traversal fuzzing against a user-supplied target endpoint (path-segment or query-parameter based), including Apache 2.4.49/2.4.50 traversal variants and multiple encoding/bypass patternsOperationalexploitApacheSmall single-script Python exploit repository targeting Apache HTTP Server path traversal/RCE vulnerabilities CVE-2021-41773 and CVE-2021-42013. The repository contains only four files: a standard .gitignore, GPL license, a minimal README naming the Apache CVE, and the main exploit script exploit.py. The exploit script is the only code file and serves as the entry point. The script accepts four command-line arguments: target host, target port, attacker IP, and attacker port. It constructs an HTTP URL pointing to a traversal path under /cgi-bin/ that resolves to /bin/bash on the target: /cgi-bin/.%2e/.../bin/bash. It then sends a POST request using the local curl binary via subprocess.run, with a payload that prints a CGI header and launches an interactive bash reverse shell to the attacker using /dev/tcp. This makes the exploit an active RCE exploit rather than a detector. Operationally, the exploit depends on a vulnerable Apache configuration where CGI execution is reachable and the traversal flaw can be used to execute /bin/bash. It also assumes a Unix-like target with bash available and outbound network access from the victim to the attacker listener. There is no target validation, no vulnerability check, no payload customization beyond command-line callback parameters, and no error handling beyond catching subprocess exceptions. Overall, this is a straightforward proof-of-concept/operational reverse-shell exploit for vulnerable Apache 2.4.49/2.4.50 deployments.Nanxsec · Disclosed Mar 15, 2026 · python · networkOperational
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
Apache Software FoundationApache HTTP Serverapplication
Fedora ProjectFedoraoperating_system
NetAppCloud Backupapplication
Oracle CorporationInstantis Enterprisetrackapplication
FAQ

Frequently asked questions

Is CVE-2021-41773 exploited in the wild?
Yes. As of Nov 7, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2021-41773?
Yes. Mallory tracks 74 public exploits or proofs of concept for CVE-2021-41773, the earliest disclosed May 10, 2021.
Is there a patch for CVE-2021-41773?
Upgrade Apache HTTP Server to a currently supported release containing complete fixes for both CVE-2021-41773 and CVE-2021-42013, or apply the corresponding vendor security update. Do not rely on version 2.4.50 as the final remediation because its path traversal fix was incomplete.
What products are affected by CVE-2021-41773?
Apache Software Foundation Apache HTTP Server, NetApp Cloud Backup, Fedora Project Fedora, and Oracle Corporation Instantis Enterprisetrack.
How severe is CVE-2021-41773?
CVE-2021-41773 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 7, 2026.
Activity feed

Recent activity

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

View more in app →
+33 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 evidence2Every report linking this CVE to a named adversary.
Associated malware19Malware families linked to this CVE, with evidence and IOCs.
Detection signatures6YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity121Community discussion across Reddit, Mastodon, and other social sources.