CVE-2026-16586: Contest Gallery <= 30.0.6 - Authenticated (Author+) Second-Order SQL Injection via MultipleFiles Second-Order Payload via 'cg_multiple_files_for_post' -> 'cgRealId'
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 'cgmultiplefilesforpost' -> '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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-16586?
The severity of CVE-2026-16586 is medium with a score of 6.5.
How do I fix CVE-2026-16586?
To fix CVE-2026-16586, upgrade the Contest Gallery plugin to version 30.0.7 or later.
What is the impact of CVE-2026-16586?
CVE-2026-16586 can result in an authenticated second-order SQL injection, potentially compromising sensitive data.
What versions are affected by CVE-2026-16586?
CVE-2026-16586 affects all versions of the Contest Gallery plugin up to and including version 30.0.6.
What causes CVE-2026-16586?
CVE-2026-16586 is caused by insufficient escaping within the 'cg_multiple_files_for_post' -> 'cgRealId' functionality.