Quick answers
- Is CVE-2018-3787 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2018-3787 being exploited in the wild.
- How severe is CVE-2018-3787?
- Low severity, with a CVSS score of 3.1, published 6 September 2018.
- Which products and versions are affected?
- simplehttpserver (npm) <0.2.1.
- Is there a fix for CVE-2018-3787?
- A patch was published on 2018-09-06: Fixed in v0.2.1 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2018-3787 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2018-3787?
- Check whether you run simplehttpserver (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.
Technical details
The vulnerability is a path traversal flaw (CWE-22) in simplehttpserver versions prior to 0.2.1 that fails to properly sanitize file path requests. An unauthenticated attacker can exploit this over the network without authentication to enumerate and read files outside the intended document root. The attack requires no special preconditions and can be exploited directly via HTTP requests. An attacker can achieve arbitrary file disclosure, leading to exposure of configuration files, credentials, source code, and other sensitive information stored on the server. The fix is available in version 0.2.1 and later.
Affected products
- npm simplehttpserver <0.2.1
Identifiers
- CVE-2018-3787
- GHSA-gpvj-q7fp-jcch
Timeline
- 2018-08-31: disclosed
- 2018-09-06: advisory
- 2018-09-06: patched: Fixed in v0.2.1