CVE-2021-24942
WordPress vulnerability analysis and mitigation

Overview

CVE-2021-24942 affects the Menu Item Visibility Control WordPress plugin versions 0.5 and below. The vulnerability was discovered by researcher bl4derunner and was publicly disclosed on November 29, 2022. This security issue exists in the plugin's handling of the 'Visibility logic' option for WordPress menu items (WPScan).

Technical details

The vulnerability is classified as a Remote Code Execution (RCE) vulnerability with a CVSS score of 6.6 (medium). It falls under the OWASP Top 10 category A1: Injection and is associated with CWE-94. The core issue stems from the plugin's failure to properly sanitize and validate the 'Visibility logic' option for WordPress menu items, potentially allowing arbitrary PHP code execution even in hardened environments (WPScan).

Impact

The vulnerability allows highly privileged users (administrators) to execute arbitrary PHP code on the affected WordPress installation. This could potentially lead to server compromise through the creation of malicious PHP files and execution of unauthorized commands (WPScan).

Exploitability

The vulnerability requires administrator-level access to exploit. The exploitation process involves accessing the WordPress menu editor, manipulating the 'Visibility logic' field of menu items, and inserting malicious PHP code that gets executed when the menu location is accessed (WPScan).

Mitigation and workarounds

As of the vulnerability disclosure, there is no known fix available for this security issue. Website administrators using the affected plugin versions should consider either removing the plugin or implementing additional security controls to restrict access to the menu editing functionality (WPScan).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-15413CRITICAL10
  • link-factory
NoNoAug 13, 2026
CVE-2026-18146HIGH7.2
  • fluentform
NoYesAug 13, 2026
CVE-2026-3639MEDIUM6.4
  • password-protect-page
NoNoAug 13, 2026
CVE-2026-14332MEDIUM5.4
  • ecwid-shopping-cart
NoYesAug 13, 2026
CVE-2026-3835MEDIUM5.3
  • prevent-direct-access
NoYesAug 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management