CVEvulnerability
CVE-2021-35397
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2021-08-04
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS 2.0 ([email protected])
- 5.0 MEDIUM — AV:N/AC:L/Au:N/C:P/I:N/A:N
- Weaknesses
- 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 configurations
• drogon drogon (>= 1.1.0 <= 1.6.0)
• drogon drogon 1.0.0
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://github.com/an-tao/drogon Third Party Advisory
- https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67 Exploit, Third Party Advisory
- https://github.com/an-tao/drogon/wiki/ENG-02-Installation Third Party Advisory
- https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site Third Party Advisory
- https://github.com/an-tao/drogon Third Party Advisory
- https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67 Exploit, Third Party Advisory
- https://github.com/an-tao/drogon/wiki/ENG-02-Installation Third Party Advisory
- https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site Third Party Advisory