CVE-2021-42013

critical KEV
Published 2021-11-03 ยท Modified 2021-11-03
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
10.0

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.

CISA KEV

Vendor
Apache
Product
HTTP Server
Due date
2021-11-17

Predictions

Exploit likelihood
99%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-50406 webapps multiple verified
Lucas Souza ยท 2021-10-13

Apache HTTP Server 2.4.50 - Path Traversal & Remote Code Execution (RCE)

Source code queued for fetch โ€” refresh in a moment.
EDB-50446 webapps multiple
ThelastVvV ยท 2021-10-25

Apache HTTP Server 2.4.50 - Remote Code Execution (RCE) (2)

Source code queued for fetch โ€” refresh in a moment.
EDB-50512 webapps multiple verified
Valentin Lobstein ยท 2021-11-11

Apache HTTP Server 2.4.50 - Remote Code Execution (RCE) (3)

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

Apache 2.4.49/2.4.50 Traversal RCE
Source code queued for fetch โ€” refresh in a moment.
Apache 2.4.49/2.4.50 Traversal RCE scanner
Source code queued for fetch โ€” refresh in a moment.

OS impact

arch Arch Fixed 1 release
VersionStatusFixed in
โ€” Fixed 2.4.51-1
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 2.4.51-1
sid Fixed 2.4.51-1
forky Fixed 2.4.51-1
bullseye Fixed 0
bookworm Fixed 2.4.51-1

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.