High severity · published Aug 4, 2021
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
7.5
CVSS
4%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)4.0% · higher than 91% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DR
Drogon · Drogon
1.1.0 through 1.6.0; 1.0.0; 1.0.0; 1.0.0; 1.0.0; 1.0.0; +4 more · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-35397
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-35397
Third Party Advisory
https://github.com/an-tao/drogon
Exploit
https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67
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
More from Drogon
8.8
CVE-2022-25297
Arbitrary File Write
7.3
CVE-2026-94144
drogonframework drogon ORM Criteria.cc makeCriteria sql injection
7.3
CVE-2026-94143
drogonframework drogon ORM Mapper Mapper.h orderBy sql injection
6.1
CVE-2023-26137
All versions of the package drogonframework/drogon are vulnerable to HTTP Response Splitting when untrusted user input is used to build header values in the addHeader and…
5.3
CVE-2026-105144
Drogon Static File Router StaticFileRouter.cc route path traversal
