What’s Vulnerable › Vulnerabilities
CVE-2021-47817: OpenEMR 5.0.2.1 - Remote Code Execution
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-01-21 · updated 2026-06-17
- Weakness: CWE-79
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.
Affected products
- openemr: 5.0.2.1
References
- 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
- https://sourceforge.net/projects/openemr/files/OpenEMR%20Current/5.0.2.1/openemr-5.0.2.tar.gz/download
- https://www.exploit-db.com/exploits/49784
- https://www.open-emr.org/
- https://www.vulncheck.com/advisories/openemr-remote-code-execution
- https://www.youtube.com/watch?v=H8VWNwWgYJo&feature=emb_logo
Get alerted when CVE-2021-47817 or the next vulnerability affects your stack