
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-126492 is a second-order SQL injection vulnerability in OpenEMR affecting all versions before 8.5.0. It allows low-privileged authenticated users to store malicious SQL fragments via library/ajax/addlistitem.php, which are later executed by dynamic_finder.php when concatenated into a SELECT query. The vulnerability was published on November 13, 2026, with the underlying security advisory (GHSA-hrf6-qx6w-vgh9) originally published by the OpenEMR maintainer on October 28, 2026. It carries a CVSS v3.1 base score of 8.8 (High) (GitHub Advisory, Feedly).
The root cause is improper neutralization of special elements in an SQL command (CWE-89), specifically a second-order (stored) SQL injection pattern. An attacker submits a malicious SQL fragment as the option_id value via library/ajax/addlistitem.php, which stores it in the list_options table under list_id='recent_patient_columns' without adequate sanitization. Later, interface/main/finder/dynamic_finder.php retrieves this persisted value and directly concatenates it into a dynamic SELECT query, causing the attacker-controlled data to be interpreted as SQL structure rather than user data. Because the injection is second-order, it bypasses input validation checks that only inspect data at the point of initial entry (GitHub Advisory, Feedly).
Successful exploitation allows any low-privileged authenticated user to read sensitive patient data, modify or delete medical records, and potentially execute operating system commands depending on the database server's configuration and privileges. Because OpenEMR is a widely deployed electronic medical records (EMR) platform, exploitation could expose protected health information (PHI) at scale, violating HIPAA and similar regulations. The vulnerability impacts confidentiality, integrity, and availability of the underlying database and potentially the host system (GitHub Advisory, Feedly).
As of the time of publication, there is no known public proof-of-concept exploit and no evidence of active in-the-wild exploitation (Feedly). The EPSS score is approximately 0.323%, indicating a low but non-negligible probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires a valid low-privileged account on the OpenEMR instance, reducing the attack surface compared to unauthenticated vulnerabilities, though the network-accessible attack vector and low complexity make it straightforward for an insider or compromised account to abuse (Feedly).
option_id parameter, such as a value that breaks out of the expected SQL context (e.g., legit_value', (SELECT sensitive_column FROM sensitive_table)-- ).library/ajax/addlistitem.php with the crafted option_id value targeting the recent_patient_columns list. The application stores this value in the list_options table without sufficient sanitization.interface/main/finder/dynamic_finder.php (e.g., the patient finder/search feature). The application retrieves the stored option_id value and concatenates it directly into a SELECT query, executing the injected SQL.xp_cmdshell (MSSQL) or INTO OUTFILE (MySQL) (GitHub Advisory, Feedly)./library/ajax/addlistitem.php containing SQL metacharacters (e.g., single quotes, comment sequences --, /**/, UNION, SELECT) in the option_id parameter.list_options table where list_id='recent_patient_columns' contain unexpected SQL syntax or fragments in the option_id column.addlistitem.php with anomalous or encoded parameter values; application error logs from dynamic_finder.php indicating SQL syntax errors that may reveal injection attempts.dynamic_finder.php; unusual outbound connections from the database server process if OS command execution was attempted (GitHub Advisory, Feedly).The primary remediation is to upgrade OpenEMR to version 8.5.0 or later, which contains the fix for this vulnerability (GitHub Advisory). If an immediate upgrade is not feasible, administrators should restrict low-privileged user access to the library/ajax/addlistitem.php endpoint via web server configuration (e.g., IP allowlisting or authentication gateway). Additionally, audit the list_options table for suspicious option_id values under list_id='recent_patient_columns', and review database access logs for signs of prior exploitation. Applying the principle of least privilege to the database account used by OpenEMR can limit the blast radius of any successful injection.
The vulnerability was credited to researcher farisv in the official GitHub Security Advisory (GitHub Advisory). The advisory was published by OpenEMR maintainer bradymiller, indicating prompt vendor acknowledgment and coordinated disclosure. No significant broader media coverage or notable social media discussion has been identified at this time.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."