CVE-2021-26276 Improper Control of Dynamically-Managed Code Resources in config-shield

Medium 5.3 Published Updated

Attacker can execute arbitrary code via eval in the set command if untrusted data is processed, affecting GoDaddy node-config-shield users.

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

What is CVE-2021-26276?

CVE-2021-26276 is a medium-severity code injection vulnerability in n/a, published on 27 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

scripts/cli.js in the GoDaddy node-config-shield (aka Config Shield) package before 0.2.2 for Node.js calls eval when processing a set command. NOTE: the vendor reportedly states that this is not a vulnerability. The set command was not intended for use with untrusted data

Weakness: CWE-913

Which versions are affected by CVE-2021-26276?

2 open source packages ship an affected version, including config-shield. It affects 1 product.

PackageAffectedFixed in
config-shield npmAll versions0.2.3
config-shield npmAll versions0.2.3

Products include Godaddy Node-Config-Shield.

How do I fix CVE-2021-26276?

Upgrade config-shield to 0.2.3 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-26276 being exploited?

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

Sources

Also known as GHSA-w8h4-vw8f-rvvj.

Is CVE-2021-26276 in your software?

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

Check your SBOMs for free