Vulnerability record · CVE-2021-24762 · published 1 February 2022
CVE-2021-24762: Perfect Survey WordPress plugin unauthenticated SQL injection
Getperfectsurvey · Perfect Survey
The Perfect Survey WordPress plugin before 1.5.2 fails to validate and escape the question_id GET parameter before using it in a SQL statement within the get_question AJAX action. This lets unauthenticated users inject arbitrary SQL, and the flaw carries a critical CVSS score of 9.8.
Description
The Perfect Survey WordPress plugin before 1.5.2 does not validate and escape the question_id GET parameter before using it in a SQL statement in the get_question AJAX action, allowing unauthenticated users to perform SQL injection.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Automated analysis
critical priorityUnauthenticated network-reachable SQL injection with critical CVSS 9.8 and very high EPSS probability, with public exploit code available.
What it is
The Perfect Survey WordPress plugin before 1.5.2 fails to validate and escape the question_id GET parameter before using it in a SQL statement within the get_question AJAX action. This lets unauthenticated users inject arbitrary SQL, and the flaw carries a critical CVSS score of 9.8.
Impact
An attacker can read, modify or destroy database contents and potentially pivot further depending on database privileges. Full confidentiality, integrity and availability impact is scored.
Attack surface
Reachable over the network through the plugin's AJAX endpoint via the question_id GET parameter; no authentication or user interaction is required per the CVSS vector (AV:N/AC:L/PR:N/UI:N).
Exploitation
Not listed in CISA KEV, but EPSS is very high at 0.868 (99.7th percentile) and public exploit references exist on Packet Storm and WPScan.
What to do
- Update the Perfect Survey plugin to version 1.5.2 or later immediately.
- If patching is not possible, disable or remove the plugin until it can be updated.
- Deploy a WAF rule blocking SQL injection patterns on the get_question AJAX action and question_id parameter.
- Restrict database account privileges used by WordPress to least privilege.
- Audit the database and logs for signs of tampering or data exfiltration.
Detection
- Monitor web server and WAF logs for requests to the plugin's AJAX endpoint with suspicious question_id values.
- Search for SQL keywords, comment sequences or UNION/OR patterns in GET parameters hitting the plugin.
- Review database logs for anomalous queries or errors originating from the WordPress application.
- Check for unexpected changes to survey or other database tables.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://packetstormsecurity.com/files/166072/WordPress-Perfect-Survey-1.5.1-SQL-Injection.html | ExploitThird Party AdvisoryVDB Entry |
| https://wpscan.com/vulnerability/c1620905-7c31-4e62-80f5-1d9635be11ad | ExploitThird Party Advisory |
| http://packetstormsecurity.com/files/166072/WordPress-Perfect-Survey-1.5.1-SQL-Injection.html | ExploitThird Party AdvisoryVDB Entry |
| https://wpscan.com/vulnerability/c1620905-7c31-4e62-80f5-1d9635be11ad | ExploitThird Party Advisory |
Track CVE-2021-24762 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-24762), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.