Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privileged user
-
DeliveryPOST crafted option_id to addlistitem.php
-
ExploitPersist SQL fragment in recent_patient_columns
-
Executiondynamic_finder.php concatenates value into SELECT
-
PersistStored SQL executes against database
-
ImpactExfiltrate patient/database records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a valid authenticated account with at least low privileges capable of reaching library/ajax/addlistitem.php to store the malicious option_id value under list_id='recent_patient_columns'. Exploitation is second-order: the injected SQL only executes later when interface/main/finder/dynamic_finder.php reads the persisted value and concatenates it into a dynamic SELECT, so the finder code path must be exercised. Limiting factors: authentication is mandatory (PR:L - not exploitable by anonymous attackers), and the two-stage store-then-trigger nature means the attacker must both write the payload and have it consumed by the finder; all OpenEMR versions before 8.5.0 are affected in default configurations. |
| Impact | This is a genuine but not emergency-grade priority. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) scoring 7.1 indicates a network-reachable, low-complexity attack requiring low-privilege authentication and no user interaction, with high confidentiality impact (VC:H) but only limited integrity impact (VI:L) and no availability impact - consistent with a SQL injection used primarily to read data from the backend database. No EPSS score, KEV listing, or confirmed public exploit was supplied, so there is no signal of active or widespread exploitation; the strongest escalation signal is the vuln.today Decision label of 'this_week' and a VulnCheck advisory, which together argue for prompt but routine patching rather than crisis response. The key tension is between the network attack vector and the authentication requirement: because this is a second-order (stored) injection requiring a valid low-privileged account that can reach library/ajax/addlistitem.php, real-world risk is meaningfully gated by needing an authenticated foothold, which lowers mass-exploitation likelihood relative to an unauthenticated SQLi. EPSS and KEV data are absent (not confirmed zero), so exploitation probability cannot be quantified from the input. |
| Exploit ScenarioDerived | An attacker with a low-privileged OpenEMR account submits a request to library/ajax/addlistitem.php that persists a malicious SQL fragment into the option_id value of the recent_patient_columns list option. When the finder feature later runs, interface/main/finder/dynamic_finder.php reads that stored value and concatenates it into a dynamic SELECT, executing the attacker's SQL against the database. No public exploit code was identified in the provided sources; given AV:N/AC:L the injection itself is straightforward for an authenticated user to trigger. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
Second-order SQL injection in OpenEMR affects all releases before 8.5.0 and lets a low-privileged authenticated user persist a malicious SQL fragment through library/ajax/addlistitem.php into the option_id column of list_options (list_id='recent_patient_columns'), which interface/main/finder/dynamic_finder.php later concatenates into a dynamic SELECT and executes. Because the payload is stored first and triggered on a subsequent read of the finder, exploitation requires both a valid low-privilege account and traversal of the dynamic_finder.php code path; the assessed impact is high confidentiality with limited integrity effect and no availability impact. No public exploit code and no active exploitation (CISA KEV) are reported, and the issue is prioritized for remediation this week rather than as an emergency.
RemediationAI
Vendor-released patch: upgrade to OpenEMR 8.5.0, which is the fixed version named in the vendor advisory for every affected branch (vulnerable < 8.5.0, fixed in 8.5.0); no backport to earlier branches is documented in the supplied data. Apply the upgrade and then confirm the fix by checking that list_options rows with list_id='recent_patient_columns' are handled through parameterized query construction in interface/main/finder/dynamic_finder.php. Because the attack is second-order, upgrading the application does not by itself clean previously stored payloads, so the persisted option_id values in that list should be reviewed and any unexpected entries removed as part of the remediation. Consult the vendor advisory at https://github.com/openemr/openemr/security/advisories/GHSA-hrf6-qx6w-vgh9 and the VulnCheck advisory at https://www.vulncheck.com/advisories/openemr-before-8.5.0-second-order-sql-injection-via-dynamic-finder-php for the authoritative fix guidance; the supplied sources do not describe a supported workaround other than updating, and since exploitation requires a valid low-privilege account, tightening who can hold accounts that can reach library/ajax/addlistitem.php reduces exposure during the upgrade window.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenEMR is a PHP-based electronic health record and practice management application backed by a relational database. The flaw is CWE-89 (SQL injection) in a second-order form: rather than injecting directly into a query, the attacker abuses a legitimate write endpoint, library/ajax/addlistitem.php, to store attacker-controlled text in the option_id column of the list_options table under list_id='recent_patient_columns'. The stored value is treated as trusted configuration data later, when interface/main/finder/dynamic_finder.php builds a dynamic SELECT fragment by concatenating that persisted value without parameterization, so the injected text is parsed as SQL structure at execution time. This store-then-trigger pattern separates the write from the sink, meaning input filtering scoped only to the addlistitem.php request or only to the finder request will not cover the whole path, and it also means the malicious row survives across sessions until removed.
Know when Openemr gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Network-reachable injection by an authenticated low-privileged user (PR:L) with no interaction; high data-read confidentiality impact, limited integrity from stored writes, no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-89 (SQL injection), specifically second-order / stored SQL injection spanning two application files in OpenEMR.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
OpenEMR versions before 8.5.0 contain a second-order SQL injection vulnerability (CVE-2026-126492) that allows a low-privileged authenticated user to persist malicious SQL fragments and later trigger them, potentially exposing sensitive patient data. This affects confidentiality of clinical records, and leadership should prioritize remediation due to regulatory and reputational risks.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to
Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.
Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.
Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the
SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the
OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl
An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par
Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.
Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so
interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel
Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms
interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication
EUVD-2026-125132
GHSA-p5cj-hhx3-3982
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB