Quick answers
- Is CVE-2019-5415 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2019-5415 being exploited in the wild.
- How severe is CVE-2019-5415?
- Low severity, with a CVSS score of 3.1, published 25 March 2019.
- Which products and versions are affected?
- serve (npm) SEMVER:introduced=0,fixed=7.0.0.
- Is there a fix for CVE-2019-5415?
- Yes. serve (npm): upgrade to 7.0.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2019-5415 attacked?
- It is attacked over the network.
- Am I affected by CVE-2019-5415?
- Check whether you run serve (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- serve (npm): upgrade to 7.0.0 or later
npm install serve@7.0.0
Technical details
The vulnerability is a path traversal (CWE-548) in serve versions prior to 7.0.1. The root cause is insufficient validation of the requested file path; explicit folder ignoring rules can be circumvented by including "/./" in the URL path, which is then normalized in a way that bypasses the access control checks. The attack is network-reachable and requires no authentication or user interaction. An unauthenticated attacker can read arbitrary files and access hidden folders that should have been protected. The fix is available in serve version 7.0.1 and later.
Affected products
- Zeit serve before 7.0.1
Identifiers
- CVE-2019-5415
- GHSA-v588-qcp3-jv46
Timeline
- 2019-03-25: disclosed
- 7.0.1: patched