{"schemaVersion":3,"id":"CVE-2026-8912","aliases":[],"status":"published","duplicateOf":null,"title":"Contest Gallery <= 28.1.6 - Unauthenticated SQL Injection","description":"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.","dates":{"published":"2026-05-19T11:18:46.737Z","modified":"2026-05-19T16:34:12.615Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"wordfence","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00505,"percentile":0.42244,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0.11399999999999995,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00391},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00505,"percentile":0.42244}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00391,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00505,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00505,"percentile":0.42244}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"contest-gallery","product":"contest gallery – upload & vote photos, media, sell with paypal & stripe","name":"Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe","label":"contest gallery – upload & vote photos, media, sell with paypal & stripe","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 28.1.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 28.1.6","eol":null,"hubHref":"/vendor/contest-gallery/contest_gallery_-_upload__vote_photos_media_sell_with_paypal__stripe"},{"vendor":"wordpress","product":"contest-gallery","name":"Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe","label":"contest-gallery","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 28.1.6 (fixed in 28.1.7)","noFixRecorded":false,"fixedIn":"28.1.7"}],"versionsText":"≤ 28.1.6 (fixed in 28.1.7)","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/71f2f8c4-00ee-4ab4-b0e0-9ddac46818b3?source=cve","label":"www.wordfence.com/threat-intel/vulnerabilities/id/71f2f8c4-00ee-4ab4-b0e0-9ddac46818b3?source=cve","hostname":"www.wordfence.com","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/v10/v10-frontend/user_upload/users-upload-check.php#L1193","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/v10/v10-frontend/user_upload/users-upload-check.php#L1036","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/ajax/ajax-functions-frontend.php#L837","label":"plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/ajax/ajax-functions-frontend.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/contest-gallery/tags/28.1.5/functions/frontend/cg-general-frontend.php#L12","label":"plugins.trac.wordpress.org/browser/…","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/71f2f8c4-00ee-4ab4-b0e0-9ddac46818b3","label":"www.wordfence.com/threat-intel/vulnerabilities/id/71f2f8c4-00ee-4ab4-b0e0-9ddac46818b3","hostname":"www.wordfence.com","tags":["Vendor Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-05-19T11:18:46.737Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-05-19T16:34:12.615Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T18:41:50.507Z","stale":false,"partial":false}}