Quick answers
- Is CVE-2026-8912 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-8912 being exploited in the wild.
- How severe is CVE-2026-8912?
- High severity, with a CVSS score of 7.5, published 19 May 2026.
- Which products and versions are affected?
- Contest Gallery Up to and including 28.1.6.
- Is there a fix for CVE-2026-8912?
- No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
- How is CVE-2026-8912 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-8912?
- Check whether you run Contest Gallery at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
The Contest Gallery plugin for WordPress is vulnerable to unauthenticated SQL Injection via the 'form_input' parameter in the 'post_cg_gallery_form_upload' AJAX action. The root cause is insufficient escaping and a lack of SQL preparation in the 'cb' branch of 'users-upload-check.php', where the '$f_input_id' variable is concatenated unquoted into a SELECT query. Although the endpoint is protected by a nonce, this nonce is publicly exposed in the page source of any gallery page, making the vulnerability accessible to unauthenticated remote attackers. Successful exploitation allows for the extraction of sensitive data from the WordPress database. The vulnerability is present in versions up to and including 28.1.6.
Affected products
- Contest Gallery Contest Gallery Up to and including 28.1.6
Timeline
- 2026-05-19: disclosed
- 2026-05-19: advisory
References
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/ajax/ajax-functions-frontend.php
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/functions/frontend/cg-general-frontend.php
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/v10/v10-frontend/user_upload/users-upload-check.php
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/v10/v10-frontend/user_upload/users-upload-check.php
- https://www.wordfence.com/threat-intel/vulnerabilities/id/71f2f8c4-00ee-4ab4-b0e0-9ddac46818b3?source=cve