CVE Explorer
CVE-2026-8912
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"defaultStatus":"unaffected","product":"Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe","vendor":"contest-gallery","versions":[{"lessThanOrEqual":"28.1.6","status":"affected","version":"0","versionType":"semver"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:72d6844d786660c10197c33db4d73f89bb0826d5bc3cfe0b5e2e661847d86290 · sha256:e479eb46992930d5… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"baseScore":7.5,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:72d6844d786660c10197c33db4d73f89bb0826d5bc3cfe0b5e2e661847d86290 · sha256:e479eb46992930d5… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-89","description":"CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:72d6844d786660c10197c33db4d73f89bb0826d5bc3cfe0b5e2e661847d86290 · sha256:e479eb46992930d5… · /containers/cna/problemTypes/0/descriptions/0
Source references
5 source assertions{"url":"https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/ajax/ajax-functions-frontend.php#L837"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:72d6844d786660c10197c33db4d73f89bb0826d5bc3cfe0b5e2e661847d86290 · sha256:e479eb46992930d5… · /containers/cna/references/3
{"url":"https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/functions/frontend/cg-general-frontend.php#L12"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:72d6844d786660c10197c33db4d73f89bb0826d5bc3cfe0b5e2e661847d86290 · sha256:e479eb46992930d5… · /containers/cna/references/4
{"url":"https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/v10/v10-frontend/user_upload/users-upload-check.php#L1036"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:72d6844d786660c10197c33db4d73f89bb0826d5bc3cfe0b5e2e661847d86290 · sha256:e479eb46992930d5… · /containers/cna/references/2
{"url":"https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/v10/v10-frontend/user_upload/users-upload-check.php#L1193"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:72d6844d786660c10197c33db4d73f89bb0826d5bc3cfe0b5e2e661847d86290 · sha256:e479eb46992930d5… · /containers/cna/references/1
{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/71f2f8c4-00ee-4ab4-b0e0-9ddac46818b3?source=cve"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:72d6844d786660c10197c33db4d73f89bb0826d5bc3cfe0b5e2e661847d86290 · sha256:e479eb46992930d5… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.