What the vulnerability does
01Description
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.
Explanation of Vulnerability in Simple Terms
02Summary
Contest Gallery contains a SQL injection vulnerability in its database query handling. An attacker with a low-privilege account can craft malicious input to read sensitive data from the site's database, including user information and configuration details. The vulnerability requires authentication but no user interaction. Update to a version newer than 30.0.7.
What an attacker can do
03Attacker Capabilities
Read sensitive data from the site database, including user records and site configuration.
Potential impact on your site
04Site Impact
User data and site configuration may be exposed to authenticated attackers; immediate patching required.
Conditions required to exploit
05Prerequisites
Attacker must have a low-privilege user account on the site.
Key dates
06Disclosure timeline
August 15, 2026
CVE published