critical exploited in the wild curated alias of CVE-2021-41773

CVE-2021-41773

Web app · Path Traversal / LFI

Summary

Path traversal (and its include-side variant, Local File Inclusion) occurs when an application builds a filesystem path from user input without canonicalizing and validating it, so sequences like ../ or their URL-encoded forms (%2e%2e%2f) walk out of the intended base directory to read or include arbitrary files such as /etc/passwd or application source. The root cause at the code level is concatenating untrusted input into a path and resolving it before checking that the final canonical path stays within an allowed root. CVE-2021-41773, disclosed 5 October 2021 and rated CVSS 9.8, was a path traversal in Apache HTTP Server 2.4.49 caused by a flawed change to URL path normalization that failed to decode and reject encoded dot-segments; requests mapping outside Alias-configured directories disclosed files, and where mod_cgi was enabled it escalated to remote code execution. It was mass-exploited in the wild within days and the incomplete 2.4.50 fix led to CVE-2021-42013. This class maps to OWASP A01:2021 Broken Access Control.

Severity
critical
EPSS
100.0% (p100)
CWE
CWE-22
Also known as
APPSEC-PATH-TRAVERSAL, Directory Traversal, Local File Inclusion, Path Traversal
Published
2021-10-05

How to fix it

How to avoid it

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.