CVE-2021-23423 Directory Traversal

Medium 5.5 Published Updated

An attacker can disclose arbitrary file contents by processing untrusted source files with include directives in the bikeshed documentation tool.

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

CVE-2021-23423 is a medium-severity path traversal 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 include, include-code or include-raw block is processed. The contents of arbitrary files could be disclosed in the HTML output.

Weakness: CWE-22

Which versions are affected by CVE-2021-23423?

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

Upgrade bikeshed to 3.0.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2021-23423 being exploited?

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

Sources

Also known as GHSA-hf6p-4rv2-9qrp, PYSEC-2021-117, SNYK-PYTHON-BIKESHED-1537647, UBUNTU-CVE-2021-23423.

Is CVE-2021-23423 in your software?

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

Check your SBOMs for free