Bug 2011938 (CVE-2021-40978)

Summary: CVE-2021-40978 mkdocs: Directory traversal in dev-server
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: manisandro, williamjmorenor
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Mkdocs 1.2.2 allows directory traversal through the builtin development server which response on port 8000.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2011940, 2011941    
Bug Blocks: 2011942    

Description Pedro Sampaio 2021-10-07 19:08:07 UTC
The mkdocs 1.2.2 built-in dev-server allows directory traversal using the port 8000, enabling remote exploitation to obtain :sensitive information.

References:

https://github.com/nisdn/CVE-2021-40978
https://github.com/mkdocs/mkdocs

Comment 1 Pedro Sampaio 2021-10-07 19:08:31 UTC
Created mkdocs tracking bugs for this issue:

Affects: epel-7 [bug 2011941]
Affects: fedora-all [bug 2011940]

Comment 2 Sandro Mani 2021-10-08 09:31:22 UTC
Upstream issue: https://github.com/mkdocs/mkdocs/issues/2601

Comment 3 lnacshon 2021-10-11 07:53:36 UTC
seems that the service is using not affected version mkdocs-0.17.5 but still filing a tracker