CVE-2026-126492: 
OpenEMR Analyse et atténuation de la vulnérabilité

Aperçu

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).

Détails techniques

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).

Impact

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).

Exploitabilité

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).

Étapes d’exploitation

  1. Reconnaissance: Identify an OpenEMR instance running a version prior to 8.5.0 and obtain or compromise a low-privileged user account (e.g., a receptionist or limited clinical user).
  2. Craft malicious payload: Prepare a SQL fragment designed to be injected into the 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)-- ).
  3. Store the payload: Authenticate to OpenEMR and send an HTTP POST request to 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.
  4. Trigger execution: Navigate to or trigger the functionality backed by 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.
  5. Extract or manipulate data: Depending on the injected payload, retrieve sensitive patient records, modify medical data, or (if database permissions allow) attempt OS-level command execution via database features such as xp_cmdshell (MSSQL) or INTO OUTFILE (MySQL) (GitHub Advisory, Feedly).

Indicateurs de compromis

  • Network: Unusual or repeated HTTP POST requests to /library/ajax/addlistitem.php containing SQL metacharacters (e.g., single quotes, comment sequences --, /**/, UNION, SELECT) in the option_id parameter.
  • Database: Entries in the list_options table where list_id='recent_patient_columns' contain unexpected SQL syntax or fragments in the option_id column.
  • Logs: Web server access logs showing POST requests to addlistitem.php with anomalous or encoded parameter values; application error logs from dynamic_finder.php indicating SQL syntax errors that may reveal injection attempts.
  • Process: Unexpected database queries containing concatenated user-supplied strings in SELECT statements originating from dynamic_finder.php; unusual outbound connections from the database server process if OS command execution was attempted (GitHub Advisory, Feedly).

Atténuation et solutions de contournement

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.

Réactions de la communauté

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.

Ressources supplémentaires


Source: Ce rapport a été généré à l’aide de l’IA

Connexe OpenEMR Vulnérabilités :

CVE ID

Gravité

Partition

Technologies

Nom du composant

Exploit CISA KEV

A corrigé

Date de publication

CVE-2026-126491HIGH8.3
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NonOuiNov 13, 2026
CVE-2026-126494HIGH7.1
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NonOuiNov 13, 2026
CVE-2026-126492HIGH7.1
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NonOuiNov 13, 2026
CVE-2026-134020MEDIUM6.5
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NonOuiNov 23, 2026
CVE-2026-126493MEDIUM4.8
  • OpenEMR logoOpenEMR
  • cpe:2.3:a:open-emr:openemr
NonOuiNov 13, 2026

Évaluation gratuite des vulnérabilités

Évaluez votre posture de sécurité cloud

Évaluez vos pratiques de sécurité cloud dans 9 domaines de sécurité afin d’évaluer votre niveau de risque et d’identifier les lacunes dans vos défenses.

Évaluation de la demande

Ressources Wiz supplémentaires

Obtenez une démo personnalisée

Prêt(e) à voir Wiz en action ?

"La meilleure expérience utilisateur que j’ai jamais vue, offre une visibilité totale sur les workloads cloud."
David EstlickRSSI
"Wiz fournit une interface unique pour voir ce qui se passe dans nos environnements cloud."
Adam FletcherChef du service de sécurité
"Nous savons que si Wiz identifie quelque chose comme critique, c’est qu’il l’est réellement."
Greg PoniatowskiResponsable de la gestion des menaces et des vulnérabilités