Summary
generated automatically from NVD dataThe Essential Widgets plugin for WordPress, in versions up to and including 3.2.1, has a privilege escalation flaw in its ew_tags_render_shortcode() function. The function passes the user-supplied topic_count_scale_callback attribute to wp_tag_cloud() without validating it, so an unauthenticated attacker can make WordPress call an arbitrary PHP function such as wp_set_auth_cookie. With a taxonomy term whose count matches an administrator's user ID, this yields valid authentication cookies and full administrative access. The CVSS v3.1 score is 9.8 (CRITICAL).
NVD description
The Essential Widgets plugin for WordPress is vulnerable to Privilege Escalation via Administrator Account Takeover in all versions up to, and including, 3.2.1 This is due to the `ew_tags_render_shortcode()` function in `includes/ew-block/blocks/ew-tags/index.php` copying the attacker-supplied `topic_count_scale_callback` shortcode attribute directly into the argument array passed to `wp_tag_cloud()` without any `function_exists()`, `is_callable()`, or allowlist check — a validation step that is present in the widget's own `update()` method in `class-ew-tags.php` but was omitted from the shortcode handler. WordPress core's `wp_generate_tag_cloud()` then executes `call_user_func($args['topic_count_scale_callback'], $tag->count)`, invoking any named PHP function with a taxonomy term's post count as the first integer argument. This makes it possible for unauthenticated attackers to supply `topic_count_scale_callback=wp_set_auth_cookie` and arrange for a taxonomy term whose count matches a target user's ID — such as user ID 1 for the default administrator — causing WordPress to mint and set valid authentication cookies for that account, granting the attacker full administrative access. Successful exploitation gives the attacker control of a distinct, already-privileged Administrator account; it does not promote the attacker's original account.
CVSS v3.1 Score
Information
- Published
- 5 déc. 2026
- Updated
- 5 déc. 2026
- Status
- Deferred
- Source
- security@wordfence.com
Weaknesses (CWE)
References (7)
Similar CVEs
Other vulnerabilities of type CWE-269
Know which CVEs hit the versions you run.
Add the product and its version: cveo.tech lists the CVEs that affect it right away, then alerts you by email when a new one affects it — including before NVD has finished its analysis. Free, an account is all it takes.