# CVE-2021-47817: OpenEMR 5.0.2.1 - Remote Code Execution

- Severity: Medium 4.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.38%, higher than 84% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2026-01-21T17:27:33.562Z
- Modified: 2026-06-17T04:18:33.060Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- OpenEMR Foundation, Inc. OpenEMR: 5.0.2.1
- open-emr openemr: 5.0.2.1

## Every score

- VulnCheck: CVSS:4.0 4.8 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- VulnCheck: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://www.exploit-db.com/exploits/49784> (exploit, third-party-advisory, vdb-entry)
- <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> (exploit, patch, third-party-advisory, vendor-advisory)
- <https://www.youtube.com/watch?v=H8VWNwWgYJo&feature=emb_logo> (exploit, technical-description)
- <https://www.open-emr.org/> (product)
- <https://sourceforge.net/projects/openemr/files/OpenEMR%20Current/5.0.2.1/openemr-5.0.2.tar.gz/download> (product)
- <https://www.vulncheck.com/advisories/openemr-remote-code-execution> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-47817](https://www.cve.org/CVERecord?id=CVE-2021-47817), CVE Terms of Use, modified 2026-05-25
- NVD: [CVE-2021-47817](https://nvd.nist.gov/vuln/detail/CVE-2021-47817), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47817 · Whole record: https://cve.day/CVE-2021-47817.json · Rebuilt by cve.day 2026-11-25T22:58:09.071Z
