# CVE-2021-24221: Quiz And Survey Master \< 7.1.12 - Authenticated SQL injection via shortcode

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-04-12 · Modified: 2024-08-03
- Record: https://cvemate.com/vulnerability/CVE-2021-24221 · JSON: https://cvemate.com/vulnerability/CVE-2021-24221/json

## Description

```text
The Quiz And Survey Master – Best Quiz, Exam and Survey Plugin for WordPress plugin before 7.1.12 did not sanitise the result_id GET parameter on pages with the [qsm_result] shortcode without id attribute, concatenating it in a SQL statement and leading to an SQL injection. The lowest role allowed to use this shortcode in post or pages being author, such user could gain unauthorised access to the DBMS. If the shortcode (without the id attribute) is embed on a public page or post, then unauthenticated users could exploit the injection.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.893%, percentile 80.342%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- expresstech quiz and survey master: \< 7.1.12
- unknown quiz and survey master – best quiz, exam and survey plugin for wordpress: ≥ 7.1.12, \< 7.1.12
- wordpress quiz-master-next: ≤ 7.1.11 (fixed in 7.1.12)

## References

- <https://wpscan.com/vulnerability/3b52b25c-82a1-41c7-83ac-92e244f7c5ab>
- <https://plugins.trac.wordpress.org/changeset/2479603/>
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/5bd58f59-09c2-417c-89ea-5906d413288c>

---

Data as of 2026-12-05T14:58:47.858Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
