CVE-2018-16493 Path Traversal in simplehttpserver

High 7.5 Published Updated

An attacker can read arbitrary files on the server by manipulating URL paths in the static-resource-server npm package.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2018-16493?

CVE-2018-16493 is a high-severity path traversal vulnerability in HackerOne static-resource-server, published on 1 Feb 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A path traversal vulnerability was found in module static-resource-server 1.7.2 that allows unauthorized read access to any file on the server by appending slashes in the URL.

Weakness: CWE-22, CWE-548

Which versions are affected by CVE-2018-16493?

2 open source packages ship an affected version, including static-resource-server. It affects 1 product.

PackageAffectedFixed in
static-resource-server npmAll versions to 1.7.2None
static-resource-server npmAll versions to 1.7.2None

Products include Static-Resource-Server Project Static-Resource-Server.

How do I fix CVE-2018-16493?

No fix has been published for CVE-2018-16493 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-16493 being exploited?

There is no known exploitation of CVE-2018-16493 in the wild and no public exploit code.

Sources

Also known as GHSA-45j8-pm75-5v8x.

Is CVE-2018-16493 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free