9.1Critical

Open-Emr Openemr

CVE-2026-39932

OpenEMR through 8.2.0 contains a remote code execution vulnerability in the document category tree component (library/classes/Tree.class.php) that allows authenticated administrators to execute arbitrary operating system commands by injecting PHP payloads into the categories database table. Attackers can chain arbitrary SQL execution to alter the id column type to VARCHAR and insert a malicious PHP payload, which is then executed via an unsanitized eval() call whenever any page instantiates CategoryTree, including unauthenticated and low-privilege pages, resulting in command execution as the web server user.

What this means for your business

  • It affects Open-Emr Openemr. It matters if your company, or a supplier that handles your data, runs it.
  • Code showing how to exploit it has been published, but real attacks have not been confirmed.
  • An attacker can use it remotely, over a network, with an administrator login, and without anyone at your company clicking anything.
  • FIRST's prediction model gives it a 4% chance of attack attempts being seen in the next 30 days, ranking above 89% of all known flaws.

What to do

  1. 1Check whether your company or your suppliers run Open-Emr Openemr, and which version. The affected versions are listed further down this page.
  2. 2If you do, follow the vendor's guidance. No patch reference has been published yet.

Not sure if your company is exposed?

Fastnexa’s certified penetration testers can check whether attackers could use this flaw, or others like it, against your websites, apps and network. The full test is free for our first 10 founding clients until 31 December 2026.

Scoring

CVSS
9.1 (v3.1)
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS v4
9.4
Weakness
CWE-95
Assigned by
disclosure@vulncheck.com

Dates

Published
2026-08-03
Last modified
2026-09-01
Sources
NVD

Affected products

  • Open-Emr Openemr- 8.2.0

As listed in the NVD configuration data. Not a statement about your estate.

References