Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50

Published Oct 7, 2021 · 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
EPSS100.0%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendors
Apache Software FoundationNetAppFedora ProjectOracle Corporation
IdentifiersCVE-2021-42013CWE-22 · Improper Limitation of a Pathname…

CVE-2021-42013 is a path traversal vulnerability in Apache HTTP Server 2.4.49 and 2.4.50 associated with the incomplete fix for CVE-2021-41773. Crafted URL paths, including double-encoded traversal sequences, bypass path normalization restrictions and map requests to files outside directories configured by Alias-like directives. File access succeeds when the target resources are not protected by the default "Require all denied" configuration. If CGI execution is enabled for the affected aliased paths, exploitation can also permit remote code execution. Versions earlier than 2.4.49 are not affected.

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 files outside the intended served directories, subject to Apache authorization rules and operating-system permissions. With CGI enabled and permissive access controls, an attacker can execute arbitrary commands with the privileges of the server's CGI execution context, compromising the confidentiality, integrity, and availability of accessible resources. Exploitation has been used for cryptomining malware deployment and botnet propagation, including Zerobot and Enemybot.

Mitigation

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

Enforce "Require all denied" for filesystem locations outside explicitly authorized served directories, and review Alias-like directives and authorization overrides for unintended access. Disable CGI execution on affected aliased paths where it is unnecessary; this reduces the remote-code-execution risk but does not independently eliminate file disclosure. Restrict network exposure and deploy WAF or IPS virtual-patching rules that recognize encoded and double-encoded traversal attempts while permanent updates are prepared.

Remediation

Patch, then assume compromise.

Apply the vendor fixes for CVE-2021-42013 by upgrading affected Apache HTTP Server installations to a supported, patched release. Apache HTTP Server 2.4.50 is not an adequate remediation because its fix for CVE-2021-41773 was incomplete. Update affected bundled Apache components through the relevant product vendor's security updates.

Public exploits

Exploits

