Technical impact
OpenEMR versions before 8.5.0 allow an authenticated user to supply arbitrary HTML through the doc_lib.php content parameter. The supplied HTML is passed to the mPDF library, which resolves local files and nested SVG resources. By crafting CSS imports or php://filter SVG references, users can read any file on the server, including credentials and OAuth keys. This results in a local file disclosure vulnerability.
Affected Systems
The flaw exists in OpenEMR 8.4.x and earlier distributions used by healthcare and medical software deployments worldwide. Systems running any pre‑8.5.0 build that expose the doc_lib.php endpoint to authenticated patients or core users are affected. No specific minor version series is listed, so all builds prior to the 8.5.0 release are considered vulnerable.
Risk and Exploitability
The CVSS base score of 7.1 indicates moderate severity. The EPSS score is under 1 %, suggesting that exploitation attempts are currently rare. The vulnerability is not listed in the CISA KEV catalog. An attacker must first authenticate as a patient or core user before submitting the malicious content, which limits the attack surface but still permits privileged read access to sensitive files. The risk is moderate and the exploitability depends on the presence of a valid authenticated session and the ability to submit content to doc_lib.php.