Skip to content

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

HighCVSS 7.5 EPSS 0.39%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
PHPWordPress

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
contest-gallery Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe <= 28.1.6 after 28.1.6 Fixed
wordpress contest-gallery(WordPress) < 28.1.7 28.1.7 Fixed

Affected products

ProductAffected versionsFixed in
contest-gallery Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe <= 28.1.6 No fix listed
wordpress contest-gallery(WordPress) < 28.1.7 28.1.7

References