---
id: CVE-2026-104139
title: >-
  OpenEMR: Missing Authorization on Document Template Download Endpoint Allows
  Any Authenticated User to Read Another Patient's PHI
summary: >-
  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 w…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-862
vendor: openemr
product: openemr
affected:
  - openemr < 8.3.0
published: '2026-11-05'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T19:55:24.266Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-104139'
references:
  - url: 'https://github.com/openemr/openemr/security/advisories/GHSA-r3q3-p493-95x8'
    label: 'https://github.com/openemr/openemr/security/advisories/GHSA-r3q3-p493-95x8'
  - url: 'https://github.com/openemr/openemr/pull/13200'
    label: 'https://github.com/openemr/openemr/pull/13200'
  - url: >-
      https://github.com/openemr/openemr/commit/7973cab3fe3f2fd2374ed71c02605e3c93491c36
    label: >-
      https://github.com/openemr/openemr/commit/7973cab3fe3f2fd2374ed71c02605e3c93491c36
  - url: 'https://github.com/openemr/openemr/releases/tag/v8_3_0'
    label: 'https://github.com/openemr/openemr/releases/tag/v8_3_0'
tags:
  - cve.org
ingestedAt: '2026-11-05T22:38:31.605Z'
---

## Overview

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.

## Affected

- `openemr < 8.3.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
