# 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 t…

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.01%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-04T10:41:07.000Z
- Modified: 2026-06-17T03:57:29.560Z
- Weaknesses: CWE-22
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- drogon drogon: from 1.1.0 up to 1.6.0; 1.0.0

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67> (exploit, third-party-advisory)
- <https://github.com/an-tao/drogon> (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)

## Sources

- CVE List: [CVE-2021-35397](https://www.cve.org/CVERecord?id=CVE-2021-35397), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-35397](https://nvd.nist.gov/vuln/detail/CVE-2021-35397), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-35397 · Whole record: https://cve.day/CVE-2021-35397.json · Rebuilt by cve.day 2026-11-25T22:58:02.981Z
