CVE-2021-42082 Local Privilege Escalation to root in OSNEXUS QuantaStor before 6.0.0.355

High 7.8 Published Updated

Local attackers can execute arbitrary commands as root via command injection in the upgrade script, leading to full system compromise.

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

CVE-2021-42082 is a high-severity command injection vulnerability in OSNEXUS QuantaStor, published on 10 Jul 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Local users are able to execute scripts under root privileges.

POC

On the local host run the following command:

curl 'localhost:8154/qstor/qs_upgrade.py?taskId=1&a=;`whoami`'

Weakness: CWE-269

Which versions are affected by CVE-2021-42082?

It affects 1 product.

Products include Osnexus Quantastor.

How do I fix CVE-2021-42082?

No fix has been published for CVE-2021-42082 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-42082 being exploited?

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

Sources

Also known as GHSA-3x7w-vvg2-w6r8.

Is CVE-2021-42082 in your software?

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

Check your SBOMs for free