CVE-2021-23377 Arbitrary Command Injection

Critical 9.8 Published Updated

Attackers can execute arbitrary commands via unsanitized input in the scroll function of the onion-oled-js library.

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-23377?

CVE-2021-23377 is a critical command injection vulnerability in onion-oled-js, published on 18 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

This affects all versions of package onion-oled-js. If attacker-controlled user input is given to the scroll function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization.

Weakness: CWE-78

Which versions are affected by CVE-2021-23377?

2 open source packages ship an affected version, including onion-oled-js. It affects 1 product.

PackageAffectedFixed in
onion-oled-js npmAll versions to 0.0.2None
onion-oled-js npmAll versions to 0.0.2None

Products include Onion-Oled-Js Project Onion-Oled-Js.

How do I fix CVE-2021-23377?

No fix has been published for CVE-2021-23377 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2021-23377 being exploited?

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

Sources

Also known as GHSA-rhwp-9vm9-547q.

Is CVE-2021-23377 in your software?

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

Check your SBOMs for free