CVE-2021-41773Path traversal and file disclosure vulnerability in Apache HTTP Server 2.4.49
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 directories configured by Alias-like directives. If files outside of these directories are not protected by the usual default configuration "require all denied", these requests can succeed. If CGI scripts are also enabled for these aliased pathes, this could allow for remote code execution. This issue is known to be exploited in the wild. This issue only affects Apache 2.4.49 and not earlier versions. The fix in Apache HTTP Server 2.4.50 was found to be incomplete, see CVE-2021-42013.
What to do
This CVE is being exploited in the wild (CISA Known Exploited Vulnerabilities, added 2021-11-03). If you run an affected version, patch or mitigate now.
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | apache2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | apache2 | Not affected vulnerable_code_not_present | ||
| Debian 14 | apache2 | Fixed | 2.4.50-1 | DEBIAN-CVE-2021-41773 |
| Debian 13 | apache2 | Fixed | 2.4.50-1 | DEBIAN-CVE-2021-41773 |
| Debian 12 | apache2 | Fixed | 2.4.50-1 | DEBIAN-CVE-2021-41773 |
| Red Hat Enterprise Linux 9 | httpd | Not affected | ||
| Red Hat Enterprise Linux 9 | httpd-core | Not affected | ||
| Red Hat Enterprise Linux 9 | httpd-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | httpd-filesystem | Not affected | ||
| Red Hat Enterprise Linux 9 | httpd-manual | Not affected | ||
| Red Hat Enterprise Linux 9 | httpd-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | mod_ldap | Not affected | ||
| Red Hat Enterprise Linux 9 | mod_lua | Not affected | ||
| Red Hat Enterprise Linux 9 | mod_proxy_html | Not affected | ||
| Red Hat Enterprise Linux 9 | mod_session | Not affected | ||
| Red Hat Enterprise Linux 9 | mod_ssl | Not affected | ||
| Red Hat Enterprise Linux 8 | httpd | Not affected | ||
| Red Hat Enterprise Linux 8 | httpd-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | httpd-filesystem | Not affected | ||
| Red Hat Enterprise Linux 8 | httpd-manual | Not affected | ||
| Red Hat Enterprise Linux 8 | httpd-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | mod_http2 | Not affected | ||
| Red Hat Enterprise Linux 8 | mod_ldap | Not affected | ||
| Red Hat Enterprise Linux 8 | mod_md | Not affected | ||
| Red Hat Enterprise Linux 8 | mod_proxy_html | Not affected | ||
| Red Hat Enterprise Linux 8 | mod_session | Not affected | ||
| Red Hat Enterprise Linux 8 | mod_ssl | Not affected | ||
| Red Hat Enterprise Linux 7 | httpd | Not affected | ||
| Red Hat Enterprise Linux 7 | httpd-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | httpd-manual | Not affected | ||
| Red Hat Enterprise Linux 7 | httpd-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | mod_ldap | Not affected | ||
| Red Hat Enterprise Linux 7 | mod_proxy_html | Not affected | ||
| Red Hat Enterprise Linux 7 | mod_session | Not affected | ||
| Red Hat Enterprise Linux 7 | mod_ssl | Not affected | ||
| Red Hat Enterprise Linux 6 | httpd | Not affected | ||
| Red Hat Enterprise Linux 6 | httpd-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | httpd-manual | Not affected | ||
| Red Hat Enterprise Linux 6 | httpd-tools | Not affected | ||
| Red Hat Enterprise Linux 6 | mod_ssl | Not affected | ||
| Alpine Linux 3.24 | apache2 | Fixed | 2.4.50-r0 | ALPINE-CVE-2021-41773 |
| Alpine Linux 3.23 | apache2 | Fixed | 2.4.50-r0 | ALPINE-CVE-2021-41773 |
| Alpine Linux 3.22 | apache2 | Fixed | 2.4.50-r0 | ALPINE-CVE-2021-41773 |
| Alpine Linux 3.21 | apache2 | Fixed | 2.4.50-r0 | ALPINE-CVE-2021-41773 |
| Alpine Linux 3.20 | apache2 | Fixed | 2.4.50-r0 | ALPINE-CVE-2021-41773 |
| Alpine Linux 3.19 | apache2 | Fixed | 2.4.50-r0 | ALPINE-CVE-2021-41773 |
| Alpine Linux 3.18 | apache2 | Fixed | 2.4.50-r0 | ALPINE-CVE-2021-41773 |
| Alpine Linux 3.17 | apache2 | Fixed | 2.4.50-r0 | ALPINE-CVE-2021-41773 |
| Alpine Linux 3.16 | apache2 | Fixed | 2.4.50-r0 | ALPINE-CVE-2021-41773 |
| Alpine Linux 3.15 | apache2 | Fixed | 2.4.50-r0 | ALPINE-CVE-2021-41773 |
| Alpine Linux 3.14 | apache2 | Fixed | 2.4.50-r0 | ALPINE-CVE-2021-41773 |
| Alpine Linux 3.13 | apache2 | Fixed | 2.4.50-r0 | ALPINE-CVE-2021-41773 |
| Alpine Linux 3.12 | apache2 | Fixed | 2.4.50-r0 | ALPINE-CVE-2021-41773 |
| Alpine Linux 3.11 | apache2 | Fixed | 2.4.50-r0 | ALPINE-CVE-2021-41773 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache HTTP Server: affected: Apache HTTP Server 2.4 2.4.49
Vendor advisories:
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-htt… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202208-20 (vendor-advisory)
References
- https://httpd.apache.org/security/vulnerabilities_24.html
- https://lists.apache.org/thread.html/r6abf5f2ba6f1aa8b1030f95367aaf17660c4e4c78cb2338aee18982f%40%3Cusers.httpd.apache.org%3E
- https://lists.apache.org/thread.html/r98d704ed4377ed889d40479db79ed1ee2f43b2ebdd79ce84b042df45%40%3Cannounce.apache.org%3E
- http://www.openwall.com/lists/oss-security/2021/10/05/2
- http://www.openwall.com/lists/oss-security/2021/10/07/1
- https://lists.apache.org/thread.html/r7c795cd45a3384d4d27e57618a215b0ed19cb6ca8eb070061ad5d837%40%3Cannounce.apache.org%3E
- https://lists.apache.org/thread.html/rb5b0e46f179f60b0c70204656bc52fcb558e961cb4d06a971e9e3efb%40%3Cusers.httpd.apache.org%3E
- http://www.openwall.com/lists/oss-security/2021/10/07/6
- https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-httpd-pathtrv-LAzg68cZ
- http://www.openwall.com/lists/oss-security/2021/10/08/1
- https://lists.apache.org/thread.html/r17a4c6ce9aff662efd9459e9d1850ab4a611cb23392fc68264c72cb3%40%3Ccvs.httpd.apache.org%3E
- http://www.openwall.com/lists/oss-security/2021/10/08/2
- http://www.openwall.com/lists/oss-security/2021/10/08/3
- http://www.openwall.com/lists/oss-security/2021/10/08/4
- http://www.openwall.com/lists/oss-security/2021/10/08/6
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.