---
id: "CVE-2026-126322"
page: "https://infrastack.ai/live/CVE-2026-126322"
kind: "vulnerability"
aliases: ["CVE-2026-126322"]
title: "OpenEMR: unsanitized deserialization lets logged-in users match wrong patients"
severity: "high"
cvss: 8.6
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["healthcare", "openemr", "php", "runtime", "self-hosted"]
not_affected_if: ["openemr-8.3.0-or-later"]
published_at: "2026-11-13T10:17:38+00:00"
first_seen_at: "2026-11-13T10:47:16+00:00"
updated_at: "2026-11-13T10:50:51+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126322", "first_seen_at": "2026-11-13T10:47:16+00:00"}]
exploit_sources: []
---

# OpenEMR: unsanitized deserialization lets logged-in users match wrong patients

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

OpenEMR before 8.3.0 deserializes a crafted serialized key parameter without sanitizing it, in the patient match dialog. An authenticated user can enumerate patients or force lab orders to attach to the wrong patient.

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

## How to check

- Check the OpenEMR version in the admin footer or `version.php`; versions before `8.3.0` are affected
- Review web server logs for requests to `interface/orders/patient_match_dialog.php` with serialized values in the key parameter

## Fix

- OpenEMR: upgrade to `8.3.0` or later

## Timeline

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

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-r52j-mq9p-mh85
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.3.0-unsanitized-deserialization-via-patient-match-dialog-php

## From the sources

OpenEMR before 8.3.0 contains an unsanitized deserialization vulnerability that allows authenticated attackers to control patient-matching criteria by supplying a crafted serialized key parameter. Attackers can send serialized arrays to interface/orders/patient_match_dialog.php to enumerate patients or force matches that associate lab orders with the wrong patient.

---

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