CVE-2026-16586
Received Received - Intake

Second-Order SQL Injection in Contest Gallery WordPress Plugin

Vulnerability report for CVE-2026-16586, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-15

Last updated on: 2026-08-15

Assigner: Wordfence

Description

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-15
Last Modified
2026-08-15
Generated
2026-08-15
AI Q&A
2026-08-15
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
contest_gallery upload_and_vote_photos_media_sell_with_paypal_and_stripe to 30.0.7 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 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.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a Second-Order SQL Injection in the Contest Gallery WordPress plugin. It occurs due to insufficient escaping of user input and lack of proper SQL query preparation. Attackers with author-level access or higher can inject malicious SQL payloads via the 'cg_multiple_files_for_post' parameter, specifically targeting 'cgRealId'. This allows them to manipulate existing SQL queries and extract sensitive data from the database.

Impact Analysis

If you use the affected Contest Gallery plugin (versions up to 30.0.7), an attacker with author-level access could exploit this to steal sensitive information from your WordPress database. This includes user credentials, personal data, or other confidential information stored in the database. The attack requires authentication but can be performed by any authenticated user with author privileges or higher.

Compliance Impact

This vulnerability could lead to unauthorized access to personal data, which may violate GDPR and HIPAA compliance requirements. GDPR mandates strict protection of personal data, and a breach could result in significant fines. HIPAA requires safeguarding protected health information, and this vulnerability could expose such data, leading to compliance violations and legal consequences.

Mitigation Strategies

Update the Contest Gallery plugin to the latest version immediately to patch the vulnerability. If an update is not available, consider disabling the plugin temporarily until a fix is released. Ensure all WordPress installations and plugins are regularly updated to prevent similar issues.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-16586. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart