CVE-2026-126437

OpenEMR before 8.5.0 Authorization Bypass via portal/lib/download_template.php

Published Nov 13, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
OpenEMR before 8.5.0 contains an authorization bypass vulnerability in portal/lib/download_template.php that allows any authenticated core user to render documents for arbitrary patients by setting isModule. Attackers can submit arbitrary pid and template_id values to disclose patient names, birth dates, chart IDs, addresses, allergies, medications, and problem lists despite ACL and squad restrictions.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenEMR to version 8.5.0 or later.
  • Restrict access to portal/lib/download_template.php, ensuring that only authorized administrative users can invoke it.
  • Ensure the application validates the pid and template_id parameters so that users cannot request data for patients outside their authorization scope.

Generated by OpenCVE AI on November 14, 2026 at 15:41 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 Openemr
Openemr openemr
Vendors & Products Openemr
Openemr openemr
Type Values Removed Values Added
Description OpenEMR before 8.5.0 contains an authorization bypass vulnerability in portal/lib/download_template.php that allows any authenticated core user to render documents for arbitrary patients by setting isModule. Attackers can submit arbitrary pid and template_id values to disclose patient names, birth dates, chart IDs, addresses, allergies, medications, and problem lists despite ACL and squad restrictions.
Title OpenEMR before 8.5.0 Authorization Bypass via portal/lib/download_template.php
First Time appeared Open-emr
Open-emr openemr
Weaknesses CWE-639
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
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'}

cvssV4_0

{'score': 7.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 17, 2026, 8:38 PM
Reserved
Nov 10, 2026, 9:37 PM
Status
Analyzed
Published
Nov 13, 2026, 10:17 AM
Modified
Nov 17, 2026, 9:17 PM