CVE-2017-16222 Directory Traversal in elding

Medium 5.3 Published Updated

An attacker can read arbitrary files with extensions from the server filesystem via directory traversal in the elding web server library.

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-2017-16222?

CVE-2017-16222 is a medium-severity path traversal vulnerability in HackerOne elding node module, published on 7 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

elding is a simple web server. elding is vulnerable to a directory traversal issue, allowing an attacker to access the filesystem by placing "../" in the url. The files accessible, however, are limited to files with a file extension. Sending a GET request to /../../../etc/passwd, for example, will return a 404 on etc/passwd/index.js.

Weakness: CWE-22

Which versions are affected by CVE-2017-16222?

2 open source packages ship an affected version, including elding. It affects 1 product.

PackageAffectedFixed in
elding npmAll versions to 1.0.0None
elding npmAll versions to 1.0.0None

Products include Elding Project Elding.

How do I fix CVE-2017-16222?

No fix has been published for CVE-2017-16222 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-2017-16222 being exploited?

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

Sources

Also known as GHSA-rp28-29ch-gh92.

Is CVE-2017-16222 in your software?

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

Check your SBOMs for free