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

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.89%, higher than 80% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-04-12T14:03:25.000Z
- Modified: 2026-06-17T03:39:37.650Z
- Weaknesses: CWE-89
- Assigned by: WPScan

## Description

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.

(As written by CVE List.)

## Affected

- Unknown Quiz And Survey Master – Best Quiz, Exam and Survey Plugin for WordPress: from 7.1.12 before 7.1.12
- expresstech quiz_and_survey_master: before 7.1.12

## Every score

- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://wpscan.com/vulnerability/3b52b25c-82a1-41c7-83ac-92e244f7c5ab> (exploit, third-party-advisory)
- <https://plugins.trac.wordpress.org/changeset/2479603/> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-24221](https://www.cve.org/CVERecord?id=CVE-2021-24221), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24221](https://nvd.nist.gov/vuln/detail/CVE-2021-24221), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24221 · Whole record: https://cve.day/CVE-2021-24221.json · Rebuilt by cve.day 2026-11-25T22:58:00.711Z
