CVE-2017-18356 Code injection in n/a

High 8.8 Published Updated

A shop manager can trigger PHP object injection via crafted strings in WooCommerce shortcodes, potentially leading to code execution.

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-2017-18356?

CVE-2017-18356 is a high-severity code injection vulnerability in n/a, published on 15 Jan 2019. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In the Automattic WooCommerce plugin before 3.2.4 for WordPress, an attack is possible after gaining access to the target site with a user account that has at least Shop manager privileges. The attacker then constructs a specifically crafted string that will turn into a PHP object injection involving the includes/shortcodes/class-wc-shortcode-products.php WC_Shortcode_Products::get_products() use of cached queries within shortcodes.

Weakness: CWE-94

Which versions are affected by CVE-2017-18356?

It affects 1 product.

Products include Woocommerce Woocommerce.

How do I fix CVE-2017-18356?

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

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2017-18356 being exploited?

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

Sources

Also known as GHSA-vwrr-q8r4-3hgf.

Is CVE-2017-18356 in your software?

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

Check your SBOMs for free