CVE-2026-8912: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in contest-gallery Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe
The Contest Gallery plugin for WordPress is vulnerable to SQL Injection via the 'form_input' 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 'post_cg_gallery_form_upload' AJAX action (specifically the 'cb' branch of the included users-upload-check.php, where $f_input_id is concatenated unquoted into 'SELECT Field_Content FROM ... WHERE id = $f_input_id'). The endpoint is gated only by a public frontend nonce ('cg1l_action' / 'cg_nonce') 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.
AI Analysis
Technical Summary
CVE-2026-8912 is an SQL Injection vulnerability in the Contest Gallery plugin for WordPress, affecting versions up to 28.1.6. The issue arises from improper neutralization of special elements in the 'form_input' parameter used in the 'post_cg_gallery_form_upload' AJAX action. Specifically, the parameter $f_input_id is concatenated unquoted into an SQL query, allowing unauthenticated attackers to append additional SQL commands. The endpoint is protected only by a public frontend nonce exposed in the page source, which does not provide effective security. This vulnerability enables extraction of sensitive information from the database without authentication.
Potential Impact
An attacker can exploit this vulnerability to perform SQL Injection attacks, potentially extracting sensitive information from the database. The vulnerability does not allow modification or deletion of data (no integrity or availability impact indicated), but confidentiality is compromised. The attack requires no privileges or user interaction and can be performed remotely over the network.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, consider restricting access to the affected AJAX endpoint or implementing web application firewall (WAF) rules to detect and block malicious SQL payloads targeting the 'form_input' parameter. Monitor for updates from the vendor and apply patches promptly once available.
CVE-2026-8912: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in contest-gallery Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe
Description
The Contest Gallery plugin for WordPress is vulnerable to SQL Injection via the 'form_input' 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 'post_cg_gallery_form_upload' AJAX action (specifically the 'cb' branch of the included users-upload-check.php, where $f_input_id is concatenated unquoted into 'SELECT Field_Content FROM ... WHERE id = $f_input_id'). The endpoint is gated only by a public frontend nonce ('cg1l_action' / 'cg_nonce') 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.
CVSS v3.1
Score 7.5high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-8912 is an SQL Injection vulnerability in the Contest Gallery plugin for WordPress, affecting versions up to 28.1.6. The issue arises from improper neutralization of special elements in the 'form_input' parameter used in the 'post_cg_gallery_form_upload' AJAX action. Specifically, the parameter $f_input_id is concatenated unquoted into an SQL query, allowing unauthenticated attackers to append additional SQL commands. The endpoint is protected only by a public frontend nonce exposed in the page source, which does not provide effective security. This vulnerability enables extraction of sensitive information from the database without authentication.
Potential Impact
An attacker can exploit this vulnerability to perform SQL Injection attacks, potentially extracting sensitive information from the database. The vulnerability does not allow modification or deletion of data (no integrity or availability impact indicated), but confidentiality is compromised. The attack requires no privileges or user interaction and can be performed remotely over the network.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, consider restricting access to the affected AJAX endpoint or implementing web application firewall (WAF) rules to detect and block malicious SQL payloads targeting the 'form_input' parameter. Monitor for updates from the vendor and apply patches promptly once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-05-18T22:16:07.462Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a0c560fec166c07b09e6aeb
Added to database: 05/19/2026, 12:22:39 UTC
Last enriched: 05/19/2026, 12:36:35 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 61
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.