CVE-2021-35397
CVE-2021-35397 is a high-severity vulnerability in Drogon with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-22.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- CVSS v2: 5.0
- EPSS exploit prediction: 4% (89th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-22
- Affected product: Drogon
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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. 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.
- How severe is CVE-2021-35397?
- CVE-2021-35397 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2021-35397 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 4% (89th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-35397?
- CVE-2021-35397 primarily affects Drogon. In total, 10 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2021-35397?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2021-35397 published?
- CVE-2021-35397 was published on 2021-08-04 and last updated on 2026-06-17.
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
Affected products (10)
- 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:*:*:*:*:*:*
More vulnerabilities in Drogon
- CVE-2022-25297 — High (CVSS 7.5): This affects the package drogonframework/drogon before 1.7.5. The unsafe handling of file names during upload using…
- CVE-2023-26137 — High (CVSS 7.2): All versions of the package drogonframework/drogon are vulnerable to HTTP Response Splitting when untrusted user input…
- CVE-2023-26138 — Medium (CVSS 5.4): All versions of the package drogonframework/drogon are vulnerable to CRLF Injection when untrusted user input is used…
- CVE-2022-3959 — Low (CVSS 3.1): A vulnerability, which was classified as problematic, has been found in drogon up to 1.8.1. Affected by this issue is…
Other CWE-22 (Path Traversal) vulnerabilities
- CVE-2026-48282 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Limitation of a Pathname to a Restricted…
- CVE-2026-54917 — Critical (CVSS 10.0): SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables. Prior to 4.30, the…
- CVE-2026-11429 — Critical (CVSS 10.0): Two endpoints in the Vault Service ScriptsController, shared by Altium Enterprise Server and Altium 365, accept file…
- CVE-2026-34909 — Critical (CVSS 10.0): A malicious actor with access to the network could exploit a Path Traversal vulnerability found in UniFi OS devices to…
- CVE-2026-7411 — Critical (CVSS 10.0): In Eclipse BaSyx Java Server SDK versions prior to 2.0.0-milestone-10, inadequate path normalization in the Submodel…
- CVE-2026-36767 — Critical (CVSS 10.0): A path traversal vulnerability in the /content/images/add endpoint of shopizer v3.2.5 allows attackers write arbitrary…