Technical impact
The vulnerability arises from a missing authorization check in OpenEMR’s document template download functionality. An authenticated user can invoke the library/ajax/set_pt.php endpoint to set an arbitrary patient identifier in the active session without any access control. The subsequent interface/patient_file/download_template.php endpoint trusts that session value, performing only CSRF validation, and permits the download of a rendered document template that contains the target patient’s demographics, encounter information, allergies, medications, and problem list. As a result, a low‑privilege user can read protected health information belonging to other patients, breaching confidentiality and subjecting the organization to regulatory penalties.
Affected Systems
This flaw impacts all OpenEMR installations running any version prior to 8.3.0. Users of OpenEMR 8.2.x or earlier should verify that they upgrade to the patched release.
Risk and Exploitability
The CVSS score of 6.5 indicates a moderate level of risk. The EPSS score is not available, and the vulnerability is not included in the CISA KEV catalog, implying limited public exploitation to date. Exploitation requires only a valid authenticated session; no elevated privileges or code execution are needed. The main threat is a loss of confidentiality, with potential regulatory and financial consequences.