Skip to main content

OpenEMR EUVDEUVD-2026-117763

| CVE-2026-104139 MEDIUM
Missing Authorization (CWE-862)
2026-11-05 GitHub_M
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with any low-privilege OpenEMR account
  2. Exploit
    Hijack session pid via set_pt.php (no ACL check)
  3. Execution
    POST to download_template.php with valid CSRF
  4. Impact
    Receive rendered document exposing victim patient PHI

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated OpenEMR account of ANY role - including built-in low-privilege roles such as 'Front Office' that are explicitly denied the Documents module - plus a valid CSRF token (obtainable by any logged-in user) and at least one document template present in sites/<site>/documents/doctemplates/ (the PoC used PatientIntake.txt). No patients/docs or clinical ACL is needed, and the patient-selection step (set_pt.php) itself has no ACL gate, so the attacker does not need UI search/select rights. Limiting factors: exploitation is gated behind valid authentication (not anonymous/remote-unauthenticated), requires a configured template file to exist, and affects only versions prior to 8.3.0 - upgrading to 8.3.0 is the fix. The form_filename parameter is sanitized against path traversal, so this is strictly an authorization failure, not arbitrary file read.

Impact

This is a genuine authorization-bypass PHI-disclosure flaw (CWE-862) with a credible real-world risk profile, though it is not an emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N = 6.5 Medium) is well-supported by the evidence: network-reachable, low complexity, and authenticated-but-any-role (PR:L), with high confidentiality impact and no integrity or availability impact. The GHSA advisory contains a detailed step-by-step PoC that the reporter tested live against current master using the project's own docker stack, demonstrating that a built-in 'Front Office' account denied the Documents module can still retrieve another patient's full clinical summary - so exploitability is concrete, not theoretical. However, no CISA KEV listing is present in the input and no EPSS score was provided, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month', indicating prioritized remediation rather than drop-everything urgency. The SSVC/decision signals and the medium CVSS are consistent with each other: high technical impact on confidentiality, but gated behind an authenticated account, which limits mass automatable exploitation. Net: a real priority for any OpenEMR deployment with multiple low-trust user accounts (reception, scheduling, external staff), driven by HIPAA-reportable PHI exposure, but not a high-CVSS-but-low-real-risk paper finding, nor an actively-exploited emergency. EPSS and KEV data are absent - exploitation-probability cannot be quantified from the input.

Exploit ScenarioDerived

A low-privilege OpenEMR user (e.g. a reception/scheduling account in the 'Front Office' ACL group that is denied the Documents module) calls library/ajax/set_pt.php to point their own session at an arbitrary patient ID, then POSTs to interface/patient_file/download_template.php with a valid CSRF token and a template filename. The server renders and streams a document containing the victim patient's name, DOB, address, phone, encounter chief complaint, referring provider, allergies, medications, and problem list - despite the user lacking patients/docs access. A detailed, reporter-tested PoC for this exact chain is published in the GHSA advisory; given AV:N/AC:L the request sequence is simple and requires no user interaction, only an authenticated session and a configured template file.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 05, 2026

OpenEMR versions prior to 8.3.0 enforce only CSRF validation on interface/patient_file/download_template.php, which renders and streams a document template populated with the session's active patient's demographics, encounter data, allergies, medications and problem list. Because library/ajax/set_pt.php likewise lacks an ACL check, any authenticated account - including built-in low-privilege roles such as 'Front Office' that receive a 403 on the Documents module - can point its own session at an arbitrary patient ID and then retrieve that patient's PHI despite never holding the patients/docs capability. Exploitation requires a valid login, a valid CSRF token, and at least one template file present under sites/<site>/documents/doctemplates/; the vendor advisory includes a reproduction walkthrough, but no independently verified exploit tooling is confirmed, and there is no CISA KEV entry. Fixed in OpenEMR 8.3.0.

RemediationAI

Upgrade to OpenEMR 8.3.0, which is the vendor-released fix and adds the missing patients/docs ACL check to interface/patient_file/download_template.php as well as authorization checks to related legacy endpoints (release notes at https://github.com/openemr/openemr/releases/tag/v8_3_0, fix PR at https://github.com/openemr/openemr/pull/13200, commit 7973cab3fe3f2fd2374ed71c02605e3c93491c36, advisory at https://github.com/openemr/openemr/security/advisories/GHSA-r3q3-p493-95x8). If upgrading cannot be done immediately, block or restrict access to /interface/patient_file/download_template.php and /library/ajax/set_pt.php at the reverse proxy or web-server layer for all but known-privileged accounts - the trade-off is that legitimate document-template fetches and patient-context switching break for everyone outside the allowlist. As a narrower interim measure, remove template files from sites/<site>/documents/doctemplates/ when they are not actively needed, since exploitation depends on a template existing to render; the trade-off is loss of the document-template feature until the templates are restored after patching. Because both endpoints authenticate but do not authorize, tightening session/role provisioning alone does not mitigate the issue - any account able to log in can still bind its session to an arbitrary patient ID until 8.3.0 is deployed.

Affected VersionsENISA

OpenEMR < 8.3.0

Affected Packages

euvd openemr fix: 8.3.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-862 (Missing Authorization) in a PHP web application. OpenEMR gates sensitive actions through AclMain::aclCheckCore($section, $value) calls - for example controllers/C_Document.class.php requires patients/docs before rendering the 'Fetch' button that links to download_template.php, and sibling scripts in interface/patient_file/ require patients/pat_rep or admin/super. The download script instead reads $pid from the active session and performs only CsrfUtils::checkCsrfInput(), never verifying that the caller may view documents, demographics or clinical data for that patient. The trust placed in $_SESSION['pid'] is the second half of the problem: library/ajax/set_pt.php writes an arbitrary caller-supplied set_pid value into that session key and is also protected only by a CSRF check, so the 'currently selected patient' is not an authorization decision at all. Notably, the form_filename parameter is run through check_file_dir_name() in library/sanitize.inc.php (whitelist regex [A-Za-z0-9_.-], no slashes), so this is strictly an access-control failure and not path traversal or arbitrary file read. The upstream fix (PR #13200, commit 7973cab) adds AclMain::aclCheckCore('patients','docs') to the template download path and applies comparable ACL checks to a number of related legacy PHP entry points (custom/ajax_download.php, qrda export/download scripts, interface/main/messages/save.php, and the DORN compendium installer).

Know when Openemr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 6.5 MEDIUM

Any authenticated user over the network with no interaction can read another patient's PHI, so PR:L, AC:L, UI:N, C:H; the flaw only discloses data, so I:N and A:N.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Nov 05, 2026 - 21:18 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Medium
most popular open-source EHR, but niche to healthcare providers
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2013-10044 HIGH POC
8.7 Aug 01

An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to

CVE-2026-24898 CRITICAL POC
10.0 Mar 03

Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.

CVE-2026-24848 CRITICAL POC
9.9 Mar 03

Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.

CVE-2026-24849 CRITICAL POC
9.9 Feb 25

Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the

CVE-2026-24908 CRITICAL POC
9.9 Feb 25

SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the

CVE-2024-22611 CRITICAL POC
9.8 Apr 03

OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl

CVE-2024-37734 CRITICAL POC
9.8 Jun 26

An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par

CVE-2026-25146 CRITICAL POC
9.6 Mar 03

Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.

CVE-2026-39932 CRITICAL POC
9.4 Aug 03

Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so

CVE-2012-0992 HIGH POC
8.5 Feb 07

interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel

CVE-2026-124450 CRITICAL POC
9.3 Nov 08

Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms

CVE-2015-4453 MEDIUM
5.0 Jul 05

interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy