CVE-2021-40978
Directory traversal in mkdocs
Record summary
EIP currently links 1 repository PoC and 1 Nuclei template to CVE-2021-40978.
Description
The mkdocs 1.2.2 built-in dev-server allows directory traversal using the port 8000, enabling remote exploitation to obtain :sensitive information. NOTE: the vendor has disputed this as described in https://github.com/mkdocs/mkdocs/issues/2601.] and https://github.com/nisdn/CVE-2021-40978/issues/1
Exploitation context
Affected products and versions
1| Product | Source | Version range | Status |
|---|---|---|---|
mkdocsBrowse PyPI / mkdocs | GitHub Advisory | 1.2.2 | affected |
| 1.2.2 to < 1.2.3 · Fixed in 1.2.3 | affected |
Proofs of concept
1Repository PoCs
GitHubnisdn/CVE-2021-40978Repository PoCby nisdnStars: 2Not analyzed1 file
Nuclei templates
1ProjectDiscoveryHIGHMKdocs 1.2.2 - Directory TraversalCVSS 7.5
The MKdocs 1.2.2 built-in dev-server allows directory traversal using the port 8000, enabling remote exploitation to obtain sensitive information. Note the vendor has disputed the vulnerability (see references) because the dev server must be used in an unsafe way (namely public) to have this vulnerability exploited.
Impact
An attacker can read or modify sensitive files on the server, potentially leading to unauthorized access, data leakage, or system compromise.
Remediation
Upgrade MKdocs to version 1.2.3 or later to fix the directory traversal vulnerability.
Source: ProjectDiscovery