Technical impact
OpenEMR prior to version 8.5.0 contains an authorization bypass flaw in portal/lib/download_template.php. An authenticated core user can set the isModule flag and submit arbitrary pid and template_id values, causing the system to render patient documents regardless of ACL and squad restrictions. This flaw would allow the disclosure of personally identifiable information such as patient names, birth dates, chart IDs, addresses, allergies, medications, and problem lists. The vulnerability is an instance of improper authorisation (CWE-639).
Affected Systems
The affected product is OpenEMR, community edition. The vulnerability applies to all releases before 8.5.0, irrespective of the CPE namespace or previous patches. Users running any pre‑8.5.0 build are at risk and should verify their installed version.
Risk and Exploitability
The CVSS score of 7.1 indicates a high severity impact. The EPSS score of less than 1% suggests that this vulnerability is currently unlikely to be exploited in the wild, and it is not listed in the CISA KEV catalog. The attack path requires the attacker to be an authenticated core user and to send crafted HTTP requests to portal/lib/download_template.php with arbitrary pid and template_id values. The likely attack vector is a web‑based request from a client with an established session, and success hinges on the server failing to enforce proper access control on the download_template endpoint.