---
id: "CVE-2026-126482"
page: "https://infrastack.ai/live/CVE-2026-126482"
kind: "vulnerability"
aliases: ["CVE-2026-126482"]
title: "OpenEMR: uploaded billing file lets a user run arbitrary SQL queries"
severity: "high"
cvss: 8.8
epss: null
exploited: false
status: "open"
category: "runtime"
products: [{"name": "OpenEMR", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["healthcare", "openemr", "php", "runtime", "self-hosted"]
not_affected_if: ["no-billing-module", "version-8.5.0-or-later"]
published_at: "2026-11-13T10:17:58+00:00"
first_seen_at: "2026-11-13T10:47:26+00:00"
updated_at: "2026-11-13T10:48:49+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126482", "first_seen_at": "2026-11-13T10:47:26+00:00"}]
exploit_sources: []
---

# OpenEMR: uploaded billing file lets a user run arbitrary SQL queries

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

OpenEMR, an electronic health records system, builds a billing database query by pasting in a claim identifier from uploaded X12 835 remittance files without escaping it. An attacker who can log in with billing permissions, or who supplies a crafted payer file a clerk uploads, can read any table including password hashes and modify data.

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

## Affected

- vendor:OpenEMR affected range not listed fixed no fixed version listed

## How to check

- Check the OpenEMR version in the admin footer or `version.php`; versions before `8.5.0` are affected.
- Confirm whether billing users can upload ERA (X12 835) files through the billing module.

## Fix

- Upgrade OpenEMR to `8.5.0` or later.

## Timeline

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

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-cw3f-mhw8-44jp
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.5.0-sql-injection-via-clp01-element-of-x12-835-era-upload

## From the sources

OpenEMR before 8.5.0 contains an SQL injection vulnerability in SLEOB::slInvoiceNumber() in src/Billing/SLEOB.php, which concatenates the CLP01 claim identifier from uploaded X12 835 ERA files into a query without escaping or parameter binding. Authenticated users with billing permissions, or a malicious payer whose ERA file a clerk uploads, can execute arbitrary SQL to read any table, including users_secure password hashes, and modify data.

---

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