Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-3180

CVE-2026-3180: Contest Gallery WordPress SQL Injection

CVE-2026-3180 is a blind SQL injection vulnerability in the Contest Gallery WordPress plugin that allows unauthenticated attackers to extract sensitive database information. This article covers technical details, affected versions, and mitigation.

Published: March 6, 2026

CVE-2026-3180 Overview

The Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe plugin for WordPress contains a blind SQL Injection vulnerability in the cgLostPasswordEmail and cgl_mail parameters. This vulnerability exists in all versions up to and including 28.1.4 due to insufficient escaping on user-supplied parameters and lack of sufficient preparation on the existing SQL query. Unauthenticated attackers can exploit this flaw to append additional SQL queries into already existing queries, enabling extraction of sensitive information from the WordPress database.

Critical Impact

Unauthenticated attackers can extract sensitive database information including user credentials, personal data, and potentially WordPress configuration details through blind SQL injection techniques without any authentication requirements.

Affected Products

  • Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe plugin for WordPress versions up to and including 28.1.4 (cgLostPasswordEmail parameter)
  • Contest Gallery – Upload & Vote Photos, Media, Sell with PayPal & Stripe plugin for WordPress versions up to and including 28.1.4 (cgl_mail parameter patched in 28.1.5)

Discovery Timeline

  • 2026-03-02 - CVE CVE-2026-3180 published to NVD
  • 2026-03-02 - Last updated in NVD database

Technical Details for CVE-2026-3180

Vulnerability Analysis

This blind SQL injection vulnerability resides in the password recovery functionality of the Contest Gallery WordPress plugin. The vulnerable code is located in the users-login-check-ajax-lost-password.php file, which handles lost password requests via AJAX. When processing password reset requests, the plugin fails to properly sanitize and escape user-supplied email parameters before incorporating them into SQL queries.

The vulnerability is classified as CWE-89 (SQL Injection), representing improper neutralization of special elements used in SQL commands. Since this is a blind SQL injection, attackers cannot directly see query results but can infer database contents through time-based or boolean-based techniques. The network-based attack vector requires no authentication, making this vulnerability particularly dangerous for WordPress sites using this plugin.

Root Cause

The root cause is inadequate input validation and the absence of parameterized queries (prepared statements) in the password recovery functionality. The cgLostPasswordEmail and cgl_mail parameters are directly concatenated into SQL queries without proper escaping or use of WordPress's $wpdb->prepare() function. This allows specially crafted input to break out of the intended query context and execute arbitrary SQL commands.

Attack Vector

The attack is executed over the network through the WordPress AJAX handler. An unauthenticated attacker can send malicious POST requests to the lost password functionality endpoint, injecting SQL payloads through the cgLostPasswordEmail or cgl_mail parameters. Since this is a blind injection, attackers typically use time-based techniques (e.g., SLEEP() or BENCHMARK()) or conditional statements to extract data one character at a time by observing response timing differences or behavioral changes.

The vulnerable code paths can be examined in the WordPress plugin repository for version 28.1.3. The fix implemented in versions 28.1.4 and 28.1.5 involves proper parameterization as shown in the updated user functions file.

Detection Methods for CVE-2026-3180

Indicators of Compromise

  • Unusual HTTP POST requests to Contest Gallery AJAX endpoints containing SQL syntax characters (single quotes, UNION, SELECT, SLEEP, BENCHMARK)
  • Abnormally long response times from the lost password functionality indicating time-based SQL injection attempts
  • Web server logs showing repeated requests to users-login-check-ajax-lost-password.php with varying email parameter values
  • Database query logs showing malformed or concatenated SQL statements originating from the Contest Gallery plugin

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules to detect and block SQL injection patterns in cgLostPasswordEmail and cgl_mail parameters
  • Monitor WordPress AJAX endpoints for anomalous traffic patterns and requests containing SQL meta-characters
  • Implement database activity monitoring to detect unauthorized data extraction attempts or unusual query patterns
  • Review web server access logs for patterns consistent with automated SQL injection scanning tools

Monitoring Recommendations

  • Enable detailed WordPress debug logging and monitor for database errors related to the Contest Gallery plugin
  • Configure security plugins like Wordfence to alert on SQL injection attempt patterns targeting the affected parameters
  • Set up real-time alerts for abnormal database query execution times that may indicate time-based blind SQL injection
  • Monitor for bulk data exfiltration patterns that could indicate successful exploitation

How to Mitigate CVE-2026-3180

Immediate Actions Required

  • Update Contest Gallery plugin to version 28.1.5 or later immediately to address both vulnerable parameters
  • If immediate patching is not possible, temporarily disable the Contest Gallery plugin until updates can be applied
  • Review database access logs for signs of prior exploitation and conduct a security audit of stored data
  • Consider implementing additional database access controls to limit potential damage from SQL injection attacks

Patch Information

The vulnerability was partially addressed in version 28.1.4 for the cgLostPasswordEmail parameter and fully patched in version 28.1.5 for the cgl_mail parameter. The fix implements proper SQL query preparation using WordPress's $wpdb->prepare() function. Site administrators should update to version 28.1.5 or later through the WordPress admin dashboard or by downloading from the WordPress plugin repository. Additional vulnerability details are available in the Wordfence threat intelligence report.

Workarounds

  • Implement WAF rules to filter SQL injection payloads targeting the cgLostPasswordEmail and cgl_mail parameters until patching is complete
  • Temporarily disable user registration and password reset functionality in the Contest Gallery plugin settings
  • Use WordPress security plugins with SQL injection protection capabilities to add an additional layer of defense
  • Restrict access to WordPress AJAX handlers at the web server level using IP whitelisting if feasible
bash
# Example .htaccess rule to block suspicious requests to Contest Gallery AJAX
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} users-login-check-ajax-lost-password\.php
RewriteCond %{QUERY_STRING} (union|select|sleep|benchmark) [NC,OR]
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{HTTP:Content-Type} application/x-www-form-urlencoded
RewriteRule .* - [F,L]
</IfModule>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechWordpress

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-89
  • Technical References
  • WordPress Plugin File Reference

  • WordPress Plugin File Reference

  • WordPress Plugin Function Reference

  • WordPress Plugin File Reference

  • WordPress Plugin Function Reference

  • Wordfence Vulnerability Report
  • Related CVEs
  • CVE-2026-3330: Form Maker by 10Web SQLi Vulnerability

  • CVE-2026-6674: WordPress CMS Plugin SQL Injection Flaw

  • CVE-2026-3489: DirectoryPress WordPress SQLi Vulnerability

  • CVE-2026-3773: WordPress Accessibility Suite SQL Injection
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English