CVE-2021-24942
JSON

7.2high

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

Severity
7.2high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.34% (higher than 72% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
WPScan

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.

Affected

Product or packageVersionsReported by
Unknown Menu Item Visibility Controlup to 0.5CVE List
menu_item_visibility_control_project menu_item_visibility_controlup to 0.5NVD

All scores

CISA-ADP7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
NVD7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

El complemento Menu Item Visibility Control de WordPress hasta la versión 0.5 no sanitiza ni valida la opción "Lógica de visibilidad" para los elementos del menú de WordPress, lo que podría permitir a usuarios altamente privilegiados ejecutar código PHP arbitrario incluso en un entorno reforzado.

References

https://wpscan.com/vulnerability/eaa28832-74c1-4cd5-9b0f-02338e23b418exploit, technical-description, third-party-advisory, vdb-entry

Sources

SourceRecordLicence
CVE ListCVE-2021-24942 changed 2025-04-14CVE Terms of Use
NVDCVE-2021-24942 changed 2026-06-17Public domain