CVE-2020-19364
OpenEMR vulnerability analysis and mitigation

Overview

OpenEMR 5.0.1 contains a remote code execution vulnerability (CVE-2020-19364) that allows an authenticated attacker to upload and execute malicious PHP scripts through the /controller.php endpoint (OpenEMR GitHub).

Technical details

The vulnerability exists in the file upload functionality of OpenEMR 5.0.1. An authenticated attacker can exploit this vulnerability by sending a specially crafted POST request to 'http://[HOST]/controller.php?document&upload&patient_id=00&parent_id=4&' to upload malicious PHP code. The CVSS v3.1 base score is 8.8 (HIGH) with the vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

Successful exploitation of this vulnerability allows an authenticated attacker to execute arbitrary PHP code on the target system, potentially leading to complete system compromise with the ability to read, write, and modify data, as well as execute commands on the underlying system (NVD).

Exploitability

The vulnerability requires authentication to exploit, but is relatively straightforward to execute. A proof-of-concept exploit is publicly available that demonstrates the ability to upload and execute malicious PHP files through the vulnerable endpoint (OpenEMR GitHub).

Mitigation and workarounds

Users should upgrade to a patched version of OpenEMR. If immediate upgrading is not possible, it is recommended to implement strict input validation and file upload restrictions on the affected endpoint (NVD).

Additional resources


SourceThis report was generated using AI

Related OpenEMR vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-40506HIGH7
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesAug 17, 2026
CVE-2026-76614MEDIUM5.3
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesAug 19, 2026
CVE-2026-40509MEDIUM5.3
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesAug 19, 2026
CVE-2026-40508MEDIUM5.1
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesAug 19, 2026
CVE-2026-40507MEDIUM5.1
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NoYesAug 19, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management