CVE-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.
Summary dbcve.org
Apache HTTP Server 2.4.50 contains an incomplete fix for CVE-2021-41773, allowing attackers to use path traversal sequences (such as %2e%2e/) to map URLs to files outside directories configured by Alias-like directives. If these files are not protected by 'require all denied', the requests succeed. When CGI scripts are enabled for aliased paths, this enables remote code execution.
Mitigation
Upgrade Apache HTTP Server to version 2.4.51 or later, or ensure all directories outside Alias directives are protected with 'require all denied' and CGI scripts are disabled for those paths.