CVE-2021-42013
Reported by apache · Published October 7, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| httpd-manual | Amazon Linux | 2.4.51-1.amzn2 |
| httpd-filesystem | Amazon Linux | 2.4.51-1.amzn2 |
| apache | Bitnami | 2.4.51, 2.4.50 |
| mod_proxy_html | Amazon Linux | 1:2.4.51-1.amzn2 |
| apache2 | Alpine | 2.4.51-r0 |
| mod_session | Amazon Linux | 2.4.51-1.amzn2 |
| httpd-tools | Amazon Linux | 2.4.51-1.amzn2 |
| httpd | Amazon Linux | 2.4.51-1.amzn2 |
| httpd-devel | Amazon Linux | 2.4.51-1.amzn2 |
| mod_ldap | Amazon Linux | 2.4.51-1.amzn2 |
| secure_backup | oracle | 18.1.0.1.0 |
| jd_edwards_enterpriseone_tools | oracle | 9.2.6.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache HTTP Server | Apache HTTP Server 2.4.49, Apache HTTP Server 2.4.50 |
| amazon:2 | httpd-manual | 0 |
| amazon:2 | httpd-filesystem | 0 |
| amazon:2 | mod_proxy_html | 0 |
| alpine | apache2 | 0 |
| amazon:2 | mod_session | 0 |
| amazon:2 | httpd-tools | 0 |
| amazon:2 | httpd | 0 |
| amazon:2 | httpd-devel | 0 |
| amazon:2 | mod_ldap | 0 |
| Apache Software Foundation | Apache HTTP Server | 2.4.49, 2.4.50 |
| amazon:2 | mod_ssl | 0 |
| amazon:2 | mod_md | 0 |
| arch | apache | 0 |
Timeline
- Oct 6, 2021 VulnCheck XDB Entry (193 in total, the first dated here)
- Oct 6, 2021 PoC Published (70 in total, the first dated here)
- Oct 7, 2021 CVE Published
- Oct 8, 2021 EPSS Score (30 in total, the first dated here)
- Nov 3, 2021 CISA KEV Added
- Nov 3, 2021 VulnCheck KEV Exploitation (879 in total, the first dated here)
- Mar 10, 2026 Security Advisory (16 in total, the first dated here)
- Jul 20, 2026 Coalition ESS Score
- Oct 21, 2026 CrowdSec Sighting (89 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-42013
vulnetix vdb fixes CVE-2021-42013
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-42013/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- [announce] 20211007 CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-listx_refsource_MLIST
- [httpd-users] 20211007 [users@httpd] CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-listx_refsource_MLIST
- [oss-security] 20211007 CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-listx_refsource_MLIST
- 20211007 Apache HTTP Server Vulnerabilties: October 2021 vendor-advisoryx_refsource_CISCO
- JVN#51106450 third-party-advisoryx_refsource_JVN
- [oss-security] 20211008 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-listx_refsource_MLIST
- [httpd-cvs] 20211008 [httpd-site] branch main updated: * Align with CVE-2021-42013 based on the latest findings mailing-listx_refsource_MLIST
- [oss-security] 20211008 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-listx_refsource_MLIST
- [oss-security] 20211008 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-listx_refsource_MLIST
- [oss-security] 20211008 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-listx_refsource_MLIST
- [oss-security] 20211008 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-listx_refsource_MLIST
- [oss-security] 20211008 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-listx_refsource_MLIST
- [oss-security] 20211009 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-listx_refsource_MLIST
- [oss-security] 20211011 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-listx_refsource_MLIST
- FEDORA-2021-2a10bc68a4 vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-aaf90ef84a vendor-advisoryx_refsource_FEDORA
- [oss-security] 20211015 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-listx_refsource_MLIST
- [oss-security] 20211016 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-listx_refsource_MLIST
- x_refsource_MISC
…and 12 more