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

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-2025-13126HIGH7.5
  • wpforo
NoYesDec 14, 2025
CVE-2025-12537MEDIUM6.4
  • addon-elements-for-elementor-page-builder
NoYesDec 14, 2025
CVE-2025-9873MEDIUM6.4
  • a3-lazy-load
NoYesDec 13, 2025
CVE-2025-9856MEDIUM6.4
  • popup-builder
NoYesDec 13, 2025
CVE-2025-12696N/AN/A
  • hls-crm-form-shortcode
NoNoDec 14, 2025

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