Contest Gallery <= 28.1.6 - Unauthenticated SQL Injection
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Wasiliy Strecker / ContestGallery developer | Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe | up to 28.1.6 | — | No fix listed | CNA |
- Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe VendorWasiliy Strecker / ContestGallery developer Affected up to 28.1.6 Fixed in — No fix listed CNA
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:contest-gallery:contest_gallery:*:*:*:*:*:*:*:* | — | — | Wasiliy Strecker / ContestGallery developer |
- cpe:2.3:a:contest-gallery:contest_gallery:*:*:*:*:*:*:*:* Versions — — ·Wasiliy Strecker / ContestGallery developer
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-8912
- 2026-10-03 Alias added: GHSA-7v7x-p7vg-p2vc
References
Other 5
- https://www.wordfence.com/threat-intel/vulnerabilities/id/71f2f8c4-00ee-4ab4-b0e0-9ddac46818b3?source=cve
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/v10/v10-frontend/user_upload/users-upload-check.php#L1193
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/v10/v10-frontend/user_upload/users-upload-check.php#L1036
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/ajax/ajax-functions-frontend.php#L837
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/functions/frontend/cg-general-frontend.php#L12
More Wasiliy Strecker / ContestGallery developer vulnerabilities
- TI-2022-03804 Contest Gallery < 19.1.5 - Unauthenticated SQL Injection CVSS 3.1HIGH 7.5
- TI-2022-03802 Contest Gallery < 19.1.5.1 - Unauthenticated SQL Injection CVSS 3.1HIGH 7.5
- TI-2024-26556 WordPress Contest Gallery plugin <= 23.1.2 - Cross Site Scripting (XSS) vulnerability CVSS 3.1HIGH 7.1
- TI-2022-03797 Contest Gallery < 19.1.5 - Admin+ SQL Injection CVSS 3.1MEDIUM 6.5
- TI-2022-03812 Contest Gallery < 19.1.5 - Author+ SQL Injection CVSS 3.1MEDIUM 6.5
- TI-2022-03811 Contest Gallery < 19.1.5 - Author+ SQL Injection CVSS 3.1MEDIUM 6.5
Sources
- CVE-2026-8912 · CVE Program
- CVE-2026-8912 · NVD
- FIRST EPSS
- GHSA-7v7x-p7vg-p2vc · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences