CVE-2026-104139

OpenEMR: Missing Authorization on Document Template Download Endpoint Allows Any Authenticated User to Read Another Patient's PHI

Published Nov 5, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.3.0, library/ajax/set_pt.php allows any authenticated user to set an arbitrary patient identifier in the active session without an ACL check, and interface/patient_file/download_template.php trusts that session value while enforcing only CSRF validation. A low-privilege user can select another patient and download a rendered document template containing the patient's demographics, encounter information, allergies, medications, and problem list despite lacking patients/docs access. This issue is fixed in version 8.3.0.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the OpenEMR installation to version 8.3.0 or later, which introduces proper authorization checks before allowing document template downloads.
  • If an immediate upgrade is not feasible, temporarily disable or block the patient selection and template download endpoints for users without high‑privilege roles by adjusting application configuration or web‑server access controls.
  • Enable detailed audit logging for template download actions and regularly review logs for anomalous access patterns that may indicate abuse of the bypass.

Generated by OpenCVE AI on November 5, 2026 at 21:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Open-emr
Open-emr openemr
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
Type Values Removed Values Added
First Time appeared Openemr
Openemr openemr
Vendors & Products Openemr
Openemr openemr
Type Values Removed Values Added
Description OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.3.0, library/ajax/set_pt.php allows any authenticated user to set an arbitrary patient identifier in the active session without an ACL check, and interface/patient_file/download_template.php trusts that session value while enforcing only CSRF validation. A low-privilege user can select another patient and download a rendered document template containing the patient's demographics, encounter information, allergies, medications, and problem list despite lacking patients/docs access. This issue is fixed in version 8.3.0.
Title OpenEMR: Missing Authorization on Document Template Download Endpoint Allows Any Authenticated User to Read Another Patient's PHI
Weaknesses CWE-862
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 9, 2026, 6:10 PM
Reserved
Oct 1, 2026, 6:47 PM
Status
Analyzed
Published
Nov 5, 2026, 8:17 PM
Modified
Nov 10, 2026, 7:12 PM