What’s Vulnerable › Vulnerabilities
CVE-2021-35397
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 4.0% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2021-08-04 · updated 2026-06-17
- Weakness: CWE-22
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.
Affected products
- drogonframework/drogon: from 1.1.0 through 1.6.0; 1.0.0, 1.0.0-beta14, 1.0.0-beta15, 1.0.0-beta16, 1.0.0-beta17, 1.0.0-beta18 (+3)
References
- https://github.com/an-tao/drogon
- https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67
- https://github.com/an-tao/drogon/wiki/ENG-02-Installation
- https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site
- https://github.com/an-tao/drogon
- https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67
- https://github.com/an-tao/drogon/wiki/ENG-02-Installation
- https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site
Get alerted when CVE-2021-35397 or the next vulnerability affects your stack