---
id: "CVE-2026-126437"
page: "https://infrastack.ai/live/CVE-2026-126437"
kind: "vulnerability"
aliases: ["CVE-2026-126437"]
title: "OpenEMR: authorization bypass lets any core user read other patients' records"
severity: "high"
cvss: 7.1
epss: null
exploited: false
status: "open"
category: "other"
products: []
ecosystems: []
tags: ["healthcare", "openemr", "other", "php", "self-hosted"]
not_affected_if: ["openemr-8.5.0-or-later"]
published_at: "2026-11-13T10:17:50+00:00"
first_seen_at: "2026-11-13T10:47:22+00:00"
updated_at: "2026-11-13T10:53:09+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126437", "first_seen_at": "2026-11-13T10:47:22+00:00"}]
exploit_sources: []
---

# OpenEMR: authorization bypass lets any core user read other patients' records

Link for people: https://infrastack.ai/live/CVE-2026-126437 (this .md is for agents)

OpenEMR before 8.5.0 has an authorization bypass in portal/lib/download_template.php. Any authenticated core user can render documents for arbitrary patients by setting isModule and supplying arbitrary pid and template_id values, disclosing names, birth dates, addresses, allergies, medications and problem lists despite ACL restrictions.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed OpenEMR version; it is affected if it is below `8.5.0`.
- Look for `portal/lib/download_template.php` in the install and confirm whether it is reachable by logged-in users.

## Fix

- Upgrade OpenEMR to `8.5.0` or later.

## Timeline

- 2026-11-13T10:47:22+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-126437

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-vc2h-x8xf-8jcv
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.5.0-authorization-bypass-via-portal-lib-download-template-php

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
