CVE-2018-3714 Path Traversal in node-srv

Medium 6.5 Published Updated

Attackers can read arbitrary files on the server by exploiting a path traversal vulnerability in the node-srv module.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-3714?

CVE-2018-3714 is a medium-severity path traversal vulnerability in HackerOne node-srv node module, published on 7 Jun 2018. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

node-srv node module suffers from a Path Traversal vulnerability due to lack of validation of url, which allows a malicious user to read content of any file with known path.

Weakness: CWE-22

Which versions are affected by CVE-2018-3714?

2 open source packages ship an affected version, including node-srv. It affects 1 product.

PackageAffectedFixed in
node-srv npmAll versions2.1.1
node-srv npmAll versions2.1.1

Products include Node-Srv Project Node-Srv.

How do I fix CVE-2018-3714?

Upgrade node-srv to 2.1.1 or later.

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

Is CVE-2018-3714 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-3714 exists.

Public exploit code: 1 Nuclei template.

Sources

Also known as GHSA-52r9-g5g6-2hjp.

Is CVE-2018-3714 in your software?

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

Check your SBOMs for free