CVE-2021-42013
JSON

9.8criticalExploited

Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)

Severity
9.8critical CVSS:3.1 by CISA-ADP
Exploit likelihood
99.9% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
apache
Also known as
BIT-APACHE-2021-42013

Description

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.

Affected

Product or packageVersionsReported by
Apache Software Foundation Apache HTTP ServerApache HTTP Server 2.4.49, Apache HTTP Server 2.4.50CVE List
apache http_server2.4.49, 2.4.50NVD
fedoraproject fedora34, 35NVD
oracle instantis_enterprisetrack17.1, 17.2, 17.3NVD
oracle jd_edwards_enterpriseone_toolsbefore 9.2.6.0NVD
oracle secure_backupbefore 18.1.0.1.0NVD
netapp cloud_backupNot specifiedNVD
apache (Bitnami)from 2.4.49 before 2.4.50, from 2.4.50 before 2.4.51Bitnami Vulnerability Database
Apache HTTP ServerNot specifiedCISA KEV

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P
Bitnami Vulnerability Databasecritical rating

Classification

CWE-22

SSVC (CISA-ADP): exploitation active, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

Se ha detectado que la corrección de CVE-2021-41773 en Apache HTTP Server versión 2.4.50 no era suficiente. Un atacante podía usar un ataque de salto de ruta para asignar URLs a archivos fuera de los directorios configurados por las directivas tipo Alias. Si los archivos fuera de estos directorios no están protegidos por la configuración habitual por defecto "require all denied", estas peticiones pueden tener éxito. Si los scripts CGI también están habilitados para estas rutas alias, esto podría permitir una ejecución de código remota . Este problema sólo afecta a Apache versión 2.4.49 y Apache versión 2.4.50 y no a versiones anteriores

CISA KEV

Apache HTTP Server contains a path traversal vulnerability that allows an attacker to perform remote code execution if files outside directories configured by Alias-like directives are not under default require all denied or if CGI scripts are enabled. This CVE ID resolves an incomplete patch for CVE-2021-41773.

References

https://httpd.apache.org/security/vulnerabilities_24.htmladvisory, release-notes, vendor-advisory
https://lists.apache.org/thread.html/r7c795cd45a3384d4d27e57618a215b0ed19cb6ca8eb070061ad5d837%40%3Cannounce.apache.org%3Ediscussion, mailing-list
https://lists.apache.org/thread.html/rb5b0e46f179f60b0c70204656bc52fcb558e961cb4d06a971e9e3efb%40%3Cusers.httpd.apache.org%3Ediscussion, mailing-list
http://www.openwall.com/lists/oss-security/2021/10/07/6advisory, mailing-list, third-party-advisory
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-httpd-pathtrv-LAzg68cZadvisory, third-party-advisory, vendor-advisory
http://jvn.jp/en/jp/JVN51106450/index.htmladvisory, third-party-advisory
http://www.openwall.com/lists/oss-security/2021/10/08/1advisory, mailing-list, third-party-advisory
https://lists.apache.org/thread.html/r17a4c6ce9aff662efd9459e9d1850ab4a611cb23392fc68264c72cb3%40%3Ccvs.httpd.apache.org%3Efix, mailing-list, patch
http://www.openwall.com/lists/oss-security/2021/10/08/2advisory, mailing-list, third-party-advisory
http://www.openwall.com/lists/oss-security/2021/10/08/3advisory, mailing-list, third-party-advisory
http://www.openwall.com/lists/oss-security/2021/10/08/4advisory, mailing-list, third-party-advisory
http://www.openwall.com/lists/oss-security/2021/10/08/6advisory, mailing-list, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2021-42013 changed 2025-10-21CVE Terms of Use
NVDCVE-2021-42013 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-APACHE-2021-42013 changed 2026-09-08Apache-2.0
CISA KEVCVE-2021-42013 changed 2021-11-03CC0-1.0