/

CVE-2026-126482

Severity:

HIGH RISK

(8.8)

SQL Injection (CWE-89) in OpenEMR SLEOB Billing Import

CVE-2026-126482

Analyzed

Vulnerability type

Category:

SQL Injection

CWE:

CWE-89

Impact:

Unauthorized database read and modification

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

OpenEMR's SLEOB invoice-number lookup builds a database query using the CLP01 claim identifier from an uploaded X12 835 ERA file without parameter binding or escaping. A user with billing permissions, or a malicious payer whose file is uploaded by a clerk, may be able to manipulate the query to read or modify database records.

Affected context

The vulnerability occurs in SLEOB::slInvoiceNumber() in src/Billing/SLEOB.php when processing claim identifiers from uploaded X12 835 ERA files. It becomes risky when the CLP01 value is incorporated into a database query without safe parameterization and an attacker can supply or influence the ERA data that is processed.

Exploit preconditions

  • Attack surface: ERA file processing and the database query used to look up an invoice number
  • Required access: Billing permissions in OpenEMR, or the ability to provide a malicious payer ERA file that a clerk uploads
  • Trigger point: Processing an ERA file and using its CLP01 claim identifier in the SLEOB lookup
  • Why exploitation is possible: The identifier is concatenated into a query without escaping or parameter binding

Why this happens

The application treats a value from an ERA file as part of SQL syntax rather than as data. Concatenating that value into a query without parameterized statements allows crafted input to alter the query's meaning. This is CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').

Potential impact

  • An attacker may read data from database tables, including user password hashes.
  • An attacker could modify database records.
  • Unauthorized access to sensitive information may affect confidentiality and privacy.
  • Data integrity and billing workflows could be affected.

General mitigation guidance

Defensive patterns for this class of issue include:

  • Use parameterized queries for all values originating from files or other untrusted sources.
  • Treat imported ERA content as untrusted, regardless of who supplied the file.
  • Apply input validation appropriate to the claim identifier's expected format, while retaining parameterization as the primary SQL injection defense.
  • Limit database account permissions to the operations and records required by the application.
  • Keep database access behind well-defined data-access functions that consistently enforce safe query construction.

How teams detect issues like this

Detection can include:

  • Static analysis rules for SQL statements built through string concatenation with external or file-derived values.
  • Code review of ERA import paths and database lookups that use claim identifiers.
  • Tests that verify imported values are passed as query parameters rather than incorporated into SQL text.
  • Policy enforcement that requires parameterized queries in database-access code.
  • Review of database and application logs for unexpected query behavior during ERA processing.

Sources

SourceLink
github.comgithub.com/openemr/openemr/security/advisories/GHSA-cw3f-mhw8-44jp
vulncheck.comvulncheck.com/advisories/openemr-before-8.5.0-sql-injection-via-clp01-element-of-x12-835-era-upload

Frequently asked

questions

A user with billing permissions may be able to influence the relevant processing. A malicious payer may also pose a risk if a clerk uploads and processes its ERA file.

The vulnerable lookup must process an ERA file containing a claim identifier that reaches the query. Exploitation depends on the ability to supply or influence that input, directly or through an uploaded file.

Use parameterized database queries so the claim identifier is handled as data, not SQL syntax.

Treat imported files as untrusted, enforce parameterized-query practices in code review and static analysis, and restrict database permissions to the minimum needed.

Find out what's already
exploitable in your codebase.