CVE-2021-24942 Menu Item Visibility Control <= 0.5 - Admin+ Arbitrary PHP Code Execution

High 7.2 Published Updated

Highly privileged users can execute arbitrary PHP code via unsanitized menu visibility logic in the Menu Item Visibility Control plugin.

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

CVE-2021-24942 is a high-severity code injection vulnerability in Unknown Menu Item Visibility Control, published on 26 Dec 2022. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

The Menu Item Visibility Control WordPress plugin through 0.5 doesn't sanitize and validate the "Visibility logic" option for WordPress menu items, which could allow highly privileged users to execute arbitrary PHP code even in a hardened environment.

Which versions are affected by CVE-2021-24942?

It affects 1 product.

Products include Menu Item Visibility Control Project Menu Item Visibility Control.

How do I fix CVE-2021-24942?

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

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-24942 exists.

Sources

Also known as GHSA-vgw7-4fx3-67r7.

Is CVE-2021-24942 in your software?

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

Check your SBOMs for free