CVE-2026-8912 HIGH

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

Vendor Contest-Gallery
Product Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe
Weakness CWE-89 · SQLi
Published May 19, 2026
Last update May 19, 2026

CVSS base score

7.5/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality High
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

Contest Gallery contains a SQL injection vulnerability in its database query handling. An attacker can craft malicious input to read sensitive data from the site's database without authentication. The vulnerability affects all versions up to 28.1.6. Site administrators should update immediately to a patched version.

What an attacker can do

03Attacker Capabilities

Read sensitive data from the site database, including user information and configuration details.

Potential impact on your site

04Site Impact

Attackers can extract user data, email addresses, and other sensitive information stored in your database.

Conditions required to exploit

05Prerequisites

Network access only; no authentication or user interaction required.

Key dates

06Disclosure timeline

May 19, 2026 CVE published
May 19, 2026 Record updated