A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2024-30236

CVE-2024-30236: Contest Gallery SQL Injection Flaw

CVE-2024-30236 is a SQL injection vulnerability in the Contest Gallery WordPress plugin that allows attackers to manipulate database queries. This article covers the technical details, affected versions up to 21.3.4, and mitigation.

Published: May 26, 2026

CVE-2024-30236 Overview

CVE-2024-30236 is a SQL injection vulnerability in the Contest Gallery plugin for WordPress, developed by Wasiliy Strecker. The flaw affects all versions up to and including 21.3.4. Authenticated attackers with low privileges can inject arbitrary SQL commands into database queries because the plugin fails to properly neutralize special elements in user-supplied input [CWE-89]. Successful exploitation compromises the confidentiality, integrity, and availability of the underlying WordPress database. The vulnerability carries network attack vector characteristics with scope change, indicating downstream impact beyond the vulnerable component.

Critical Impact

Authenticated attackers can extract sensitive data, modify database records, and pivot to full site compromise across WordPress installations running Contest Gallery <= 21.3.4.

Affected Products

  • Contest Gallery WordPress plugin versions up to and including 21.3.4
  • WordPress sites with contest-gallery plugin installed and activated
  • Multi-site WordPress deployments using the affected plugin

Discovery Timeline

  • 2024-03-28 - CVE-2024-30236 published to NVD
  • 2026-04-23 - Last updated in NVD database

Technical Details for CVE-2024-30236

Vulnerability Analysis

The Contest Gallery plugin constructs SQL queries using attacker-controllable parameters without proper sanitization or parameterized statements. An authenticated user with low privileges supplies crafted input that breaks out of the intended query context. The database engine then executes attacker-supplied SQL alongside the legitimate query.

The vulnerability falls under CWE-89: Improper Neutralization of Special Elements used in an SQL Command. Scope change indicates the injected SQL can reach data beyond the plugin's own tables, including core WordPress tables such as wp_users and wp_usermeta. This enables privilege escalation by modifying user roles or extracting password hashes.

The EPSS score is 0.498% (66th percentile), reflecting moderate exploitation likelihood relative to other vulnerabilities. No public proof-of-concept has been published at the time of disclosure.

Root Cause

The root cause is direct concatenation of unsanitized request parameters into SQL statements within the plugin's PHP code. WordPress provides the $wpdb->prepare() API for parameterized queries, but the vulnerable code paths bypass this safeguard. Input validation routines do not strip or escape SQL metacharacters such as single quotes, comments, and statement terminators.

Attack Vector

An attacker authenticates to the target WordPress instance with any account that has access to the plugin's endpoints. The attacker then sends an HTTP request containing SQL payloads in vulnerable parameters. The plugin passes the payload directly to the database, executing attacker-controlled queries. No user interaction beyond the attacker's own request is required.

The vulnerability mechanism is documented in the Patchstack SQL Injection Advisory. Specific payload examples are not publicly disclosed to limit weaponization.

Detection Methods for CVE-2024-30236

Indicators of Compromise

  • Unexpected outbound database query patterns containing UNION SELECT, SLEEP(, or INFORMATION_SCHEMA references in WordPress access logs
  • New or modified administrator accounts in wp_users without corresponding audit log entries
  • HTTP requests to Contest Gallery plugin endpoints under /wp-content/plugins/contest-gallery/ containing encoded SQL metacharacters
  • Anomalous spikes in database error log entries originating from the plugin's PHP files

Detection Strategies

  • Inspect web server access logs for SQL injection signatures targeting Contest Gallery parameters, including ', --, /*, and 0x hex sequences
  • Deploy a Web Application Firewall (WAF) ruleset that blocks SQL injection patterns on plugin URIs
  • Enable WordPress database query logging and alert on queries originating from plugin code that include user-controlled string concatenation
  • Compare installed plugin version against the patched release using wp plugin list --name=contest-gallery via WP-CLI

Monitoring Recommendations

  • Monitor authentication events for low-privilege accounts performing administrative actions following plugin endpoint access
  • Track changes to WordPress user roles and capabilities in near real-time
  • Forward WordPress and web server logs to a centralized analytics platform for correlation across the environment
  • Baseline normal plugin traffic volume and alert on deviations that may indicate automated exploitation attempts

How to Mitigate CVE-2024-30236

Immediate Actions Required

  • Update the Contest Gallery plugin to a version higher than 21.3.4 immediately
  • Audit all WordPress user accounts and revoke any unrecognized or unnecessary privileges
  • Rotate WordPress administrator passwords and force password resets for all users
  • Review database contents for unauthorized modifications, especially in wp_users, wp_usermeta, and wp_options

Patch Information

Refer to the [Patchstack Vulnerability Report](https://patchstack.com/database/vulnerability/contest-gallery/wordpress-contest-gallery-plugin-21-3-4-sql injection-vulnerability?_s_id=cve) for the fixed version and remediation guidance. Upgrade through the WordPress plugin dashboard or via WP-CLI using wp plugin update contest-gallery. Verify the patch by confirming the installed version exceeds 21.3.4 after the update completes.

Workarounds

  • Deactivate and remove the Contest Gallery plugin until patching is feasible
  • Restrict access to plugin endpoints at the web server layer using IP allowlisting for administrative paths
  • Deploy virtual patching through a WAF with rules targeting the vulnerable parameters
  • Limit account creation and reduce the number of authenticated low-privilege users on exposed WordPress instances
bash
# Configuration example: update Contest Gallery via WP-CLI and verify version
wp plugin update contest-gallery
wp plugin list --name=contest-gallery --fields=name,status,version

# Optional: temporarily deactivate the plugin if a patch cannot be applied
wp plugin deactivate contest-gallery

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechContest Gallery

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability0.50%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • Patchstack SQL Injection Advisory

  • Patchstack Vulnerability Report
  • Related CVEs
  • CVE-2024-10687: Contest Gallery SQL Injection Vulnerability

  • CVE-2025-48291: Contest Gallery Stored XSS Vulnerability

  • CVE-2026-24964: Contest Gallery SSRF Vulnerability

  • CVE-2026-25035: Contest Gallery Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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