{"id":"CVE-2021-47817","details":"OpenEMR 5.0.2.1 contains a cross-site scripting vulnerability in user profile parameters that authenticated attackers can chain with a file upload to achieve remote code execution. Attackers can exploit the vulnerability by crafting a malicious payload to download and execute a web shell, enabling remote command execution on the vulnerable OpenEMR instance.","modified":"2026-07-09T02:49:01.284576Z","published":"2026-01-21T18:16:09.633Z","references":[{"type":"WEB","url":"https://sourceforge.net/projects/openemr/files/OpenEMR%20Current/5.0.2.1/openemr-5.0.2.tar.gz/download"},{"type":"WEB","url":"https://www.open-emr.org/"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/openemr-remote-code-execution"},{"type":"FIX","url":"https://blog.sonarsource.com/openemr-5-0-2-1-command-injection-vulnerability?utm_medium=cpc&utm_source=twitter&utm_campaign=openemr&utm_term=security&utm_content=tofu"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/49784"},{"type":"EVIDENCE","url":"https://www.youtube.com/watch?v=H8VWNwWgYJo&feature=emb_logo"}],"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-47817.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}