CVE-2021-47817
OpenEMR 5.0.2.1 - Remote Code Execution
- State
- Published
- Severity
- 4.8 Medium
- Published
- Jan 21, 2026
- Updated
- May 25, 2026
- Reserved
- Jan 14, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 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 |
| 3.1 | 5.4 Medium | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | VulnCheck |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Products
| Product | Versions |
|---|---|
OpenEMROpenEMR Foundation, Inc. |
|
References
- ExploitDB-49784exploit
- OpenEMR Official Websiteproduct
- OpenEMR 5.0.2.1 Downloadproduct
- SonarSource Vulnerability Analysisvendor-advisory
- Vulnerability Demonstration Videotechnical-description
- VulnCheck Advisory: OpenEMR 5.0.2.1 - Remote Code Executionthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.