CVE-2026-126491: OpenEMR - SQL Injection
- Cve: CVE-2026-126491
- Name: OpenEMR - SQL Injection
- Description: 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.
- Impact: Attackers can exfiltrate sensitive patient and user credential data from the database.
- Remediation: Upgrade to OpenEMR 8.5.0 or the latest available version.
- Vulnerability type: sql_injection
- Vulnerability impact: information_disclosure
- Requirement type: logged_in
- Requirements: Attacker needs Layout Editor access to plant malicious field_id; exploitation by any authenticated low-privilege user.
- Labels source: securitycontext
- Severity: high
- Cvss score: 7.6
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:N
- Epss score: 0.00302
- Epss percentile: 0.23055
- Assignee: [email protected]
- Published at: 2026-11-13T10:17:59Z
- Age in days: 11
- Modified at: 2026-11-17T14:17:35Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-126491
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/openemr/openemr/security/advisories/GHSA-pc2q-9pcw-v899 | nvd | 2026-11-13 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/openemr/openemr/security/advisories/GHSA-pc2q-9pcw-v899 | nvd | Exploit, Vendor Advisory |
| https://www.vulncheck.com/advisories/openemr-before-8.5.0-sql-injection-via-getbypatientdemographics-in-patient-inc-php | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| open-emr:openemr | < 8.5.0 | no | nvd | /v1/products/open-emr/openemr |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| openemr/openemr | security_advisory | yes | /v1/repositories/openemr/openemr |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-11-13
- Remote: yes
- Authentication required: yes
- Exposed hosts: 2328
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports