---
id: "CVE-2026-126428"
page: "https://infrastack.ai/live/CVE-2026-126428"
kind: "vulnerability"
aliases: ["CVE-2026-126428"]
title: "OpenEMR: billing ERA upload lets authenticated users run PHP code"
severity: "high"
cvss: 7.7
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "OpenEMR", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["healthcare", "openemr", "package", "php", "self-hosted"]
not_affected_if: ["no-billing-users", "openemr-8.5.0-or-later"]
published_at: "2026-11-13T10:17:49+00:00"
first_seen_at: "2026-11-13T10:47:21+00:00"
updated_at: "2026-11-13T10:52:28+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126428", "first_seen_at": "2026-11-13T10:47:21+00:00"}]
exploit_sources: []
---

# OpenEMR: billing ERA upload lets authenticated users run PHP code

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

OpenEMR before 8.5.0 lets an authenticated billing user upload a malformed ERA file that stores attacker-controlled PHP on the server. An attacker with a database write primitive can register a background service that loads that file, running PHP as the web-server user.

_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 installation (unknown exact command in sources)
- Look for `era_payments.php` and stored `.edi` files under the web root or upload paths
- Review the `background_services` table for unexpected rows with `require_once` entries

## Fix

- OpenEMR: move to `8.5.0` or later

## Timeline

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

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-r6wm-8m2j-c3q9
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.5.0-rce-via-stored-era-upload-and-background-services

## From the sources

OpenEMR before 8.5.0 contains a remote code execution vulnerability that allows authenticated billing users to store attacker-controlled PHP by uploading a malformed ERA file to era_payments.php. Attackers with a database-write primitive such as SQL injection can register a background_services row whose require_once loads the stored .edi file, executing PHP as the web-server user.

---

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