CVE-2026-126491 — openemr
One of 80 openemr vulnerabilities published together by NVD: our article covers all of them.
WebVulnerabilitiesResearch article
OpenEMR SQL Injection Vulnerability in Versions Before 8.5.0
| CVE | CVE-2026-126491 |
|---|---|
| Vendor and product | openemr |
| Published | November 24, 2026 17:36 UTC |
| Research cut-off | November 24, 2026 16:45 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-17); CISA KEV catalog; FIRST EPSS (2026-11-24) |
Executive summary
CVE-2026-126491 impacts OpenEMR versions prior to 8.5.0, with a CVSS 3.1 score of 7.6 HIGH [1]. The flaw allows authenticated users with specific access to extract data from sensitive databases [1]. The reviewed sources do not confirm any exploitation [2]. The recommended action is to upgrade to version 8.5.0 [1].
Key points
- CVE-2026-126491 affects OpenEMR versions before 8.5.0 [1].
- A SQL injection flaw exists in the `getByPatientDemographics()` function [1].
- The vulnerability requires high privileges and no user interaction [1].
- The CVSS 3.1 score for this vulnerability is 7.6 HIGH [1].
- CVE-2026-126491 is not listed in the CISA KEV catalog [2].
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 4.0 | CVSS 3.1 | Published | Last Modified | Record Status |
|---|---|---|---|---|---|---|---|---|
| CVE-2026-126491 | OpenEMR | OpenEMR | CWE-89 | 8.3 HIGH, scored by disclosure@vulncheck.com (Secondary) | 7.6 HIGH, scored by disclosure@vulncheck.com (Secondary) | 2026-11-13T10:17:59 | 2026-11-17T14:17:35 | Modified |
Vulnerability description
A SQL injection vulnerability exists in the getByPatientDemographics() function of OpenEMR versions before 8.5.0. This issue occurs when fieldid values from the layoutoptions parameter are directly appended to the SQL query used for searching patient records [1]. Attackers who have access to the Layout Editor can manipulate these fieldid values to perform unauthorized data extraction from the patientdata and userssecure tables [1].
Attack surface and exploitation prerequisites
The CVSS 3.1 scoring indicates that the vulnerability requires high-level access and no user interaction. The attack can be initiated over a network, but it does not affect system availability [1].
Impact analysis
The vulnerability allows attackers to access confidential data, as reflected in the CVSS 3.1 score, which highlights a high confidentiality impact and a low integrity impact. There is no effect on system availability [1]. The description indicates that attackers can gain access to sensitive patient and user information [1].
Affected products and versions
| Affected | Fixed |
|---|---|
| openemr < 8.5.0 | 8.5.0 |
Exploitation and threat intelligence status
CVE-2026-126491 is not listed in the CISA KEV catalog as of 2026-11-24 [2]. The estimated probability of exploitation within the next 30 days is 0.30%, according to the EPSS score [3].
Detection and exposure assessment
Organizations should verify if they are running OpenEMR versions below 8.5.0 [1]. The reviewed sources do not provide specific detection procedures.
Remediation
The recommended solution is to upgrade to OpenEMR version 8.5.0 [1]. No alternative mitigation measures are mentioned in the reviewed sources.
Remediation checklist
- Upgrade OpenEMR to version 8.5.0 [1].
- Restricting access to the Layout Editor is general guidance, not advice from the sources.
- Monitoring for signs of unauthorized data access is general guidance, not advice from the sources.
- Performing a security audit of OpenEMR instances is general guidance, not advice from the sources.
Evidence gaps
- The sources do not describe the internal workings of the affected component.
- The sources do not mention any temporary workaround.
- The sources do not outline the attack lifecycle.
- The sources do not provide indicators of compromise.
- The sources do not list any fixed version beyond 8.5.0.
References
- CVE-2026-126491 record. NIST National Vulnerability Database (NVD), 2026-11-17. https://nvd.nist.gov/vuln/detail/CVE-2026-126491. Accessed 2026-11-24.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-24. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-24.
- EPSS score for CVE-2026-126491. FIRST, 2026-11-24. https://api.first.org/data/v1/epss?cve=CVE-2026-126491. Accessed 2026-11-24.
Summary
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.
Severity breakdown
High · 8.3
An attacker with administrator rights can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- yes, an administrator account
- User action needed
- no
- Impact
- high on confidentiality, low on integrity, none on availability
- Impact on other systems
- high on confidentiality, low on integrity, none on availability
Weakness
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| openemr | < 8.5.0 | 8.5.0 |
Public exploits
Exploit available
References by type
Other references
Affected
- openemr
Frequently asked questions
What is CVE-2026-126491?
CVE-2026-126491 impacts OpenEMR versions prior to 8.5.0, with a CVSS 3.1 score of 7.6 HIGH. The flaw allows authenticated users with specific access to extract data from sensitive databases. The reviewed sources do not confirm any exploitation. The recommended action is to upgrade to version 8.5.0. Weakness type: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (CWE-89).
How severe is CVE-2026-126491?
CVE-2026-126491 has a CVSS 4.0 base score of 8.3 (high), from the CNA (vulncheck.com). An attacker with administrator rights can exploit this over the network, without any user action.
Is CVE-2026-126491 being exploited?
Not as far as is known: CVE-2026-126491 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026. Exploit code or a proof of concept has been published, which makes attacks more likely. EPSS estimates a 0.4% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-126491?
openemr < 8.5.0 (fixed in 8.5.0).
How do I fix CVE-2026-126491?
Upgrade OpenEMR to version 8.5.0. Restricting access to the Layout Editor is general guidance, not advice from the sources. Monitoring for signs of unauthorized data access is general guidance, not advice from the sources.