Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with read-only drug-admin account
-
ExploitSelect patient and active encounter in session
-
ExecutionSend GET to dispense_drug.php with drug_id/quantity/fee
-
ImpactServer creates false sale record and decrements inventory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
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 a deployment that uses OpenEMR's in-house medication inventory and dispensing feature, an authenticated core account whose 'admin/drugs' grant is read-only (return value 'view'), a test/target medication with an available non-expired inventory lot, and a patient with an active encounter selected in that account's session (the endpoint rejects dispensing when no valid encounter is selected). Limiting factors: exploitation is impossible without valid low-privilege credentials (PR:L, authenticated), without the in-house pharmacy feature in use, and without an active encounter for the targeted patient; there is no remote unauthenticated path and no confidentiality impact. |
| Impact | This is a medium-severity integrity flaw, not a system-compromise bug. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:L) scores 6.0 and is internally consistent with the mechanism: a network-reachable endpoint abusable by a low-privileged but authenticated account (PR:L), with an attack requirement (AT:P) that maps to the advisory's precondition of an active patient encounter, producing high integrity impact (VI:H, falsified dispensing/audit records) and low availability impact (VA:L, inventory depletion) but no confidentiality loss (VC:N). It is NOT in CISA KEV, so there is no confirmed active exploitation, and no EPSS score was provided, so widespread-exploitation probability cannot be quantified from the input. The GHSA advisory includes a concrete GET-request proof of concept, so a public PoC reference exists, though the input does not confirm it as packaged working exploit code. The vuln.today Decision label is 'this_month' (not act_now/emergency), aligning with a real-but-non-emergency insider/low-privilege authorization bug: the primary threat is a semi-trusted staff account with read-only drug-administration rights, not an anonymous internet attacker. Treat it as a genuine patch-this-cycle priority for healthcare operators running OpenEMR's in-house pharmacy, driven by medication-record and inventory integrity rather than external breach risk. |
| Exploit ScenarioDerived | A clinic staff member (or a compromised low-privilege account) holding only read-only 'admin/drugs=view' permission selects a patient and active encounter, then sends a single crafted GET request to interface/drugs/dispense_drug.php specifying drug_id, quantity, and fee. The server dispenses the medication, writes a false sale record attributed to that user, and decrements inventory, fabricating a dispensing event the account was never authorized to perform. A step-by-step PoC (the exact HTTP request) is published in the vendor GHSA advisory, lowering the effort to reproduce. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Improper authorization in OpenEMR's in-house pharmacy endpoint (interface/drugs/dispense_drug.php) lets an authenticated account that holds only read-only 'admin/drugs' permission dispense medication, creating false drug_sales records and decrementing inventory in all versions before 8.5.0. Exploitation requires the in-house medication dispensing feature to be in use, a target medication with a non-expired inventory lot, and a patient with an active encounter selected in the attacker's session, so this is a medium-severity integrity flaw rather than a system-compromise bug, with no confidentiality impact and no remote unauthenticated path. The public vendor advisory documents a proof-of-concept HTTP request but no confirmed working exploit code or active exploitation (CISA KEV) has been reported, and the vendor has released OpenEMR 8.5.0 as the fix.
RemediationAI
Upgrade to OpenEMR 8.5.0, the vendor-released fixed version, which corrects the authorization check in interface/drugs/dispense_drug.php; see the GitHub advisory at https://github.com/openemr/openemr/security/advisories/GHSA-hp8p-h8g8-xmg3 and the VulnCheck advisory at https://www.vulncheck.com/advisories/openemr-before-8.5.0-improper-authorization-via-dispense-drug-php. The advisory does not document a code-level workaround, so patching is the only complete fix; interim compensating controls consistent with the disclosed preconditions include re-granting write permission only where genuinely needed and auditing the drug_sales and inventory tables for dispensing rows authored by accounts holding view-only admin/drugs grants, since such rows are the observable footprint of exploitation. Because each recorded abuse also requires an active encounter in the attacker's session, reviewing session and encounter activity for those accounts gives an additional detection point; blocking or restricting access to interface/drugs/dispense_drug.php for view-only roles at the web server limits exposure but will break legitimate dispensing for that role if misapplied.
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
OpenEMR is a PHP electronic health record and practice-management application whose in-house pharmacy module performs dispensing as soon as interface/drugs/dispense_drug.php receives a request. The script reads every transaction field (sale_id, drug_id, prescription, quantity, fee, encounter) from $_REQUEST, so a plain GET acts as a state-changing call, and its only authorization gate is AclMain::aclCheckCore('admin', 'drugs') invoked without requiring the 'write' return value; the read-only 'view' grant therefore passes the check even though dispensing and inventory decrement are write operations. The downstream DrugSalesService::sellDrug() method trusts the patient already stored in the session, validates only that the supplied encounter belongs to that patient, and then inserts a row into drug_sales and updates stock, preserving database consistency without proving user intent or write entitlement. The root cause is the improper authorization class (CWE-863; the GitHub advisory labels it CWE-284): a coarse ACL check that omits the write-permission requirement on a read-capable code path, combined with acceptance of state-changing parameters over GET.
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:P/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
Network-reachable but needs an authenticated low-priv account (PR:L) plus a selected active encounter precondition (AC:H); high integrity from falsified records (I:H), low availability from inventory depletion (A:L), no confidentiality impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
OpenEMR before 8.5.0 contains an improper authorization vulnerability in interface/drugs/dispense_drug.php, which checks only for admin/drugs view permission instead of write permission before dispensing medication. Authenticated users with read-only drug administration access can send GET requests with drug_id, quantity, fee, and encounter parameters to create false dispensing records and decrement inventory.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
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-125010
GHSA-q5w8-7ccq-72g6
NVD
CVE.org
EPSS
VulDB
Exploit-DB