CVE-2018-1000161 Path traversal in n/a

Medium 5.7 Published Updated

An attacker can overwrite files by tricking a user into running the http-fetch NSE script against a malicious website.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-1000161?

CVE-2018-1000161 is a medium-severity path traversal vulnerability in n/a, published on 18 Apr 2018. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

nmap version 6.49BETA6 through 7.60, up to and including SVN revision 37147 contains a Directory Traversal vulnerability in NSE script http-fetch that can result in file overwrite as the user is running it. This attack appears to be exploitable via a victim that runs NSE script http-fetch against a malicious web site. This vulnerability appears to have been fixed in 7.7.

Weakness: CWE-22

Which versions are affected by CVE-2018-1000161?

It affects 1 product.

Products include Nmap Nmap.

How do I fix CVE-2018-1000161?

Upgrade to a fixed version.

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

Is CVE-2018-1000161 being exploited?

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

Sources

Also known as DEBIAN-CVE-2018-1000161, GHSA-463f-727w-pqp7, UBUNTU-CVE-2018-1000161.

Is CVE-2018-1000161 in your software?

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

Check your SBOMs for free