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.
CVE-2026-12165
Score 8.8 from GitHub Security Advisory (severity: HIGH) published 2026-06-17. a secondary CVSS source baseline 8.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 8.8
- EG Score
- 8.8(high)
- EPSS
- 32.7%
- KEV
- Not listed
Published
June 17, 2026
Last Modified
June 17, 2026
References (6)
- security@wordfencehttps://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.2/functions/google/cg-create-wp-user-from-google-user.php#L169
- security@wordfencehttps://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.2/index.php#L407
- security@wordfencehttps://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.2/v10/v10-admin/options/change-options-and-sizes.php#L1242
- security@wordfencehttps://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.2/v10/v10-admin/options/change-options-and-sizes.php#L16
- security@wordfencehttps://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3571733%40contest-gallery&new=3571733%40contest-gallery&sfp_email=&sfph_mail=
- security@wordfencehttps://www.wordfence.com/threat-intel/vulnerabilities/id/69b909da-b1b0-4dab-916c-908511f6556f?source=cve
Vendor Advisories for CVE-2026-12165(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 36× in last 7d / 103× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 103 total refreshes for this CVE.
- 2026-07-07 04:32 UTCEG score recompute
- 2026-07-07 04:31 UTCGHSA enrichment
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 15:52 UTCEG score recompute
- 2026-07-06 15:52 UTCGHSA enrichment
- 2026-07-06 03:39 UTCEG score recompute
- 2026-07-06 03:39 UTCGHSA enrichment
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 14:57 UTCEG score recompute
- 2026-07-05 14:57 UTCGHSA enrichment
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-05 02:30 UTCEG score recompute
- 2026-07-05 02:30 UTCGHSA enrichment
- 2026-07-04 14:20 UTCEG score recompute
- 2026-07-04 14:20 UTCGHSA enrichment
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 02:11 UTCEG score recompute
- 2026-07-04 02:11 UTCGHSA enrichment
- 2026-07-03 13:59 UTCEG score recompute
- 2026-07-03 13:58 UTCGHSA enrichment
- 2026-07-03 01:47 UTCEG score recompute
- 2026-07-03 01:47 UTCGHSA enrichment
- 2026-07-02 13:37 UTCEG score recompute
- 2026-07-02 13:37 UTCGHSA enrichment
Show 75 moreShow fewer
- 2026-07-02 01:28 UTCEG score recompute
- 2026-07-02 01:28 UTCGHSA enrichment
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-07-01 13:19 UTCEG score recompute
- 2026-07-01 13:19 UTCGHSA enrichment
- 2026-07-01 01:04 UTCEG score recompute
- 2026-07-01 01:04 UTCGHSA enrichment
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-30 12:54 UTCEG score recompute
- 2026-06-30 12:54 UTCGHSA enrichment
- 2026-06-30 00:45 UTCEG score recompute
- 2026-06-30 00:45 UTCGHSA enrichment
- 2026-06-29 14:06 UTCEPSS rescore
- 2026-06-29 12:36 UTCEG score recompute
- 2026-06-29 12:36 UTCGHSA enrichment
- 2026-06-29 00:27 UTCEG score recompute
- 2026-06-29 00:27 UTCGHSA enrichment
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 12:17 UTCEG score recompute
- 2026-06-28 12:17 UTCGHSA enrichment
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 00:07 UTCEG score recompute
- 2026-06-28 00:07 UTCGHSA enrichment
- 2026-06-27 11:57 UTCEG score recompute
- 2026-06-27 11:57 UTCGHSA enrichment
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-26 23:48 UTCEG score recompute
- 2026-06-26 23:48 UTCGHSA enrichment
- 2026-06-26 11:39 UTCEG score recompute
- 2026-06-26 11:39 UTCGHSA enrichment
- 2026-06-25 20:12 UTCEG score recompute
- 2026-06-25 20:12 UTCGHSA enrichment
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 08:02 UTCEG score recompute
- 2026-06-25 08:02 UTCGHSA enrichment
- 2026-06-24 19:52 UTCEG score recompute
- 2026-06-24 19:52 UTCGHSA enrichment
- 2026-06-24 14:05 UTCEPSS rescore
- 2026-06-24 07:44 UTCEG score recompute
- 2026-06-24 07:43 UTCGHSA enrichment
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-23 19:07 UTCEG score recompute
- 2026-06-23 19:07 UTCGHSA enrichment
- 2026-06-23 06:58 UTCEG score recompute
- 2026-06-23 06:57 UTCGHSA enrichment
- 2026-06-22 18:43 UTCEG score recompute
- 2026-06-22 18:43 UTCGHSA enrichment
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-22 06:29 UTCEG score recompute
- 2026-06-22 06:29 UTCGHSA enrichment
- 2026-06-21 18:19 UTCEG score recompute
- 2026-06-21 18:19 UTCGHSA enrichment
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 06:08 UTCEG score recompute
- 2026-06-21 06:08 UTCGHSA enrichment
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-20 17:52 UTCEG score recompute
- 2026-06-20 17:51 UTCGHSA enrichment
- 2026-06-20 05:33 UTCEG score recompute
- 2026-06-20 05:33 UTCGHSA enrichment
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-19 17:17 UTCEG score recompute
- 2026-06-19 17:16 UTCGHSA enrichment
- 2026-06-19 04:49 UTCEG score recompute
- 2026-06-19 04:49 UTCGHSA enrichment
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 16:39 UTCEG score recompute
- 2026-06-18 16:39 UTCGHSA enrichment
- 2026-06-18 04:30 UTCEG score recompute
- 2026-06-18 04:29 UTCGHSA enrichment
Related CVEs(same CWE)
Same CWE
10 shownCWE-269
Frequently asked(5)
What is CVE-2026-12165?
When was CVE-2026-12165 disclosed?
Is CVE-2026-12165 actively exploited?
What is the CVSS score of CVE-2026-12165?
How do I remediate CVE-2026-12165?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-12165
Is Your Infrastructure Affected by CVE-2026-12165?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.