CVE-2021-35397
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (4.01%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
Description
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.
- CVSS 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 4.01% probability · 90th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-22
- Affected
- drogon/drogon
- Source
- cve@mitre.org
References
- https://github.com/an-tao/drogonThird Party Advisory
- https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67Exploit, Third Party Advisory
- https://github.com/an-tao/drogon/wiki/ENG-02-InstallationThird Party Advisory
- https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-SiteThird Party Advisory
- https://github.com/an-tao/drogonThird Party Advisory
- https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67Exploit, Third Party Advisory
- https://github.com/an-tao/drogon/wiki/ENG-02-InstallationThird Party Advisory
- https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-SiteThird Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.