llamaCVEVulnerability Intelligence
/
OpenEMR

CVE-2026-126491

OpenEMR stored SQL injection in patient search

Any logged-in user with low privileges can extract patient records and user credentials from the database.

Specific setups onlyParche disponibleSQL injection
Descargar PNG JSON
CVSS 4.0
8.3
Alta
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N Fuente: CNA
ExplotaciónPoC públicaSSVC: poc · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión8.5.0
Exposición6 dDesde la divulgación, 13 nov 2026, 4:34 a. m.
Detección31 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Existe PoC pública, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Monitoreo
Detectada +1
Fuente: OSV
Verificada
13 nov 26
15 nov 26
17 nov 26
19 nov 26
13 nov 26
14 nov 26
16 nov 26
18 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-126491 divulgada · CVSS 8.3 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Divulgación Evaluación SSVC CISA-ADP · explotación PoC pública
Divulgación Modificada Última actualización del registro
Monitoreo Verificada Última verificación contra las fuentes
Resumen

OpenEMR before 8.5.0 contains a stored SQL injection vulnerability in getByPatientDemographics() where layout_options field_id values are concatenated into the patient search WHERE clause. Attackers with Layout Editor access can plant a malicious field_id, allowing any authenticated low-privilege user to exfiltrate data from patient_data and users_secure tables.

Affects OpenEMR versions before 8.5.0, where the getByPatientDemographics code in patient.inc.php builds SQL unsafely. Fixed in 8.5.0.

¿Qué significa?The bug is a SQL injection in getByPatientDemographics in patient.inc.php. A malicious layout_options field_id can be planted, and a patient search using findBy=Any then runs it, letting any authenticated low-privilege user pull data from the patient_data and users_secure tables.
¿Quién está afectado?OpenEMR versions before 8.5.0 are in the affected range. The described setup needs a malicious layout_options field_id planted through Layout Editor access, and a patient search via interface/main/finder/patient_select.php with findBy=Any. Check the installed OpenEMR version in the application's version information to see whether it falls before 8.5.0.
¿Qué hacer?Upgrade OpenEMR to 8.5.0 or later, the fixed version listed for this vulnerability.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
OpenEMR versions before 8.5.0.“Affecting openemr >= 0, < 8.5.0”
02
A malicious layout_options field_id must be planted, which requires Layout Editor access.“Attackers with Layout Editor access can plant a malicious field_id”
03
The trigger is a patient search through interface/main/finder/patient_select.php with findBy=Any.“interface/main/finder/patient_select.php with findBy=Any”
¿Quién debe revisar?Teams running OpenEMR before 8.5.0 that use the patient finder (findBy=Any) and grant Layout Editor access to users.
Vector CVSS 4.0

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
Requisitos de ataqueAT:N
NingunoPresentes
PrivilegiosPR:H
NingunoBajosAltos
InteracciónUI:N
NingunaPasivaActiva
Confid. (sistema)VC:H
AltoBajoNinguno
Integridad (sistema)VI:L
AltoBajoNinguno
Disponib. (sistema)VA:N
AltoBajoNinguno
Confid. (posterior)SC:H
AltoBajoNinguno
Integridad (posterior)SI:L
AltoBajoNinguno
Disponib. (posterior)SA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
openemr< 8.5.0
8.5.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
openemr
Corregida 8.5.0 — —
Versiones corregidas8.5.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/openemr/openemr/security/advisories/GHSA-pc2q-9pcw-v899
Otrahttps://www.vulncheck.com/advisories/openemr-before-8.5.0-sql-injection-via-getbypatientdemographics-in-patient-inc-php

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.