CVE-2017-9380: Arbitrary File Upload in OpenEMR 5.0.0 and prior
- Vendor
- Openemr
OpenEMR versions 5.0.0 and earlier allow low-privilege users to upload files of dangerous types without sufficient validation. This flaw enables attackers to upload executable files, such as PHP scripts, which can then be executed by the web server, leading to arbitrary code execution within the context of the OpenEMR application.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows a low-privilege user to achieve remote code execution on the server hosting OpenEMR, potentially leading to full system compromise, data theft, or further lateral movement within the network.
Mitigation
If you can’t patch tonight, do this now.
As an interim measure, restrict file upload permissions to trusted users only, implement web server rules to block execution of uploaded files in upload directories, and monitor for suspicious file upload activity.
Remediation
Patch, then assume compromise.
Upgrade to a version of OpenEMR that properly restricts file uploads to safe types and implements robust server-side validation and sanitization of uploaded files. Ensure that executable file types cannot be uploaded by any user.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2017-9380 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2017-9380 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2017-9380?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2017-9380.
- Is there a patch for CVE-2017-9380?
- Upgrade to a version of OpenEMR that properly restricts file uploads to safe types and implements robust server-side validation and sanitization of uploaded files. Ensure that executable file types cannot be uploaded by any user.
- What products are affected by CVE-2017-9380?
- Openemr.
- How severe is CVE-2017-9380?
- CVE-2017-9380 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 15.2% (97th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.