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-2021-24762

CVE-2021-24762: Perfect Survey WordPress Plugin SQLi Flaw

CVE-2021-24762 is a SQL injection vulnerability in the Perfect Survey WordPress plugin that allows unauthenticated attackers to execute arbitrary SQL queries. This article covers technical details, affected versions, and steps.

Published: February 25, 2026

CVE-2021-24762 Overview

CVE-2021-24762 is a SQL Injection vulnerability affecting the Perfect Survey WordPress plugin before version 1.5.2. The vulnerability exists because the plugin fails to properly validate and escape the question_id GET parameter before using it in a SQL statement within the get_question AJAX action. This flaw allows unauthenticated attackers to execute arbitrary SQL queries against the WordPress database.

Critical Impact

Unauthenticated attackers can exploit this SQL injection vulnerability to extract sensitive data from the WordPress database, including user credentials, personal information, and potentially gain full database control. The vulnerability requires no authentication and can be exploited remotely over the network.

Affected Products

  • Perfect Survey WordPress Plugin versions prior to 1.5.2
  • WordPress installations running vulnerable versions of the Perfect Survey plugin
  • Getperfectsurvey Perfect Survey plugin

Discovery Timeline

  • 2022-02-01 - CVE-2021-24762 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-24762

Vulnerability Analysis

This SQL injection vulnerability stems from improper input handling in the Perfect Survey plugin's AJAX functionality. When processing survey-related requests, the plugin accepts a question_id parameter via GET requests and directly incorporates this user-supplied value into SQL queries without proper sanitization or parameterization.

The vulnerable endpoint is accessible through WordPress's AJAX interface (wp-admin/admin-ajax.php) using the get_question action. Since WordPress AJAX endpoints can be configured to accept requests from unauthenticated users, attackers do not need any WordPress credentials to exploit this vulnerability. The lack of authentication requirements combined with the direct SQL query construction creates a highly exploitable attack surface.

Root Cause

The root cause of this vulnerability is the failure to implement proper input validation and parameterized queries (prepared statements) when handling the question_id parameter. The plugin directly concatenates user-supplied input into SQL queries instead of using WordPress's built-in $wpdb->prepare() method or equivalent sanitization functions. This classic SQL injection pattern allows attackers to break out of the intended query structure and inject malicious SQL commands.

Attack Vector

The attack can be executed remotely over the network without requiring any authentication. An attacker sends a crafted HTTP GET request to the WordPress AJAX handler with a malicious question_id parameter containing SQL injection payloads. The attack flow is as follows:

  1. Attacker identifies a WordPress site running a vulnerable version of Perfect Survey
  2. Attacker sends a request to /wp-admin/admin-ajax.php?action=get_question&question_id=[MALICIOUS_PAYLOAD]
  3. The plugin processes the request and executes the injected SQL
  4. The attacker receives database responses through error messages, time-based inference, or UNION-based data extraction

The vulnerability allows for various SQL injection techniques including UNION-based attacks for data extraction, time-based blind injection for inferring data, and potentially stacked queries depending on the database configuration. For detailed technical analysis of the exploitation mechanism, refer to the WPScan Vulnerability Details and Packet Storm SQL Injection Report.

Detection Methods for CVE-2021-24762

Indicators of Compromise

  • HTTP requests to /wp-admin/admin-ajax.php with the action=get_question parameter containing SQL syntax such as UNION, SELECT, OR 1=1, or comment characters (--, /*)
  • Unusual database query patterns or errors in WordPress/MySQL logs indicating SQL syntax errors
  • Large volumes of requests targeting the AJAX endpoint from single IP addresses or suspicious user agents
  • Evidence of database exfiltration such as unexpected data access patterns or bulk data retrieval

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules to detect and block common SQL injection patterns in the question_id parameter
  • Implement log monitoring for AJAX requests containing suspicious characters like single quotes, double dashes, or SQL keywords
  • Utilize intrusion detection systems (IDS) with signatures for WordPress SQL injection attacks
  • Enable verbose MySQL query logging temporarily to identify anomalous queries originating from the Perfect Survey plugin

Monitoring Recommendations

  • Monitor WordPress access logs for requests to admin-ajax.php with the get_question action, particularly those with encoded or suspicious parameter values
  • Set up alerts for HTTP 500 errors on AJAX endpoints which may indicate failed SQL injection attempts
  • Implement rate limiting on AJAX endpoints to slow down automated exploitation attempts
  • Review database user privileges to ensure the WordPress database account has minimal necessary permissions

How to Mitigate CVE-2021-24762

Immediate Actions Required

  • Update the Perfect Survey plugin to version 1.5.2 or later immediately
  • If immediate update is not possible, deactivate and remove the Perfect Survey plugin from the WordPress installation
  • Review WordPress database logs for any signs of unauthorized access or data exfiltration
  • Consider implementing a Web Application Firewall to provide additional protection against SQL injection attacks
  • Reset database credentials if compromise is suspected

Patch Information

The vulnerability has been addressed in Perfect Survey plugin version 1.5.2. Users should update to this version or later through the WordPress plugin dashboard or by downloading the latest version directly from the plugin source. After updating, verify the installed version by checking the plugin details in WordPress Admin under Plugins.

For more information about this vulnerability, consult the WPScan Vulnerability Details.

Workarounds

  • Deactivate the Perfect Survey plugin if upgrading is not immediately feasible
  • Implement WAF rules to block requests containing SQL injection patterns in the question_id parameter
  • Restrict access to wp-admin/admin-ajax.php for unauthenticated users if survey functionality is not required for public users
  • Apply IP-based access controls to limit exposure while awaiting a maintenance window for patching
bash
# Apache .htaccess workaround to block suspicious AJAX requests
# Add to WordPress root .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} action=get_question [NC]
RewriteCond %{QUERY_STRING} question_id=.*(\%27|\'|union|select|concat|char\() [NC]
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/TechGetperfectsurvey Perfect Survey

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability85.67%

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

  • WPScan Vulnerability Details
  • Latest CVEs
  • CVE-2026-25874: LeRobot RCE Vulnerability

  • CVE-2026-41272: Flowise LLM Builder SSRF Vulnerability

  • CVE-2026-41268: Flowise RCE Vulnerability

  • CVE-2026-41265: Flowise Airtable Agent RCE Vulnerability
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