28 exploits validated by Mallory's analysis. Hidden: 11 rejected by Mallory's analysis as not a working exploit; 3 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 · networkWeaponizedSimplesApachePathTraversalThis 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-42013This repository provides a working exploit for CVE-2021-42013 (and CVE-2021-41773) affecting Apache HTTP Server versions 2.4.49 and 2.4.50. The main exploit script, cve-2021-42013.py, is a Python tool that can test for and exploit both path traversal and remote code execution vulnerabilities. It supports single-target and bulk scanning modes. The exploit works by sending specially crafted HTTP requests to vulnerable endpoints: for path traversal, it attempts to read sensitive files like /etc/passwd via the /icons/ alias; for RCE, it targets the /cgi-bin/ directory to execute arbitrary shell commands. The repository includes a Dockerfile and a vulnerable httpd.conf to facilitate local testing, allowing users to spin up a vulnerable Apache instance. The exploit is operational, providing real file read and command execution capabilities if the target is vulnerable. No framework is used; the code is standalone.walnutsecurity · Disclosed Oct 27, 2021 · python · docker · networkOperationalCVE-2021-42013-Apache-RCE-Poc-ExpThis repository provides a Python-based exploit and detection tool for Apache HTTP Server CVE-2021-42013, which affects versions 2.4.49 and 2.4.50. The exploit leverages insufficient path traversal protections to read arbitrary files (such as /etc/passwd) and, if CGI is enabled, to achieve remote code execution by sending crafted HTTP requests to /cgi-bin/bin/sh. The main script, check.py, reads a list of target IPs from ip.txt and attempts both file read and RCE exploits against each. The tool prints out which targets are vulnerable and provides the output of successful exploits. The repository includes a README.md with detailed usage instructions, vulnerability background, and example payloads. The only code file is check.py, which contains both proof-of-concept and exploit logic. The attack vector is network-based, targeting HTTP(S) endpoints. The repository is operational, providing working exploit code and detection capabilities.asaotomo · Disclosed Dec 23, 2021 · 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 · 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-42013-EXPLOITThis repository contains a Python-based proof-of-concept exploit for CVE-2021-42013, a critical remote code execution vulnerability affecting Apache HTTP Server versions 2.4.49 and 2.4.50. The exploit leverages a path traversal flaw in the handling of URLs by the server, specifically targeting the '/cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/.%%32%65/bin/sh' endpoint to bypass directory restrictions and execute arbitrary commands if CGI is enabled. The main script, 'CVE-2021-42013.py', provides both scanning and exploitation capabilities: it can test single or multiple targets for vulnerability and, if successful, deliver a bash reverse shell payload to the attacker's specified host and port. The exploit requires the attacker to provide a target URL, local host, and port for the reverse shell. The repository also includes a README.md with background information, exploitation details, and mitigation advice. The exploit is operational, providing a working reverse shell if the target is vulnerable and properly configured.K3ysTr0K3R · Disclosed Aug 25, 2023 · python · networkOperationalcve-2021-42013-apacheThis repository contains a Python exploit script (exploit.py) targeting CVE-2021-42013, a remote code execution vulnerability in Apache HTTP Server 2.4.50. The exploit works by sending a crafted POST request to a path-traversed CGI endpoint (/cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/bin/sh) on the target server, with the body containing a shell command to execute. The script connects directly to the target using a raw socket, constructs the HTTP request manually, and displays the output of the executed command. The repository also includes a README.md with usage instructions and a requirements.txt listing the 'colorama' dependency. The exploit demonstrates operational capability, as it allows arbitrary command execution on vulnerable servers.dream434 · Disclosed Jul 16, 2024 · 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-42013This repository provides a working proof-of-concept exploit for CVE-2021-42013, a critical path traversal and remote code execution vulnerability in Apache HTTP Server versions 2.4.49 and 2.4.50. The repository includes a Dockerfile to build a vulnerable Apache environment, a custom httpd.conf for configuration, a Bash exploit script (cve-2021-42013.sh), and a README with detailed usage instructions. The exploit script leverages a crafted HTTP request to the /cgi-bin/ path with encoded traversal sequences, allowing attackers to read arbitrary files or execute arbitrary commands if CGI is enabled. The README demonstrates how to use the script to read /etc/passwd, execute shell commands, and obtain a reverse shell. The attack vector is network-based, targeting HTTP endpoints exposed by the vulnerable Apache server. The repository is operational and suitable for security research and testing in controlled environments.asepsaepdin · Disclosed Jan 30, 2025 · bash · docker · networkOperationalPOC-CVE-2021-42013-EXPLOITThis repository contains a Python exploit script (POC-CVE.py) targeting the Apache HTTP Server Path Traversal and Remote Code Execution vulnerability (CVE-2021-42013). The exploit leverages a double-encoded path traversal sequence to access the /cgi-bin/ directory and execute arbitrary commands via /bin/sh. The script features an interactive menu with two main modes: 'scan_file' for mass scanning of targets listed in a file, and 'exploit' for direct exploitation of a single target. Upon successful exploitation, the script delivers a reverse shell payload (customized for Linux or Windows) to the attacker's specified LHOST and LPORT, providing remote command execution capabilities. The script includes advanced logging, progress bars, and user prompts for ease of use. The repository also contains a README.md with detailed usage instructions, legal disclaimers, and technical background, as well as a requirements.txt listing the necessary Python dependencies. No hardcoded IPs or domains are present; the main fingerprintable endpoint is the crafted path traversal URL used in the exploit. The exploit is operational and suitable for authorized penetration testing or research in controlled environments.Makavellik · Disclosed Sep 5, 2025 · python · networkOperationalApache-CVE-2021-42013-RCE-ExploitThis repository contains a Python exploit (exploit.py) targeting Apache HTTP Server vulnerabilities CVE-2021-41773 (path traversal) and CVE-2021-42013 (remote code execution). The exploit leverages a curl backend to reliably bypass URL encoding issues and execute arbitrary commands on vulnerable Apache servers. It supports multiple exploitation modes: single command execution, interactive shell, reverse shell generation (with several payload types), and system reconnaissance. The exploit is operational and requires the attacker to specify the target URL and, for reverse shells, the attacker's IP and port. The main attack vector is network-based, exploiting a crafted HTTP POST request to a path traversal endpoint that ultimately executes commands via /cgi-bin/.%%32%65/.%%32%65/.%%32%65/.%%32%65/bin/sh. The code is self-contained, requires only Python 3.6+, curl, and netcat, and is cross-platform. The README provides detailed usage instructions and describes the vulnerabilities and their impact. No hardcoded IPs or domains are used for targeting, but the exploit does use 8.8.8.8 to determine the local IP address for reverse shell setup.FakhriCRD · Disclosed Oct 28, 2025 · python · 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.50OperationalLFI-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 · networkOperationalcve-2021-42013The repository contains four files: a README, one Python exploit script with embedded shell payloads, a Docker Compose lab definition, and an Apache configuration. It is a standalone operational exploit, not a framework module or merely a detector. exploit.py invokes curl through subprocess.getoutput, sends an encoded traversal POST to /bin/sh, checks for the QWERTY execution marker, and then sends a fixed Bash reverse-shell payload with configurable callback parameters. It does not implement a separate file-disclosure mode despite the README discussing that capability of the underlying vulnerability. CVE-2021-41773 is referenced as the predecessor vulnerability; the stated exploit target is CVE-2021-42013. The lab specifically uses httpd:2.4.50. Important discrepancies include README instructions using a positional target although the script requires three named options, a Python 3.10 minimum not stated in the README, and a Docker port publication that is not restricted to localhost despite the isolation claims. The displayed httpd.conf is truncated, so its critical authorization and CGI directives cannot be confirmed. The probe follows redirects and disables TLS certificate verification, whereas the exploitation request does neither. User-provided values are interpolated into local shell commands without safe quoting, creating an additional local command-injection risk when inputs are untrusted. No execution or successful exploitation was verified. Repository URL, revision, and archive size were not supplied; empty strings and zero represent unavailable metadata, not a measured empty repository.lmcewen9 · Disclosed May 12, 2026 · python · bash · web · networkOperationalCVE-2021-42013Repository contains a standalone Python PoC for CVE-2021-42013 targeting Apache HTTP Server 2.4.50, plus a Docker-based lab environment and explanatory documentation. The main exploit file is exploit/PoC_2021_42013.py, which uses urllib3 to send crafted HTTP requests containing a double-URL-encoded traversal sequence ('%%32%65%%32%65/' repeated 5 times) to bypass Apache 2.4.50's incomplete fix for CVE-2021-41773. The script supports two modes: traversal mode performs arbitrary file read against a hardcoded target file (/etc/passwd) via the /traversal alias; RCE mode targets /cgi-bin/ with traversal to /bin/sh and POSTs a CGI-compatible shell script body that executes an attacker-supplied command and returns stdout/stderr. This is a real exploit, not merely a detector. The repository structure is small and clear: README.md explains the vulnerability and usage, analysis.md provides root-cause and patch-bypass details, exploit/PoC_2021_42013.py is the operational PoC, and setup/ contains docker-compose.yml, a deliberately vulnerable Apache httpd.conf, and setup.sh to launch a local Apache 2.4.50 lab. The vulnerable lab configuration explicitly enables 'Require all granted' globally, exposes /traversal, and enables mod_cgi under /cgi-bin/, which are the exact conditions needed for the exploit to succeed.Joapath · Disclosed Jun 24, 2026 · python · yaml · web · networkOperationalCVE-2021-42013Repository is a small self-contained lab and PoC for Apache HTTP Server CVE-2021-42013, demonstrating unauthenticated path traversal leading to arbitrary file read and CGI-based remote command execution. Structure: README.md and EXPLAIN.md provide detailed Korean-language vulnerability explanation, exploitation rationale, and usage instructions; docker-compose.yml launches a vulnerable httpd:2.4.50 container on localhost:8080; httpd.conf supplies the Apache configuration needed for the vulnerable scenario; poc.py and poc.sh are the practical exploit entry points. The exploit logic is straightforward: repeat the double-encoded traversal segment '%%32%65%%32%65/' four times to escape the web root, then request '/etc/passwd' through an Alias-like path ('/static/') or invoke '/bin/sh' through a ScriptAlias-like CGI path ('/cgi-bin/') with a POST body containing shell commands. This is an operational PoC rather than a framework module: it includes a working payload and a reproducible Docker environment, but payload customization is minimal. Notable findings: the Python PoC appears partially truncated/corrupted in the provided content around the Content-Type header assignment, but the intended exploit flow is still clear from surrounding code and the shell PoC. The repository is clearly malicious-capable exploit code, not merely detection, because it actively performs exploitation and returns sensitive file contents and command output.eunho87 · Disclosed Jul 8, 2026 · python · bash · network · webOperationalCVE-2021-42013_821311This repository is a compact proof-of-concept and lab environment for CVE-2021-42013 affecting Apache HTTP Server 2.4.50. It contains two Bash exploit scripts under cve-2021-42013/exploit/: lfi.sh performs local file inclusion/arbitrary file read using double URL encoded traversal through the /icons/ Alias path, and rce.sh performs remote command execution by POSTing a shell command to a traversal path that resolves to /bin/bash through /cgi-bin/. Both scripts use curl with --path-as-is to preserve the crafted traversal sequence .%%32%65, which double-decodes into dot segments. The repository also includes two Dockerized Apache environments: a vulnerable container based on httpd:2.4.50 and a fixed container based on httpd:2.4.51. The vulnerable setup enables mod_cgi, exposes ScriptAlias /cgi-bin/, grants broad access, and includes a sample CGI script (cgi-bin/test.sh) to demonstrate CGI functionality. The fixed setup uses the same general configuration but upgrades the Apache version to 2.4.51. The overall purpose is to demonstrate both file disclosure and command execution conditions for CVE-2021-42013 and to provide a reproducible environment for testing vulnerable versus patched behavior.andreamammano89-maker · Disclosed Aug 19, 2026 · bash · dockerfile · web · networkOperationalvulhub-httpd-cve-2021-42013This is a deliberately vulnerable Vulhub-derived training environment with valid exploit requests documented in app/README.md and app/README.zh-cn.md, rather than a standalone exploit program. Double-encoded '.%%32%65' traversal bypasses the incomplete CVE-2021-41773 fix, enabling file disclosure and CGI-mediated command execution. The hardcoded demonstration executes echo;id; it does not establish a reverse shell, despite the CTF objective mentioning a shell. Apache 2.4.49 and 2.4.50 are documented as affected, but only 2.4.50 is instantiated. The 32 files include 24 code or executable infrastructure/configuration files: seven Terraform modules, five shell scripts, one Ruby Vagrantfile, two Dockerfiles and nine YAML deployment/workflow files. Perl appears inline in the application Dockerfile. app/ contains the vulnerable build, original Compose deployment and bilingual walkthroughs; base/ records the upstream image Dockerfile. isoloom.yml is the central lab specification. .isoloom/ contains generated Docker and Kubernetes deployments, check runners, Vagrant/Proxmox support and six cloud-provider deployments. .ctf/ holds challenge metadata, .github/ provides validation and approval-gated publishing, and the root documentation records licensing and upstream provenance. The application Dockerfile explicitly enables CGI/CGID and autoindex and changes root-directory authorization to Require all granted. checks/version.sh only verifies the Apache/2.4.50 Server header and icons alias; generated checks verify availability and internet isolation, not successful exploitation. Docker removes the default route through a sidecar, while Kubernetes uses network policies whose enforcement depends on the cluster networking implementation. Cloud firewalls restrict SSH and published HTTP access to a supplied CIDR. The rm -rf commands are scoped CI cleanup and VM project replacement, not evidence of a fake exploit. No fixed attacker callback, persistence mechanism or exfiltration service is present. Isoloom and Vulhub are deployment/lab tooling here, not an exploit framework. Static analysis only was performed. The original analyzed repository URL, analyzed ref and archive size were not supplied; their fields use empty strings and zero. The listed file sizes total 84,992 bytes, which is not an archive-size measurement. UPSTREAM.md separately identifies the Vulhub source commit as 8fd63916f7a8711e2e01dda0d27237e4d6175d38.CyberCTF · Disclosed Oct 8, 2026 · sh · ruby · web · networkOperationalCVE-2021-41773This five-file repository is a Docker-based exploitation laboratory, not a framework module or standalone exploit program. README.md contains executable curl demonstrations for CVE-2021-41773 and the CVE-2021-42013 bypass, including file disclosure, command execution, and a hardcoded reverse shell. docker-compose.yml defines a fixed-address victim on bridge br-labcve without published host ports and disables bridge IP masquerading. Additional firewall isolation is documented as a manual step, rather than enforced by Compose itself. victima/Dockerfile uses a two-stage Debian build to compile a selectable Apache version, checks its downloaded archive against a downloaded SHA-256 checksum, and plants fictitious secrets for disclosure testing. The two Apache configuration files contrast permissive filesystem-root authorization with a deny-by-default mitigation; both retain CGI support. The mitigated configuration also suppresses detailed version headers, but access denial is the relevant traversal mitigation. Apache 2.4.51 is documented as a corrected comparison version, not a vulnerable target. The two build/orchestration files are counted as code files; shell examples are embedded in the README, and the remaining files are Apache configuration. No execution results are provided, so successful exploitation is not independently verified. No repository URL, revision, or archive size was supplied; their empty or zero values represent unavailable metadata.R3leant · Disclosed Nov 9, 2026 · dockerfile · yaml · web · networkOperationalCVE-2021-42013The repository contains a standalone Python 3 exploit (exploit.py, 1,687 bytes) and documentation (README.md, 705 bytes). It uses only standard-library modules and does not belong to an exploitation framework. The script accepts a target host, repeatedly prompts for commands, and sends hand-built HTTP POST requests to TCP port 80. An encoded traversal under /cgi-bin/ attempts to reach /bin/sh, while the request body supplies a CGI content-type header followed by the requested command. A special 'shell' input constructs a bash reverse shell using a separately supplied callback host and port. There is a material attribution mismatch: the repository URL names CVE-2021-42013, but its single-encoded traversal is characteristic of CVE-2021-41773 against Apache 2.4.49, rather than the double-encoded bypass associated with Apache 2.4.50. Successful execution also depends on permissive filesystem access and CGI configuration. The README demonstrates www-data execution, but that output is not independent verification. The implementation has no vulnerability precheck, TLS support, configurable target port, timeout, or automatic listener. It assumes a response containing a matching text/plain header; a nonmatching response causes an exception. Content-Length is calculated from characters rather than encoded bytes, which can mishandle non-ASCII commands. README examples invoke poc.py although the supplied file is exploit.py. No persistence, credential theft, or unrelated destructive behavior is present. Repository URL and branch are inferred from the documented download URL; archive size was not supplied, so size_bytes is recorded as 0.wvverez · Disclosed Nov 21, 2026 · python · webOperationalCVE-2021-41773_CVE-2021-42013This repository contains a Bash proof-of-concept exploit (PoC.sh) and a README.md for Apache HTTP Server versions 2.4.49 and 2.4.50, targeting CVE-2021-41773 and CVE-2021-42013. The exploit leverages a path traversal vulnerability in the cgi-bin endpoint, allowing attackers to read arbitrary files (such as /etc/passwd) or achieve remote code execution by sending crafted HTTP POST requests with encoded traversal sequences. The script takes a list of target URLs and a file path or command to execute, iterating over each target and issuing the exploit request. The README provides usage instructions and context. The main attack vector is network-based, exploiting HTTP endpoints. The repository is structured simply, with one Bash exploit script and documentation.Ls4ss · Disclosed Oct 6, 2021 · bash · 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
Apache Software FoundationApache HTTP Serverapplication
Fedora ProjectFedoraoperating_system
NetAppCloud Backupapplication
Oracle CorporationInstantis Enterprisetrackapplication
Oracle CorporationJD Edwards EnterpriseOne Toolsapplication
Oracle CorporationSecure Backupapplication
FAQ

Frequently asked questions

Is CVE-2021-42013 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 Nov 3, 2021.
Is there a public exploit for CVE-2021-42013?
Yes. Mallory tracks 28 public exploits or proofs of concept for CVE-2021-42013, the earliest disclosed May 10, 2021.
Is there a patch for CVE-2021-42013?
Apply the vendor fixes for CVE-2021-42013 by upgrading affected Apache HTTP Server installations to a supported, patched release. Apache HTTP Server 2.4.50 is not an adequate remediation because its fix for CVE-2021-41773 was incomplete.
What products are affected by CVE-2021-42013?
Apache Software Foundation Apache HTTP Server, NetApp Cloud Backup, Fedora Project Fedora, Oracle Corporation Instantis Enterprisetrack, Oracle Corporation JD Edwards EnterpriseOne Tools, and 1 more.
How severe is CVE-2021-42013?
CVE-2021-42013 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

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

View more in app →
+14 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 evidence3Every report linking this CVE to a named adversary.
Associated malware8Malware 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 activity6Community discussion across Reddit, Mastodon, and other social sources.