XSS in Open-Emr Openemr
CVE-2021-47817
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.008 (54.9th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 55th percentile — 54.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.007 · newest: 0.008 · change: +0.001
Affected products
- Open-Emr Openemr — versions 5.0.2.1
- Openemr Foundation, Inc. — versions 5.0.2.1
Weakness classification (CWE)
References
- www.exploit-db.com/exploits/49784 (Exploit, VDB Entry, Third Party Advisory, exploit)
- www.open-emr.org/ (Product, product)
- sourceforge.net/projects/openemr/files/OpenEMR Current/5.0.2.1/openemr-5.0.2.ta… (Product, product)
- blog.sonarsource.com/openemr-5-0-2-1-command-injection-vulnerability (Exploit, vendor-advisory, Patch, Third Party Advisory)
- www.youtube.com/watch (Exploit, technical-description)
- www.vulncheck.com/advisories/openemr-remote-code-execution (Third Party Advisory, third-party-advisory)
Frequently asked questions
- What is CVE-2021-47817?
- CVE-2021-47817 is a medium-severity vulnerability in Open-Emr Openemr, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2026-01-21.
- How severe is CVE-2021-47817?
- Medium severity. CVSS v3 base score is 5.4 out of 10.