Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to OpenEMR
-
DeliveryCraft serialized array payload
-
ExploitSubmit as key to patient_match_dialog.php
-
ExecutionServer deserializes without integrity check
-
PersistEnumerate patients or force wrong match
-
ImpactLab order bound to wrong patient
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access 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 session (PR:L) with access to the order-entry / patient-matching workflow; any authenticated user qualifies, per the advisory, and no special configuration or non-default feature is needed - the vulnerable interface/orders/patient_match_dialog.php endpoint accepts the crafted serialized 'key' parameter in default deployments of OpenEMR before 8.3.0. Exploitation is LIMITED by the authentication requirement (not unauthenticated), and object injection is NOT possible because unserialize() is called with allowed_classes:false; impact is confined to attacker-controlled array data used as matching criteria, and forcing an incorrect patient association further depends on a user proceeding through the order-entry workflow. |
| Impact | Signals point to a real but moderate-priority issue rather than a critical emergency. The CVSS 4.0 vector (AV:N/AC:L/PR:L/UI:N) confirms network-reachable, low-complexity exploitation requiring authentication (PR:L) - so this is an authenticated-user abuse, not an unauthenticated internet-facing RCE. Despite the CWE-502 deserialization label and 8.6 score, the advisory explicitly notes allowed_classes:false blocks PHP object injection, so there is NO code execution - the actual impact is attacker-controlled patient-matching criteria (enumeration and forced mis-association). The vendor-assigned vector claims VC:H and VI:H; the high confidentiality rating is well supported by unrestricted patient enumeration (PHI disclosure), but the integrity rating is more conditional, depending on a human completing the order-entry workflow with a forced wrong match. No EPSS score and no KEV listing were provided, and there is no evidence of active exploitation; the vuln.today Decision label is 'this_week', consistent with a prompt-but-not-emergency priority. A PoC is described in the GitHub Security Advisory (poc.py with six accepted payloads tested against 8.1.1), but the structured input does not carry a confirmed 'publicly available exploit' flag. Net: a genuine authenticated patient-data integrity/confidentiality flaw with patient-safety implications, but gated behind valid credentials and lacking any code-execution or active-exploitation signal. |
| Exploit ScenarioDerived | An authenticated OpenEMR user (any role with access to the order-entry workflow) crafts a PHP-serialized array and submits it as the 'key' parameter to interface/orders/patient_match_dialog.php. The server deserializes it without integrity checks and uses the attacker's fields as patient-matching criteria, letting them enumerate all patients with empty criteria or force a lab order to associate with an unintended patient record. A working PoC (poc.py) demonstrating six accepted payloads is included in the GitHub Security Advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Authenticated OpenEMR users can rewrite the patient-matching criteria used during order entry by passing a crafted PHP-serialized key parameter to interface/orders/patient_match_dialog.php, letting them surface or enumerate patient records and potentially force lab orders onto the wrong patient record. Every release before 8.3.0 is affected; because unserialize() is called with allowed_classes set to false, classic PHP object injection is not achievable and the exposure is limited to attacker-controlled matching arrays feeding parameterized SQL - the real-world integrity impact additionally depends on a user carrying the manipulated match through the order workflow. A public PoC script ships with the GitHub security advisory and was demonstrated against openemr/openemr:8.1.1, but there is no CISA KEV listing or other confirmation of active exploitation, and the vendor-released fix is version 8.3.0.
RemediationAI
Upgrade to OpenEMR 8.3.0, the vendor-released fixed version, which is the only complete fix per the advisory (patch status: available from vendor); confirm the deployed build no longer ships the unguarded unserialize($_REQUEST['key']) at interface/orders/patient_match_dialog.php lines 24-25. If upgrading cannot happen in the current patch cycle, the advisory's interim mitigation is to HMAC-SHA256 sign the serialized arguments where the form key is generated and verify the signature with hash_equals() before unserializing - the trade-off is that any in-flight or bookmarked order-entry links created before the change will be rejected as invalid keys until regenerated, and the shared site key must be stored and rotated server-side. Replacing PHP serialization with HMAC-protected JSON or openssl_encrypt()-encrypted tokens achieves the same integrity guarantee with the same one-time disruption to outstanding links. As a compensating control, restrict access to interface/orders/ (and the patient-matching dialog specifically) to the roles that genuinely need order entry; this narrows the authenticated attack surface but does not fix the flaw and will block legitimate lower-privileged users. Note that the endpoint requires a valid session, so enforcing strong authentication and prompt session revocation for departed or untrusted accounts reduces exposure - but none of these substitutes for the 8.3.0 upgrade. Track remediation against the GHSA advisory (https://github.com/openemr/openemr/security/advisories/GHSA-r52j-mq9p-mh85) and the VulnCheck advisory; the current priority signal is 'this_week', i.e. schedule the patch in the near-term cycle rather than treating it as an emergency, and audit order-entry logs for unexpected patient matches in the interim.
Affected VersionsENISA
Affected Packages
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 flaw is a CWE-502 deserialization-of-untrusted-data issue in a PHP application. patient_match_dialog.php reads $_REQUEST['key'] (line 24) and pipes it straight into unserialize($form_key, ['allowed_classes' => false]) (line 25) with no HMAC, signature, or other integrity check on the value. The allowed_classes: false hardening blocks instantiation of arbitrary PHP objects, so magic-method abuse and object-injection gadget chains are off the table; what remains is complete attacker control over the deserialized array structure. Those array elements (ss, first name, last name, date of birth, plus arbitrary extra and nested keys) become the search criteria used to score and rank rows from the patient_data table. The SQL layer itself uses parameterized queries, so SQL injection is explicitly not the risk - the risk is semantic: the attacker decides which patients are returned, matched, or skipped, and downstream order-entry logic trusts that result. The trigger is a plain GET parameter to a web-reachable endpoint; no non-default feature or special configuration is required beyond a valid OpenEMR session. The advisory's recommended hardening is to HMAC-SHA256 sign the serialized blob at generation and verify with hash_equals() before unserializing, or to replace PHP serialization with HMAC-protected JSON or server-key-encrypted tokens.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Authenticated endpoint so PR:L, remote low-complexity so AV:N/AC:L; full patient enumeration drives C:H, while wrong-match integrity impact is conditional on workflow completion so I:L and A:N.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-502, Deserialization of Untrusted Data, in OpenEMR's interface/orders/patientmatchdialog.php.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity vulnerability (CVE-2026-126322) in OpenEMR, an open-source electronic health record system, allows authenticated users to manipulate patient-matching criteria, potentially leading to patient misidentification and incorrect lab orders. This threatens patient safety and data integrity across all releases before 8.3.0, and while a public proof-of-concept exists, there is no evidence of active exploitation. Leadership should prioritize patching to prevent integrity breaches that could undermine clinical trust and regulatory compliance.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.
An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to
Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.
Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.
Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the
SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the
OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl
An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par
Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.
Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so
interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel
Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms
interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication
EUVD-2026-125198
GHSA-h68v-2m4x-x6hr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB