CVE-2018-17785 In blynk-server a Directory Traversal exists

High 7.5 Published Updated

An attacker can read arbitrary files on the server by exploiting a directory traversal vulnerability in the Blynk server's static file handling.

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

What is CVE-2018-17785?

CVE-2018-17785 is a high-severity path traversal vulnerability in n/a, published on 30 Sep 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In blynk-server in Blynk before 0.39.7, Directory Traversal exists via a ../ in a URI that has /static or /static/js at the beginning, as demonstrated by reading the /etc/passwd file.

Weakness: CWE-22

Which versions are affected by CVE-2018-17785?

2 open source packages ship an affected version, including com.github.blynkkk:blynk-server. It affects 1 product.

PackageAffectedFixed in
com.github.blynkkk:blynk-server MavenAll versions0.39.7
com.github.blynkkk:blynk-server MavenAll versions0.39.7

Products include Blynk Blynk-Server.

How do I fix CVE-2018-17785?

Upgrade com.github.blynkkk:blynk-server to 0.39.7 or later.

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

Is CVE-2018-17785 being exploited?

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

Sources

Also known as GHSA-4r64-wf76-c53p.

Is CVE-2018-17785 in your software?

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

Check your SBOMs for free