CVE-2021-24537 Similar Posts <= 3.1.5 - Admin+ Arbitrary PHP Code Execution

High 7.2 Published Updated

High-privilege users can execute arbitrary PHP code via a widget setting in the Similar Posts WordPress plugin, even in hardened environments.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-24537?

CVE-2021-24537 is a high-severity code injection vulnerability in Unknown Similar Posts – Best Related Posts Plugin for WordPress, published on 8 Nov 2021. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

The Similar Posts WordPress plugin through 3.1.5 allow high privilege users to execute arbitrary PHP code in an hardened environment (ie with DISALLOW_FILE_EDIT, DISALLOW_FILE_MODS and DISALLOW_UNFILTERED_HTML set to true) via the 'widget_rrm_similar_posts_condition' widget setting of the plugin.

Weakness: CWE-94

Which versions are affected by CVE-2021-24537?

It affects 1 product.

Products include Shareaholic Similar Posts.

How do I fix CVE-2021-24537?

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

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

Sources

Also known as GHSA-58m2-c5rp-jr5w.

Is CVE-2021-24537 in your software?

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

Check your SBOMs for free