CVE-2021-24846 Ni WooCommerce Custom Order Status < 1.9.7 - Subscriber+ SQL Injection

High 8.8 Published Updated

Authenticated users can exploit SQL injection in the Ni WooCommerce Custom Order Status plugin to read or modify database contents.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-24846?

CVE-2021-24846 is a high-severity SQL injection vulnerability in Unknown Ni WooCommerce Custom Order Status, published on 21 Dec 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The get_query() function of the Ni WooCommerce Custom Order Status WordPress plugin before 1.9.7, used by the niwoocos_ajax AJAX action, available to all authenticated users, does not properly sanitise the sort parameter before using it in a SQL statement, leading to an SQL injection, exploitable by any authenticated users, such as subscriber

Weakness: CWE-89

Which versions are affected by CVE-2021-24846?

It affects 1 product.

Products include Ni Woocommerce Custom Order Status Project Ni Woocommerce Custom Order Status.

How do I fix CVE-2021-24846?

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

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2021-24846 being exploited?

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

Sources

Also known as GHSA-mv38-79cw-m7w5.

Is CVE-2021-24846 in your software?

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

Check your SBOMs for free