Medium severity · published Jan 21, 2026
CVE-2021-47817
OpenEMR 5.0.2.1 - Remote Code Execution
5.4
CVSS
0.8%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.8% · higher than 57% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
OP
OpenEMR · OpenEMR Foundation, Inc.
5.0.2.1 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-47817
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-47817
Exploit
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
Product
https://sourceforge.net/projects/openemr/files/OpenEMR%20Current/5.0.2.1/openemr-5.0.2.tar.gz/download
Exploit
https://www.exploit-db.com/exploits/49784
Product
https://www.open-emr.org/
Third Party Advisory
https://www.vulncheck.com/advisories/openemr-remote-code-execution
Exploit
https://www.youtube.com/watch?v=H8VWNwWgYJo&feature=emb_logo
