CVE-2021-23422 Arbitrary Code Injection

High 7.8 Published Updated

Attackers can execute arbitrary OS commands by processing untrusted source files with Inline Tag Command metadata in the bikeshed library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-23422?

CVE-2021-23422 is a high-severity command injection vulnerability in bikeshed, published on 16 Aug 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

This affects the package bikeshed before 3.0.0. This can occur when an untrusted source file containing Inline Tag Command metadata is processed. When an arbitrary OS command is executed, the command output would be included in the HTML output.

Weakness: CWE-78

Which versions are affected by CVE-2021-23422?

3 open source packages ship an affected version, including bikeshed. It affects 1 product.

PackageAffectedFixed in
bikeshed PyPIAll versions3.0.0
bikeshed PyPIAll versions3.0.0
bikeshed PyPIAll versions3.0.0

Products include Bikeshed Project Bikeshed.

How do I fix CVE-2021-23422?

Upgrade bikeshed to 3.0.0 or later.

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

Is CVE-2021-23422 being exploited?

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

Sources

Also known as GHSA-87cj-px37-rc3x, PYSEC-2021-116, SNYK-PYTHON-BIKESHED-1537646, UBUNTU-CVE-2021-23422.

Is CVE-2021-23422 in your software?

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

Check your SBOMs for free