Arbitrary file upload in OpenEMR - #VU158846

 

Arbitrary file upload in OpenEMR - #VU158846

Published: November 3, 2026


Vulnerability identifier: #VU158846
CSH Severity: Low
CVSS v4: 7.7 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-434
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary PHP code as the OpenEMR web-server user.

The vulnerability exists due to unrestricted upload of files containing executable PHP in OpenEMR's ERA upload handler when processing malformed ERA files, which are retained despite parsing errors at the predictable path sites/default/documents/era/.edi. A remote user can upload a malicious ERA file with acct/bill or acct/eob write permission and, using a separate database-write primitive, modify the background_services registry to have BackgroundServiceRunner load the uploaded file through require_once to execute arbitrary PHP code.


Affected software

OpenEMR

Remediation

Install security update from vendor's website.

OpenEMR - update to 8.5.0

External References

Related Security Bulletins