---
id: "CVE-2026-126460"
page: "https://infrastack.ai/live/CVE-2026-126460"
kind: "vulnerability"
aliases: ["CVE-2026-126460"]
title: "OpenEMR: crafted EDI upload lets billing users run SQL and extract patient data"
severity: "high"
cvss: 7.1
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["healthcare", "openemr", "php", "runtime", "self-hosted"]
not_affected_if: ["no-billing-write-access", "openemr-8.5.0-or-later"]
published_at: "2026-11-13T10:17:54+00:00"
first_seen_at: "2026-11-13T10:47:24+00:00"
updated_at: "2026-11-13T10:53:03+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126460", "first_seen_at": "2026-11-13T10:47:24+00:00"}]
exploit_sources: []
---

# OpenEMR: crafted EDI upload lets billing users run SQL and extract patient data

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

OpenEMR before 8.5.0 concatenates the CLP01 claim control number from uploaded X12 835 ERA files into a SQL query without escaping. A user with billing write access can upload a crafted file that is stored and triggers a time-based SQL injection when reprocessed, extracting patient health information.

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

## How to check

- Check the installed OpenEMR version in the admin footer or `version.php` and compare against `8.5.0`
- Review who holds billing write access, since they can upload ERA files

## Fix

- OpenEMR: move to `8.5.0` or later

## Timeline

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

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-hqjp-rcv8-7p9c
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.5.0-persistent-sql-injection-via-era-file-reprocessing

## From the sources

OpenEMR before 8.5.0 contains a persistent SQL injection vulnerability in SLEOB::slInvoiceNumber(), where the CLP01 claim control number from uploaded X12 835 ERA files is concatenated unescaped into a query. Attackers with billing write access can upload a crafted .edi file via sl_eob_search.php that is stored on the server and re-executes a time-based payload whenever it is reprocessed through sl_eob_process.php, extracting patient health information.

---

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