Skip to main content

Contest Gallery CVE-2026-40771

| EUVDEUVD-2026-36980 CRITICAL
SQL Injection (CWE-89)
2026-06-15 Patchstack GHSA-w97c-mw8g-gjf8
9.3
CVSS 3.1 · Vendor: Patchstack
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify WordPress sites running Contest Gallery
  2. Delivery
    Send crafted request with SQL payload
  3. Exploit
    Trigger injection in plugin query
  4. Execution
    Extract wp_users hashes and secrets
  5. Persist
    Crack hashes offline
  6. Impact
    Authenticate as admin and persist

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions - remote unauthenticated exploitation against any WordPress site running Contest Gallery plugin version 28.1.6 or earlier with the vulnerable endpoint reachable over HTTP/HTTPS. The CVSS vector AV:N/AC:L/PR:N/UI:N confirms no authentication, no user interaction, and low attack complexity. Practical limits: the specific vulnerable parameter and endpoint have not been disclosed in the available data, the site must have the plugin installed and activated, and the plugin's database queries must be reachable without IP allowlisting or WAF interception; I:N in the CVSS vector also suggests the injection is read/blind-class rather than fully writable, which constrains tampering but not data theft.

Impact

Risk is meaningful but nuanced. The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N indicates remote, unauthenticated, low-complexity exploitation with no user interaction - classic mass-scanning bait for WordPress. However, the impact metrics (C:H/I:N/A:L with Scope:Changed) describe data disclosure plus limited availability impact rather than full database write or RCE, which tempers the headline 9.3 score. There is no CISA KEV listing and no EPSS score supplied in the input, and no public POC has been identified, so widespread automated exploitation is not yet confirmed. WordPress plugin SQLi historically gets weaponized quickly once a Patchstack advisory is public, so treat this as a near-term priority for any site running the plugin even though exploitation telemetry is currently missing.

Exploit ScenarioDerived

An attacker scans the public internet for WordPress sites exposing Contest Gallery endpoints, then sends a crafted HTTP request containing a malicious SQL payload in a vulnerable parameter. Because the injection executes against the WordPress database with the plugin's privileges, the attacker can exfiltrate wp_users password hashes, session tokens stored in wp_usermeta, and arbitrary post or option data, then crack hashes offline to escalate to administrative access on the site.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 15, 2026

Unauthenticated SQL injection in the Contest Gallery WordPress plugin (versions ≤28.1.6) allows remote attackers to inject arbitrary SQL into backend database queries without credentials or user interaction. The flaw was disclosed by Patchstack and tracked as EUVD-2026-36980; no public exploit identified at time of analysis, but the CVSS 9.3 score and PR:N attack vector make it a high-priority issue for any WordPress site running the plugin.

RemediationAI

No vendor-released patch identified at time of analysis - the only reference points to the Patchstack advisory and does not cite a fixed version, so administrators should monitor https://patchstack.com/database/wordpress/plugin/contest-gallery/vulnerability/wordpress-contest-gallery-plugin-28-1-6-sql-injection-vulnerability and the plugin's wordpress.org page for a release above 28.1.6. Until a fixed version is published, the safest compensating control is to deactivate and remove the Contest Gallery plugin (side effect: any active contests, submission forms, and gallery shortcodes will stop rendering); if removal is not acceptable, place the affected plugin endpoints behind a WAF with SQLi signatures or restrict the contest-gallery URL paths to authenticated administrators via .htaccess or an access-control plugin (side effect: legitimate public contest submissions will be blocked). Subscribing to Patchstack's virtual patching feed is a reasonable interim control if available.

Affected VersionsENISA

Contest Gallery n/a ≤28.1.6

Affected Packages

