CVE detail
CVE-2026-12165
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.
Buzz score
Why this CVE is surfacing
This all-time snapshot uses the same composite formula as Trending across a 30-year evidence window, rather than a current rolling window.
Buzz score components · mention 20.8 · diversity 11.5 · KEV 0.0 · OTX 0.0 · PoC 0.0
Why it matters now
Mention timeline
- Total mentions
- 1
- within the 30d window
- Peak daily
- 1
- highest bucket
Evidence
Source links by recency
7 source links · newest first
- Wordfence Intelligence Weekly WordPress Vulnerability Report (June 15, 2026 to June 21, 2026)Wordfence
henticated (Contributor+) Arbitrary File Read via Data Table Widget CSV File Source 6.5 CVSS Rating 6.5 (Medium) CVE-ID CVE-2026-8118 Patch Status Patched Published Jun 18, 2026 Affected Software Royal Addons for Elementor – Addons and Templates Kit for Elementor [royal-elementor-addons] Researcher Jack Taylor More Details > RTMKit SALESmanago & Leado
vendorwww.wordfence.comJun 25, 2026, 7:02 PM - https://www.wordfence.com/threat-intel/vulnerabilities/id/69b909da-b1b0-4dab-916c-908511f6556f?source=cvewww.wordfence.com
No excerpt available.
Patchwww.wordfence.comJun 17, 2026, 1:19 PM - https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3571733%40contest-gallery&new=3571733%40contest-gallery&sfp_email=&sfph_mail=plugins.trac.wordpress.org
No excerpt available.
Patchplugins.trac.wordpress.orgJun 17, 2026, 1:19 PM - https://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.2/v10/v10-admin/options/change-options-and-sizes.php#L16plugins.trac.wordpress.org
No excerpt available.
Patchplugins.trac.wordpress.orgJun 17, 2026, 1:19 PM - https://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.2/v10/v10-admin/options/change-options-and-sizes.php#L1242plugins.trac.wordpress.org
No excerpt available.
Patchplugins.trac.wordpress.orgJun 17, 2026, 1:19 PM - https://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.2/index.php#L407plugins.trac.wordpress.org
No excerpt available.
Patchplugins.trac.wordpress.orgJun 17, 2026, 1:19 PM - https://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.2/functions/google/cg-create-wp-user-from-google-user.php#L169plugins.trac.wordpress.org
No excerpt available.
Patchplugins.trac.wordpress.orgJun 17, 2026, 1:19 PM
Exploit code
Public exploit repository references
Public PoC repositories are third-party, potentially unsafe artifacts. Treat their code as untrusted and use it only on authorized systems in an isolated, least-privilege environment. cvebuzz does not execute the code or verify that an exploit works.
0 repository references · best confidence N/A · max 0 stars
Related records
Similar CVEs
6 related CVEs with shared weakness or product evidence
- CVE-2026-12502CVSS 8.4 · High
Improper Privilege Management (CWE-269) in `/usr/bin/ltsudo` in Loytec LIP-ME201C, L-INX, L-GATE, L-ROC, L-IOB, L-DALI, L-VIS and L-PAD through 8.4.16 on LINX-A64 allows a `supera…
- CVE-2026-16743CVSS 5.5 · Medium
A flaw was found in accountsservice. The systemd-homed code path for SetIconFile opens a user-supplied filename as root without the validation and privilege drop performed by the…
- CVE-2026-10610CVSS 8.5 · High
Local privilege escalation potentially allowed an attacker to execute arbitrary code as a privileged user.
- CVE-2026-7483CVSS 8.5 · High
Local privilege escalation potentially allowed an attacker to write an arbitrary file with fully controlled content as a privileged user.
- CVE-2026-12981CVSS 7.5 · High
The CAFEHAUS API WordPress plugin through 1.0.0 does not have any authentication or authorisation when updating user passwords, allowing unauthenticated attackers to set the passw…
- CVE-2026-12497CVSS 7.5 · High
The Paid Membership Plugin, Ecommerce, User Registration Form, Login Form, User Profile & Restrict Content WordPress plugin before 4.16.18 does not consistently enforce the role…