CVE-2019-5415 Path Traversal in serve
An attacker can bypass access controls to read unauthorized files or list directories in the serve static file server.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-5415?
CVE-2019-5415 is a high-severity path traversal vulnerability in serve, published on 17 Mar 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A bug in handling the ignore files and directories feature in serve 6.5.3 allows an attacker to read a file or list the directory that the victim has not allowed access to.
Which versions are affected by CVE-2019-5415?
2 open source packages ship an affected version, including serve. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
serve npm | All versions | 7.0.0 |
serve npm | All versions | 7.0.0 |
Products include Zeit Serve.
How do I fix CVE-2019-5415?
Upgrade serve to 7.0.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2019-5415 being exploited?
There is no known exploitation of CVE-2019-5415 in the wild and no public exploit code.
Other vulnerabilities in serve
Sources
Also known as GHSA-v588-qcp3-jv46.