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

Description source: CVE List

Exploitation context

Available material

Repository PoCs
1
Nuclei templates
1

CISA SSVC decision

ExploitationPoC
AutomatableNo
Technical impactPartial

CISA Coordinator · SSVC 2.0.3 · Evaluated Jul 2, 2024 · Source: CVE List

Affected products and versions

1
ProductSourceVersion rangeStatus
GitHub Advisory1.2.2affected
1.2.2 to < 1.2.3 · Fixed in 1.2.3affected

Proofs of concept

1

Repository PoCs

GitHubnisdn/CVE-2021-40978Repository PoCby nisdnStars: 2Not analyzed1 file

1.5 KiB

GitHub

PoC details

Nuclei templates

1
ProjectDiscoveryHIGHMKdocs 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.

WeaknessesCWE-22
Authorspikpikcu
Template tagscve2021cvemkdocslfivuln
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CPE: cpe:2.3:a:mkdocs:mkdocs:1.2.2:*:*:*:*:*:*:*

Source: ProjectDiscovery

References

10