---
id: CVE-2026-126433
title: OpenEMR before 8.5.0 Improper Authorization via dispense_drug.php
summary: >-
  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 w…
severity: medium
cvss: 5.9
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L'
cvssSource: cna
cwe:
  - CWE-863
vendor: openemr
product: openemr
affected:
  - openemr < 8.5.0
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-17T20:23:32.408814Z'
exploitAvailable: true
published: '2026-11-13'
updated: '2026-11-17'
sourceUpdated: '2026-11-17T20:38:30.908Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-126433'
references:
  - url: 'https://github.com/openemr/openemr/security/advisories/GHSA-hp8p-h8g8-xmg3'
    label: GitHub Security Advisory (GHSA-hp8p-h8g8-xmg3)
  - url: >-
      https://www.vulncheck.com/advisories/openemr-before-8.5.0-improper-authorization-via-dispense-drug-php
    label: >-
      VulnCheck Advisory: OpenEMR before 8.5.0 Improper Authorization via
      dispense_drug.php
tags:
  - cve.org
  - exploit-available
epss: 0.00318
epssPercentile: 0.25031
ingestedAt: '2026-11-13T10:36:39.547Z'
---

## Overview

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.

## Affected

- `openemr < 8.5.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
