CVE-2021-25864 Path Traversal in node-red-contrib-huemagic

High 7.5 Published Updated

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.

PackageAffectedFixed in
node-red-contrib-huemagic npmAll versions to 3.0.0None
node-red-contrib-huemagic npmAll versions to 3.0.0None

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.

Sources

Also known as GHSA-frpw-jrwx-hcfv.

Is CVE-2021-25864 in your software?

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

Check your SBOMs for free