CVE-2020-15779 Path Traversal in socket.io-file
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.
| Package | Affected | Fixed in |
|---|---|---|
socket.io-file npm | All versions to 2.0.31 | None |
socket.io-file npm | All versions to 2.0.31 | None |
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.
Other vulnerabilities in n/a
Sources
Also known as GHSA-9h4g-27m8-qjrg.