CVE-2021-42257 Missing authorization in n/a

High 7.1 Published Updated

An unprivileged user can access unintended drives due to improper path validation in the check_smart library, allowing unauthorized data access or modification.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-42257?

CVE-2021-42257 is a high-severity missing authorization vulnerability in n/a, published on 11 Oct 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

check_smart before 6.9.1 allows unintended drive access by an unprivileged user because it only checks for a substring match of a device path (the /dev/bus substring and a number), aka an unanchored regular expression.

Weakness: CWE-20

Which versions are affected by CVE-2021-42257?

It affects 1 product.

Products include Check Smart Project Check Smart.

How do I fix CVE-2021-42257?

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

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2021-42257 being exploited?

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

Sources

Also known as GHSA-xmf9-f5j5-mm5x.

Is CVE-2021-42257 in your software?

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

Check your SBOMs for free