HomePentest-Tools.com Logo

Apache Server - Remote Code Execution (CVE-2021-41773)

CVSSv3 Score
Exploitable with Sniper
Vulnerability description

Apache server is affected by a Remote Code Execution vulnerability, located on the /cgi-bin endpoint. If CGI (mod-cgi) has been explicitly enabled on the server and files outside the document root are not protected with the "require all denied" configuration, an unauthenticated remote attacker can access arbitrary binaries from the file system (ex. /bin/sh) and execute commands on the server. The root cause of this vulnerability consists in a change done to the path normalization code in version 2.4.49 of Apache Server. Only this specific version is affected.

Exploit capabilities

Sniper can gain unauthenticated Remote Code Execution on the target system and extract multiple artefacts as evidence.

Risk description

The risk exists that a remote unauthenticated attacker can fully compromise the server in order to steal confidential information, install ransomware or pivot to the internal network.


Upgrade the Apache server to a version equal or higher than 2.4.51.

Detectable with
Network Scanner
Vuln date
Oct 2021
Published at
Updated at
Software Type
Web server
Not available