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.
Does this matter?
A public exploit is published in Exploit-DB, so the technical barrier is gone even though the severity is medium and EPSS is 2.4%. Treat it as high on anything reachable from the internet.
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 4.0
- 4.8 MEDIUMCVSS: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/M
- EPSS
- 2.38% probability · 84th percentile
- Public exploits
- 1 in Exploit-DB · first 21 April 2021
- CISA KEV
- Not listed
- Weakness
- CWE-79: Cross-site scripting
- Affected
- open-emr/openemr
- Source
- disclosure@vulncheck.com
In plain terms
It can be reached over a network, but only by someone who already has an account, so stolen or shared credentials are the usual way in.
- Reached from
- Over a network. If the affected system can be reached from the internet, so can the flaw.
- Effort
- Nothing special has to be got round first.
- Login needed
- An ordinary user account.
- Someone else involved
- Yes. Someone has to take a deliberate step, such as opening a crafted file or dismissing a warning.
- At risk on the affected system
- Reading data: none. Changing data: none. Stopping the service: none.
- At risk beyond it
- Reading data: limited. Changing data: limited. Stopping the service: none.
Read from the CVSS 4.0 vector above. It describes the flaw itself, not how your own systems are set up.
The first public exploit in Exploit-DB is dated 21 April 2021, about 5 years before the record was published.
EPSS moved from 2.4% on 24 November 2026 to 2.4% on 4 December 2026, peaking at 8.6% on 25 November 2026. The dashed line is the ten per cent mark our analysts treat as “patch before the next change window”.
Public exploits (1)
Entries in Exploit-DB that cite this CVE. Links go to the Exploit-DB page and to the file in the public repository; nothing is hosted here. A verified tick means the Exploit-DB team confirmed the exploit works against the stated version.
The same product
We hold 142 records for open-emr/openemr. None of them is on CISA’s known-exploited list. Follow this product to hear of the next one.
Where to go from here
One vulnerability is rarely the whole question. These are free, and none of them asks for an account.
By email
Our briefing by email: what changed, what to patch and what it means for a UK organisation. Written for the people who have to act on it.
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=tofuExploit, Patch, Third Party Advisory
- https://sourceforge.net/projects/openemr/files/OpenEMR%20Current/5.0.2.1/openemr-5.0.2.tar.gz/downloadProduct
- https://www.exploit-db.com/exploits/49784Exploit, Third Party Advisory, VDB Entry
- https://www.open-emr.org/Product
- https://www.vulncheck.com/advisories/openemr-remote-code-executionThird Party Advisory
- https://www.youtube.com/watch?v=H8VWNwWgYJo&feature=emb_logoExploit
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.