CVE-2020-15779 Path Traversal in socket.io-file

High 7.5 Published Updated

Attackers can exploit path traversal in socket.io-file to read or modify files outside the intended upload directory.

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-2020-15779?

CVE-2020-15779 is a high-severity path traversal vulnerability in n/a, published on 15 Jul 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A Path Traversal issue was discovered in the socket.io-file package through 2.0.31 for Node.js. The socket.io-file::createFile message uses path.join with ../ in the name option, and the uploadDir and rename options determine the path.

Weakness: CWE-22

Which versions are affected by CVE-2020-15779?

2 open source packages ship an affected version, including socket.io-file. It affects 1 product.

PackageAffectedFixed in
socket.io-file npmAll versions to 2.0.31None
socket.io-file npmAll versions to 2.0.31None

Products include Socket.io-File Project Socket.io-File.

How do I fix CVE-2020-15779?

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

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

Sources

Also known as GHSA-9h4g-27m8-qjrg.

Is CVE-2020-15779 in your software?

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

Check your SBOMs for free