CVE-2021-47817
published 2026-01-21CVE-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…
PriorityP431medium5.4CVSS 3.1
AVNACLPRLUIRSCCLILAN
EPSS
0.67%
47.3th percentile
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
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| open-emr | openemr | — | — |
| openemr_foundation_inc | openemr | — | — |
CVSS provenance
nvdv3.15.4MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
nvdv4.04.8MEDIUMCVSS: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
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
VulDB
OpenEMR 5.0.2.1 Profile cross site scripting (Exploit 49784 / EDB-49784)
vuldb·2026-05-26·CVSS 4.8
CVE-2021-47817 [MEDIUM] OpenEMR 5.0.2.1 Profile cross site scripting (Exploit 49784 / EDB-49784)
A vulnerability was found in OpenEMR 5.0.2.1. It has been rated as problematic. The impacted element is an unknown function. Performing a manipulation of the argument Profile results in cross site scripting.
This vulnerability is known as CVE-2021-47817. Remote exploitation of the attack is possible. Furthermore, an exploit is available.
GHSA
GHSA-pv2r-f997-mjw4: OpenEMR 5
ghsa_unreviewed·2026-01-21
CVE-2021-47817 [MEDIUM] CWE-79 GHSA-pv2r-f997-mjw4: OpenEMR 5
OpenEMR 5.0.2.1 contains a cross-site scripting vulnerability that allows authenticated attackers to inject malicious JavaScript through user profile parameters. 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.
No detection rules found.
No public exploits indexed.
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=tofuhttps://sourceforge.net/projects/openemr/files/OpenEMR%20Current/5.0.2.1/openemr-5.0.2.tar.gz/downloadhttps://www.exploit-db.com/exploits/49784https://www.open-emr.org/https://www.vulncheck.com/advisories/openemr-remote-code-executionhttps://www.youtube.com/watch?v=H8VWNwWgYJo&feature=emb_logo
2026-01-21
Published