CVE-2026-12165
Last modified
CVE-2026-12165 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. The Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 30.0.2 via the `RegistryUserRole` parameter. This is due to the plugin's admin menu being registered at the `edit_posts` capability level — granting Contributor-level users access to the plugin's admin pages and a valid `cg_admin` nonce — while the option-saving handler in `change-options-and-sizes.php` performs no `current_user_can()` capability check beyond `check_admin_referer('cg_admin')`, and the `RegistryUserRole` value is processed only through `sanitize_text_field()` and `htmlentities()` without restriction to an allowlist of permitted role names. EPSS estimates a 0.41% chance of exploitation in the next 30 days.
Description
The Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe plugin for WordPress is vulnerable to Privilege Escalation in all versions up to, and including, 30.0.2 via the `RegistryUserRole` parameter. This is due to the plugin's admin menu being registered at the `edit_posts` capability level — granting Contributor-level users access to the plugin's admin pages and a valid `cg_admin` nonce — while the option-saving handler in `change-options-and-sizes.php` performs no `current_user_can()` capability check beyond `check_admin_referer('cg_admin')`, and the `RegistryUserRole` value is processed only through `sanitize_text_field()` and `htmlentities()` without restriction to an allowlist of permitted role names. This makes it possible for authenticated attackers, with author-level access and above, to overwrite the plugin's stored `RegistryUserRole` option with `administrator`, which the `cg_create_wp_user_from_google_user` function then reads back from the `contest_gal1ery_registry_and_login_options` database table without any allowlist validation and passes directly to `wp_update_user()`, effectively promoting a newly registered Google sign-in account to Administrator.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-12165?
How severe is CVE-2026-12165?
How do I fix CVE-2026-12165?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-12158The RegistrationMagic – User Registration Forms Plugin plugi…8.8
- CVE-2026-1216The RSS Aggregator plugin for WordPress is vulnerable to Ref…7.2
- CVE-2026-12161Improper input validation in the SSH Elevate Shell feature a…8.8
- CVE-2026-12162Improper host validation in the social login autofill featur…5.5
- CVE-2026-12163Fortra File Integrity Monitoring (FIM), formerly Tripwire En…4.8
- CVE-2026-12164Fortra File Integrity Monitoring (FIM), formerly Tripwire En…4.4
- CVE-2026-12166A NULL pointer dereference vulnerability for driver `GFAC_Sy…5.5
- CVE-2026-12167The Minifilter communication port for driver `GFAC_Sys_x64.s…7.8
- CVE-2026-12168An improper validation vulnerability for driver `GFAC_Sys_x6…7.8
- CVE-2026-1217The Yoast Duplicate Post plugin for WordPress is vulnerable …5.4
- CVE-2026-12170The AcyMailing – An Ultimate Newsletter Plugin and Marketing…6.4
- CVE-2026-12174A security vulnerability has been detected in D-Link DCS-935…8.8
Are you affected by CVE-2026-12165?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
