Advisories · Web servers
CVE-2021-41773
High
CVSS 7.5
Actively exploited
Apache httpd path traversal
Disclosed 2021 · Last reviewed 2 Dec 2026
A request could map outside the document root on 2.4.49 when directory traversal checks were bypassed. CGI setups could also run code.
What happened
The alias and path normalization in 2.4.49 accepted encoded dot segments.
Affected and patched versions
- Affected
- Apache HTTP Server 2.4.49. 2.4.50 was an incomplete fix and is tracked separately.
- Patched
- Apache httpd 2.4.51 and later.
How to check your server
Check
apachectl -v
How to fix and harden
- Run apachectl -v or httpd -v.
- Upgrade to 2.4.51 or later. 2.4.50 is not the fix.
- Review whether CGI is enabled. The file-read bug and the code-execution case are different outcomes of the same release.
Fix
apachectl -v
Sources
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON