.. / CVE-2021-41773

Exploit for Apache 2.4.49 - Path Traversal and Remote Code Execution (CVE-2021-41773)

Description:

A flaw was found in a change made to path normalization in Apache HTTP Server 2.4.49. An attacker could use a path traversal attack to map URLs to files outside the expected document root. If files outside of the document root are not protected by “require all denied” these requests can succeed. Additionally, this flaw could leak the source of interpreted files like CGI scripts. This issue is known to be exploited in the wild. This issue only affects Apache 2.4.49 and not earlier versions.

Nuclei Template

View the template here CVE-2021-41773.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2021/CVE-2021-41773.yaml
Copy

References:

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41773
https://github.com/blasty/CVE-2021-41773
https://twitter.com/h4x0r_dz/status/1445401960371429381
https://twitter.com/ptswarm/status/1445376079548624899
https://nvd.nist.gov/vuln/detail/CVE-2021-41773
https://github.com/apache/httpd/commit/e150697086e70c552b2588f369f2d17815cb1782