CVE-2021-25864 Path Traversal in node-red-contrib-huemagic
An attacker can read arbitrary files from the server via directory traversal in the node-red-contrib-huemagic plugin.
- 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-2021-25864?
CVE-2021-25864 is a high-severity path traversal vulnerability in n/a, published on 26 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
node-red-contrib-huemagic 3.0.0 is affected by hue/assets/..%2F Directory Traversal.in the res.sendFile API, used in file hue-magic.js, to fetch an arbitrary file.
Weakness: CWE-22
Which versions are affected by CVE-2021-25864?
2 open source packages ship an affected version, including node-red-contrib-huemagic. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
node-red-contrib-huemagic npm | All versions to 3.0.0 | None |
node-red-contrib-huemagic npm | All versions to 3.0.0 | None |
Products include Dgtl Huemagic.
How do I fix CVE-2021-25864?
No fix has been published for CVE-2021-25864 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-2021-25864 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-25864 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in n/a
Sources
Also known as GHSA-frpw-jrwx-hcfv.