{"id":"CVE-2021-32102","details":"A SQL injection vulnerability exists (with user privileges) in library/custom_template/ajax_code.php in OpenEMR 5.0.2.1.","modified":"2026-07-08T21:26:58.514652Z","published":"2021-05-07T04:15:07.427Z","references":[{"type":"ADVISORY","url":"https://blog.sonarsource.com/openemr-5-0-2-1-command-injection-vulnerability"},{"type":"ADVISORY","url":"https://community.open-emr.org/t/openemr-5-0-2-patch-5-has-been-released/15431"},{"type":"ADVISORY","url":"https://community.sonarsource.com/t/openemr-5-0-2-1-command-injection-vulnerability-puts-health-records-at-risk/33592"},{"type":"ADVISORY","url":"https://portswigger.net/daily-swig/healthcare-security-openemr-fixes-serious-flaws-that-lead-to-command-execution-in-patient-portal"},{"type":"FIX","url":"https://www.open-emr.org/wiki/index.php/Old_Outdated_OpenEMR_Patches"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openemr/openemr","events":[{"introduced":"728f4bdd4f8c729944c5544589f81374cec7c4f4"},{"last_affected":"728f4bdd4f8c729944c5544589f81374cec7c4f4"}],"database_specific":{"cpe":"cpe:2.3:a:open-emr:openemr:5.0.2.1:*:*:*:*:*:*:*","extracted_events":[{"introduced":"5.0.2.1"},{"last_affected":"5.0.2.1"}],"source":"CPE_STRING"}}],"versions":["5.0.2.1","v5_0_2_1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32102.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}