CVE-2026-16586Contest Gallery <= 30.0.6 - Authenticated (Author+) Second-Order SQL Injection via MultipleFiles Second-Order Payload via 'cg_multiple_files_for_post' -> 'cgRealId'
Updated under an hour ago ()
Does this affect you?
It affects contest-gallery Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
The Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe plugin for WordPress is vulnerable to Second-Order SQL Injection via MultipleFiles Second-Order Payload via 'cg_multiple_files_for_post' -> 'cgRealId' in all versions up to, and including, 30.0.7 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with author-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
- CVSS
- 6.5 MEDIUM (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Weakness (CWE)
- CWE-89
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- Wordfence
- NVD analysis
- Deferred
- Record last updated
- Aug 17, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
contest-gallery Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe contest_gallery:upload_and_vote_photos_media_sell_with_paypal_and_stripe (from the name) | through 30.0.7 | CNA record |
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/294e1822-b92c-48a4-bfc6-5a89cfbe0bc7?source=cve
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.6/ajax/ajax-functions-backend.php#L310
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.7/ajax/ajax-functions-backend.php#L310
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.7/ajax/ajax-functions-backend.php#L286
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.7/ajax/ajax-functions-backend.php#L135
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.7/v10/v10-admin/gallery/change-gallery/0_change-gallery.php#L475
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.7/v10/v10-admin/gallery/change-gallery/0_change-gallery.php#L683
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.6/ajax/ajax-functions-backend.php#L286
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.6/ajax/ajax-functions-backend.php#L135
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.6/v10/v10-admin/gallery/change-gallery/0_change-gallery.php#L475
- https://plugins.trac.wordpress.org/browser/contest-gallery/tags/30.0.6/v10/v10-admin/gallery/change-gallery/0_change-gallery.php#L683
- https://plugins.trac.wordpress.org/changeset?reponame=&old=3631928%40contest-gallery&new=3631928%40contest-gallery
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.