Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Lifecycle Timeline
1DescriptionCVE.org
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.
AnalysisAI
SQL injection in the Contest Gallery WordPress plugin (versions through 28.1.6) allows unauthenticated remote attackers to extract sensitive database contents by abusing the 'form_input' parameter handled by the 'post_cg_gallery_form_upload' AJAX action. The endpoint is gated only by a public nonce that is exposed in the page source of any public gallery page, effectively offering no protection against external attackers. No public exploit identified at time of analysis, but the issue was disclosed by Wordfence and affects a publicly reachable PHP endpoint.
Technical ContextAI
Contest Gallery is a WordPress plugin for photo upload, voting, and media monetization that ships with a frontend AJAX handler ('post_cg_gallery_form_upload') routed through users-upload-check.php. In the 'cb' branch of that handler, the attacker-controlled identifier $f_input_id is concatenated directly and unquoted into the SQL string 'SELECT Field_Content FROM ... WHERE id = $f_input_id' without using $wpdb->prepare or sanitization. This is a textbook CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) defect, made reachable because the only access control is a frontend nonce ('cg1l_action' / 'cg_nonce') that WordPress emits to anonymous visitors on any public gallery page, so any reader of the HTML can obtain a valid token and reach the vulnerable code path.
RemediationAI
No vendor-released patched version is identified in the provided data (Wordfence advisory references trac tag 28.1.5 as vulnerable and the description lists 28.1.6 as the last affected); administrators should consult https://www.wordfence.com/threat-intel/vulnerabilities/id/71f2f8c4-00ee-4ab4-b0e0-9ddac46818b3?source=cve for the fixed release once published and upgrade to the first version above 28.1.6. Until a fix is available, compensating controls include disabling/deactivating the Contest Gallery plugin (eliminates all gallery and upload functionality), blocking the 'post_cg_gallery_form_upload' AJAX action at the WAF or web server level by denying POST requests to /wp-admin/admin-ajax.php where action=post_cg_gallery_form_upload (breaks legitimate frontend uploads/votes), or restricting access to gallery pages via authentication so the gating nonce is not publicly emitted (changes the site's public UX). Wordfence rule sets typically virtual-patch this class of issue and are a reasonable interim control for sites that must keep the plugin enabled.
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro
The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all
Same weakness CWE-89 – SQL Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-30893
GHSA-7v7x-p7vg-p2vc