CVE-2026-16586: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in contest-gallery Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe
The Contest Gallery WordPress plugin is affected by a second-order SQL injection vulnerability in all versions up to and including 30.0.7. This flaw allows authenticated users with author-level access or higher to inject additional SQL queries via a specific parameter, potentially exposing sensitive database information. The vulnerability arises from insufficient escaping and preparation of user-supplied input in SQL commands.
AI Analysis
Technical Summary
CVE-2026-16586 describes a second-order SQL injection vulnerability in the Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe WordPress plugin. The issue occurs through the 'cg_multiple_files_for_post' parameter, specifically the 'cgRealId' field, due to inadequate escaping and lack of proper SQL query preparation. Authenticated attackers with author-level privileges or above can append malicious SQL queries to existing ones, enabling extraction of sensitive data from the database. The vulnerability affects all versions up to and including 30.0.7.
Potential Impact
An attacker with author-level access or higher can exploit this vulnerability to extract sensitive information from the database by injecting additional SQL queries. The vulnerability does not impact availability or integrity directly but compromises confidentiality of the data stored in the database.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict author-level access to trusted users only and monitor for suspicious activity related to the vulnerable parameter. Avoid using the affected plugin versions in sensitive environments.
CVE-2026-16586: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in contest-gallery Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe
Description
The Contest Gallery WordPress plugin is affected by a second-order SQL injection vulnerability in all versions up to and including 30.0.7. This flaw allows authenticated users with author-level access or higher to inject additional SQL queries via a specific parameter, potentially exposing sensitive database information. The vulnerability arises from insufficient escaping and preparation of user-supplied input in SQL commands.
CVSS v3.1
Score 6.5medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-16586 describes a second-order SQL injection vulnerability in the Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe WordPress plugin. The issue occurs through the 'cg_multiple_files_for_post' parameter, specifically the 'cgRealId' field, due to inadequate escaping and lack of proper SQL query preparation. Authenticated attackers with author-level privileges or above can append malicious SQL queries to existing ones, enabling extraction of sensitive data from the database. The vulnerability affects all versions up to and including 30.0.7.
Potential Impact
An attacker with author-level access or higher can exploit this vulnerability to extract sensitive information from the database by injecting additional SQL queries. The vulnerability does not impact availability or integrity directly but compromises confidentiality of the data stored in the database.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict author-level access to trusted users only and monitor for suspicious activity related to the vulnerable parameter. Avoid using the affected plugin versions in sensitive environments.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Wordfence
- Date Reserved
- 2026-07-22T13:45:47.903Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7fe005bf8831d5395c168a
Added to database: 08/15/2026, 03:41:57 UTC
Last enriched: 08/15/2026, 03:58:41 UTC
Last updated: 08/15/2026, 04:02:18 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.