CVE-2026-8912: Contest Gallery <= 28.1.6 - Unauthenticated SQL Injection

Published May 19, 2026
·
Updated

The Contest Gallery plugin for WordPress is vulnerable to SQL Injection via the 'forminput' parameter in versions up to, and including, 28.1.6. This is due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query inside the unauthenticated 'postcggalleryformupload' AJAX action (specifically the 'cb' branch of the included users-upload-check.php, where $finputid is concatenated unquoted into 'SELECT FieldContent FROM ... WHERE id = $finputid'). The endpoint is gated only by a public frontend nonce ('cg1laction' / 'cgnonce') that is exposed in the page source of any public gallery page. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

Affected Software

1 affected component
Contest Gallery Contest Gallery<=28.1.6

Event History

May 19, 2026
CVE Published
via MITRE·11:18 AM
Data Sourced
via MITRE·11:18 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 PM
DescriptionSeverityWeakness
Jun 29, 58424
Event
via FIRST·03:42 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-8912?

CVE-2026-8912 has a high severity due to its ability to allow unauthenticated SQL injection attacks.

2

How do I fix CVE-2026-8912?

To fix CVE-2026-8912, update the Contest Gallery plugin to version 28.1.7 or later.

3

Which versions are affected by CVE-2026-8912?

CVE-2026-8912 affects versions of Contest Gallery up to and including 28.1.6.

4

What kind of attacks can be performed using CVE-2026-8912?

CVE-2026-8912 can be exploited to perform SQL injection attacks that may lead to unauthorized data access or manipulation.

5

Is user authentication required to exploit CVE-2026-8912?

No, CVE-2026-8912 can be exploited without any user authentication.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203