Skip to the content.

Apache CVE-2021-41773 – Path Traversal & RCE

📌 Overview

This project reproduces and analyzes CVE-2021-41773, a critical vulnerability in Apache HTTP Server 2.4.49 that allows path traversal and can lead to remote code execution (RCE) when CGI is misconfigured.

The objective was to understand why the vulnerability works, its real-world limitations, and the role of server configuration in exploitability.


🎯 Objectives


🧠 Methodology

Environment

Exploitation Flow

  1. Identify vulnerable Apache version
  2. Validate directory traversal via encoded paths
  3. Enable and abuse CGI execution
  4. Invoke /bin/sh through traversal
  5. Execute arbitrary commands remotely

🛡️ Observations


📘 Key Takeaways


🔒 Ethics

All testing was performed in isolated, controlled environments strictly for educational and research purposes.