euvd contest_gallery no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Contest Gallery is a third-party WordPress plugin (CPE vendor 'wasiliy_strecker') used to run photo and media contests on WordPress sites. The root cause is CWE-89 (Improper Neutralization of Special Elements used in an SQL Command), meaning user-controllable input is concatenated into SQL statements executed against the WordPress MySQL/MariaDB database without proper parameterization or sanitization. Because WordPress plugins execute within the same database context as the core CMS, an injection in a plugin endpoint typically reaches the entire wp_* schema, including users, options, and posts tables.

Know when Contest Gallery gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Patchstack) PRIMARY 9.3 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L
vuln.today AI 8.2 HIGH

Remote unauthenticated SQLi (AV:N/AC:L/PR:N/UI:N); high confidentiality from data exfiltration, limited integrity via injected SQL, no availability impact, scope unchanged within WordPress DB context.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (Patchstack).

CVSS VectorVendor: Patchstack

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
Low

DescriptionCVE.org

Unauthenticated SQL Injection in Contest Gallery <= 28.1.6 versions.

Executive ViewAI

Why It Matters

Your WordPress installations running the Contest Gallery plugin (versions ≤28.1.6) face a critical security breach risk from an unauthenticated database vulnerability allowing attackers to access or alter your data without credentials. This affects any organization using this plugin and requires immediate action to prevent unauthorized database access, data loss, or system compromise.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Immediately remove or disable the vulnerable plugin; (2) implement WAF rules to block SQL injection attack patterns; (3) enforce principle of least privilege on database user accounts; (4) enable comprehensive database query logging and real-time alerting for anomalous SQL activity; (5) isolate database servers from direct public internet access where operationally feasible.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2021-24915 CRITICAL POC
9.8 Nov 29

The Contest Gallery WordPress plugin before 13.1.0.6 does not have capability checks and does not sanitise or escape the

CVE-2024-43283 MEDIUM POC
5.3 Aug 26

Insertion of Sensitive Information Into Sent Data vulnerability in Wasiliy Strecker / ContestGallery developer Contest G

CVE-2026-16055 HIGH POC
7.5 Aug 05

Contest Gallery WordPress plugin before version 30.0.7 implements a custom front-end login mechanism that issues authent

CVE-2022-4158 HIGH POC
7.5 Dec 26

The Contest Gallery WordPress plugin before 19.1.5.1, Contest Gallery Pro WordPress plugin before 19.1.5.1 do not escape

CVE-2022-4156 HIGH POC
7.5 Dec 26

The Contest Gallery WordPress plugin before 19.1.5.1, Contest Gallery Pro WordPress plugin before 19.1.5.1 do not escape

CVE-2026-16057 MEDIUM POC
6.5 Aug 03

Post-deletion authorization bypass in the Contest Gallery WordPress plugin before 30.0.7 allows any authenticated Author

CVE-2022-4166 MEDIUM POC
6.5 Dec 26

The Contest Gallery WordPress plugin before 19.1.5.1, Contest Gallery Pro WordPress plugin before 19.1.5.1 do not escape

CVE-2022-4165 MEDIUM POC
6.5 Dec 26

The Contest Gallery WordPress plugin before 19.1.5.1, Contest Gallery Pro WordPress plugin before 19.1.5.1 do not escape

CVE-2022-4164 MEDIUM POC
6.5 Dec 26

The Contest Gallery WordPress plugin before 19.1.5.1, Contest Gallery Pro WordPress plugin before 19.1.5.1 do not escape

CVE-2022-4163 MEDIUM POC
6.5 Dec 26

The Contest Gallery WordPress plugin before 19.1.5.1, Contest Gallery Pro WordPress plugin before 19.1.5.1 do not escape

CVE-2022-4162 MEDIUM POC
6.5 Dec 26

The Contest Gallery WordPress plugin before 19.1.5.1, Contest Gallery Pro WordPress plugin before 19.1.5.1 do not escape

CVE-2022-4161 MEDIUM POC
6.5 Dec 26

The Contest Gallery WordPress plugin before 19.1.5.1, Contest Gallery Pro WordPress plugin before 19.1.5.1 do not escape

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy