{"id":"CVE-2021-24221","aliases":["CVE-2021-24221"],"related":[],"kind":"vulnerability","state":"published","title":"Quiz And Survey Master < 7.1.12 - Authenticated SQL injection via shortcode","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"El plugin Quiz And Survey Master â€“ Best Quiz, Exam and Survey Plugin for WordPress versiones anteriores a 7.1.12, no saneaba el parámetro GET result_id en las páginas con el shortcode [qsm_result] sin el atributo id, concatenando en una declaración SQL y conllevando a una inyección SQL.&#xa0;El rol más bajo permitido para usar este shortcode en publicaciones o páginas siendo autor, tal usuario podría conseguir acceso no autorizado al DBMS.&#xa0;Si el código abreviado (sin el atributo id) está insertado en una página o publicación pública, los usuarios no autenticados podrían explotar la inyección","source":"nvd"}],"published":"2021-04-12T14:03:25.000Z","modified":"2026-06-17T03:39:37.650Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"custom","introduced":"7.1.12","fixed":"7.1.12","status":"affected"}],"vendor":"Unknown","product":"Quiz And Survey Master – Best Quiz, Exam and Survey Plugin for WordPress","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"7.1.12"}],"vendor":"expresstech","product":"quiz_and_survey_master","cpe":"cpe:2.3:a:expresstech:quiz_and_survey_master:*:*:*:*:*:wordpress:*:*","source":"nvd"}],"references":[{"url":"https://wpscan.com/vulnerability/3b52b25c-82a1-41c7-83ac-92e244f7c5ab","tags":["exploit","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://plugins.trac.wordpress.org/changeset/2479603/","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["Nguyen Van Khanh - SunCSR (Sun* Cyber Security Research)"],"assigner":"WPScan","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-24221","url":"https://www.cve.org/CVERecord?id=CVE-2021-24221","licence":"CVE Terms of Use","modified":"2024-08-03T19:21:19.093Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-24221","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-24221","licence":"Public domain","modified":"2026-06-17T03:39:37.650Z"}],"updatedAt":"2026-11-25T22:58:00.711Z","epss":{"score":0.01893,"percentile":0.80204,"date":"2026-11-30T12:00:22.000Z"}}