Vulnerability Details : CVE-2021-35397
Potential exploit
A path traversal vulnerability in the static router for Drogon from 1.0.0-beta14 to 1.6.0 could allow an unauthenticated, remote attacker to arbitrarily read files. The vulnerability is due to lack of proper input validation for requested path. An attacker could exploit this vulnerability by sending crafted HTTP request with specific path to read. Successful exploitation could allow the attacker to read files that should be restricted.
Vulnerability category: Directory traversal
Products affected by CVE-2021-35397
- cpe:2.3:a:drogon:drogon:*:*:*:*:*:*:*:*
- cpe:2.3:a:drogon:drogon:1.0.0:-:*:*:*:*:*:*
- cpe:2.3:a:drogon:drogon:1.0.0:beta14:*:*:*:*:*:*
- cpe:2.3:a:drogon:drogon:1.0.0:beta15:*:*:*:*:*:*
- cpe:2.3:a:drogon:drogon:1.0.0:beta16:*:*:*:*:*:*
- cpe:2.3:a:drogon:drogon:1.0.0:beta17:*:*:*:*:*:*
- cpe:2.3:a:drogon:drogon:1.0.0:beta18:*:*:*:*:*:*
- cpe:2.3:a:drogon:drogon:1.0.0:beta19:*:*:*:*:*:*
- cpe:2.3:a:drogon:drogon:1.0.0:beta20:*:*:*:*:*:*
- cpe:2.3:a:drogon:drogon:1.0.0:beta21:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-35397
2.94%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 85 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-35397
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2021-35397
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-35397
-
https://github.com/an-tao/drogon
GitHub - drogonframework/drogon: Drogon: A C++14/17 based HTTP web application framework running on Linux/macOS/Unix/WindowsThird Party Advisory
-
https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67
drogon/StaticFileRouter.cc at 834e3eabdd0441ad2bc80c02e8bbfc3b8312c213 · drogonframework/drogon · GitHubExploit;Third Party Advisory
-
https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site
ENG 03 Quick Start · drogonframework/drogon Wiki · GitHubThird Party Advisory
-
https://github.com/an-tao/drogon/wiki/ENG-02-Installation
ENG 02 Installation · drogonframework/drogon Wiki · GitHubThird Party Advisory
Jump to