CVE-2026-8912contest-gallery Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe
High 7.5 No auth needed
Follow: this CVE · contest-gallery · contest-gallery Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- May 19, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-89
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- contest-gallery · Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.