4.8medium
OpenEMR 5.0.2.1 - Remote Code Execution
- Severity
- 4.8medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 2.38% (higher than 84% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| OpenEMR Foundation, Inc. OpenEMR | 5.0.2.1 | CVE List |
| open-emr openemr | 5.0.2.1 | NVD |
All scores
| VulnCheck | 4.8medium CVSS:4.0 | 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 | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
OpenEMR 5.0.2.1 contiene una vulnerabilidad de cross-site scripting que permite a atacantes autenticados inyectar JavaScript malicioso a través de los parámetros del perfil de usuario. Los atacantes pueden explotar la vulnerabilidad creando una carga útil maliciosa para descargar y ejecutar una web shell, lo que permite la ejecución remota de comandos en la instancia vulnerable de OpenEMR.
References
| https://www.exploit-db.com/exploits/49784 | exploit, third-party-advisory, vdb-entry | |
| 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://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.vulncheck.com/advisories/openemr-remote-code-execution | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47817 changed 2026-05-25 | CVE Terms of Use |
| NVD | CVE-2021-47817 changed 2026-06-17 | Public domain |