{"id":"CVE-2021-47817","published":"2026-01-21T17:27:33Z","modified":"2026-05-25T23:41:14Z","title":"OpenEMR 5.0.2.1 - Remote Code Execution","vendor":"OpenEMR Foundation, Inc.","product":"OpenEMR","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.08599,"percentile":0.95832,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://www.exploit-db.com/exploits/49784","tags":["exploit"]},{"url":"https://www.open-emr.org/","tags":["product"]},{"url":"https://sourceforge.net/projects/openemr/files/OpenEMR%20Current/5.0.2.1/openemr-5.0.2.tar.gz/download","tags":["product"]},{"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","tags":["vendor-advisory"]},{"url":"https://www.youtube.com/watch?v=H8VWNwWgYJo&feature=emb_logo","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/openemr-remote-code-execution","tags":["third-party-advisory"]}],"priority":{"score":27.9,"factors":[{"name":"EPSS percentile","points":19.17},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.78}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2021-04-21"},"first":{"date":"2021-04-21","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/49784"},"provenance":"source"},"vendorSlug":"openemr-foundation","affectedVersions":[{"vendor":"OpenEMR Foundation, Inc.","product":"OpenEMR","versions":["5.0.2.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-22T22:10:00.083662Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-3618","exploited":false,"provenance":"source"},"exploits":[{"id":49784,"url":"https://www.exploit-db.com/exploits/49784","title":"OpenEMR 5.0.2.1 - 'lname' Stored Cross-Site Scripting (XSS) / 'form_sel_layouts' Command Injection / Remote Code Execution (RCE)","date":"2021-04-21","verified":false,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/49784"]}