CVE-2021-24942

published 26 Dec 2022 · updated 14 Apr 2025

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

8.2HighCVSS 7.2EPSS 1%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
<=0.5

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-24942 severity on Zeptric[![CVE-2021-24942](https://zeptric.io/badge/cve/CVE-2021-24942.svg)](https://zeptric.io/cve/CVE-2021-24942)