CVE-2021-42013Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50…
It was found that the fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient. 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 only affects Apache 2.4.49 and Apache 2.4.50 and not earlier versions.
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.
Ubuntu has not shipped a fix for every release yet.
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 | Fix pending | ||
| Debian 14 | apache2 | Fixed | 2.4.51-1 | DEBIAN-CVE-2021-42013 |
| Debian 13 | apache2 | Fixed | 2.4.51-1 | DEBIAN-CVE-2021-42013 |
| Debian 12 | apache2 | Fixed | 2.4.51-1 | DEBIAN-CVE-2021-42013 |
| 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.51-r0 | ALPINE-CVE-2021-42013 |
| Alpine Linux 3.23 | apache2 | Fixed | 2.4.51-r0 | ALPINE-CVE-2021-42013 |
| Alpine Linux 3.22 | apache2 | Fixed | 2.4.51-r0 | ALPINE-CVE-2021-42013 |
| Alpine Linux 3.21 | apache2 | Fixed | 2.4.51-r0 | ALPINE-CVE-2021-42013 |
| Alpine Linux 3.20 | apache2 | Fixed | 2.4.51-r0 | ALPINE-CVE-2021-42013 |
| Alpine Linux 3.19 | apache2 | Fixed | 2.4.51-r0 | ALPINE-CVE-2021-42013 |
| Alpine Linux 3.18 | apache2 | Fixed | 2.4.51-r0 | ALPINE-CVE-2021-42013 |
| Alpine Linux 3.17 | apache2 | Fixed | 2.4.51-r0 | ALPINE-CVE-2021-42013 |
| Alpine Linux 3.16 | apache2 | Fixed | 2.4.51-r0 | ALPINE-CVE-2021-42013 |
| Alpine Linux 3.15 | apache2 | Fixed | 2.4.51-r0 | ALPINE-CVE-2021-42013 |
| Alpine Linux 3.14 | apache2 | Fixed | 2.4.51-r0 | ALPINE-CVE-2021-42013 |
| Alpine Linux 3.13 | apache2 | Fixed | 2.4.51-r0 | ALPINE-CVE-2021-42013 |
| Alpine Linux 3.12 | apache2 | Fixed | 2.4.51-r0 | ALPINE-CVE-2021-42013 |
| Alpine Linux 3.11 | apache2 | Fixed | 2.4.51-r0 | ALPINE-CVE-2021-42013 |
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.49, Apache HTTP Server 2.4.50
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/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://jvn.jp/en/jp/JVN51106450/index.html
- 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
- http://www.openwall.com/lists/oss-security/2021/10/08/5
- http://www.openwall.com/lists/oss-security/2021/10/09/1
- http://www.openwall.com/lists/oss-security/2021/10/11/4
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.