---
id: "CVE-2026-126492"
page: "https://infrastack.ai/live/CVE-2026-126492"
kind: "vulnerability"
aliases: ["CVE-2026-126492"]
title: "OpenEMR: stored SQL injection lets low-privilege users read patient data"
severity: "high"
cvss: 7.1
epss: null
exploited: false
status: "open"
category: "other"
products: []
ecosystems: []
tags: ["healthcare", "openemr", "other", "php", "self-hosted"]
not_affected_if: ["no-low-privilege-accounts", "openemr-8.5.0-or-later"]
published_at: "2026-11-13T10:17:59+00:00"
first_seen_at: "2026-11-13T10:47:26+00:00"
updated_at: "2026-11-13T10:52:55+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-126492", "first_seen_at": "2026-11-13T10:47:26+00:00"}]
exploit_sources: []
---

# OpenEMR: stored SQL injection lets low-privilege users read patient data

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

OpenEMR, an electronic health records system, stores attacker-supplied SQL in a list-item option that a later query concatenates and runs. An authenticated low-privileged user can use this to run SQL against the database.

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

## How to check

- Check the installed OpenEMR version in the application's version page or `version.php`; versions below `8.5.0` are named in the description as affected.
- Review whether untrusted users have accounts that can call `library/ajax/addlistitem.php`.

## Fix

- OpenEMR: move to `8.5.0` or later (fixed version named in the description).

## Timeline

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

## Documents

- [advisory] Vendor advisory: github.com https://github.com/openemr/openemr/security/advisories/GHSA-hrf6-qx6w-vgh9
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/openemr-before-8.5.0-second-order-sql-injection-via-dynamic-finder-php

## From the sources

OpenEMR before 8.5.0 contains a second-order sql injection vulnerability that allows low-privileged authenticated users to store malicious SQL via library/ajax/addlistitem.php. Attackers can persist a SQL fragment in the recent_patient_columns option_id value, which dynamic_finder.php concatenates into a SELECT query and executes as SQL.

---

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