OS Command Injection in Apache HTTP Server - CVE-2021-42013

 

OS Command Injection in Apache HTTP Server - CVE-2021-42013

Published: October 7, 2021 / Updated: April 30, 2023


Vulnerability identifier: #VU57127
CSH Severity: Critical
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-42013
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to insufficient fix for the path traversal vulnerability #VU57063 (CVE-2021-41733). A remote unauthenticated attacker can send a specially crafted HTTP request to the affected server and execute arbitrary OS commands on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Apache HTTP Server
Arch Linux
Amazon Linux AMI
Gentoo Linux
Slackware Linux
Fedora
JD Edwards EnterpriseOne Tools
httpd
apache
app-admin/apache-tools
www-servers/apache

How to mitigate CVE-2021-42013

Install update from vendor's website.

Apache HTTP Server - update to 2.4.51
JD Edwards EnterpriseOne Tools - update to 9.2.6.0
httpd - addressed in versions 2.4.50-1.fc33, 2.4.50-1.fc34, 2.4.50-1.fc35, 2.4.51-1.fc34, 2.4.51-2.fc35
apache - update to 2.4.51-1
app-admin/apache-tools - update to 2.4.54
www-servers/apache - update to 2.4.54

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins