Unauthenticated Blind SQL Injection (CVE‑2026‑3180) in WordPress Contest Gallery Plugin Affects Sites Running ≤ 28.1.4
What Happened – A Boolean‑based blind SQL injection (SQLi) was discovered in the Contest Gallery WordPress plugin (versions ≤ 28.1.4). The flaw resides in the cgl_mail parameter, where sanitize_email() fails to strip a single‑quote in the local part of an email address, allowing unauthenticated attackers to inject arbitrary SQL via the wpdb->get_row() call.
Why It Matters for TPRM –
- The vulnerability can be exploited without credentials, giving threat actors a low‑bar entry point into any site that uses the plugin.
- Successful exploitation may lead to data extraction from the WordPress database (e.g., user accounts, site configuration, or uploaded content).
- The plugin is widely adopted across agencies, SaaS portals, and e‑commerce sites, expanding the potential attack surface for third‑party risk programs.
Who Is Affected –
- Industries: Technology / SaaS, Media & Publishing, E‑commerce, Government portals, Education sites that run WordPress with the Contest Gallery plugin.
- Vendor type: WordPress plugin / CMS add‑on (classified as OTHER in our taxonomy).
Recommended Actions –
- Inventory all WordPress installations and verify whether Contest Gallery ≤ 28.1.4 is present.
- Immediately upgrade to the latest patched version (≥ 28.1.5) or remove the plugin if not required.
- Apply Web Application Firewall (WAF) rules to block suspicious
admin‑ajax.phprequests containing SQL meta‑characters. - Conduct a database audit for anomalous queries or unexpected data changes.
Technical Notes –
- Attack vector: Unauthenticated HTTP POST to
admin‑ajax.phpwith craftedcgl_mailvalue. - CVE: CVE‑2026‑3180 (Blind SQLi).
- Exploitation: Boolean‑based blind technique; attacker can infer true/false responses to enumerate data.
- Data at risk: WordPress tables (
wp_contest_gallery_*), user‑generated content, potentially full site database. - Mitigation: Use prepared statements (
$wpdb->prepare()), enforce stricter email sanitisation, and rotate any compromised credentials.
Source: Exploit‑DB #52609