Skip to main content

OpenEMR EUVDEUVD-2026-125135

| CVE-2026-126489 HIGH
SQL Injection (CWE-89)
2026-11-13 VulnCheck GHSA-vj64-2xj8-pcw7
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as OpenEMR administrator
  2. Delivery
    Inject malicious field_id via edit_layout.php
  3. Exploit
    Trigger issue_ippf_con_save via add_edit_issue.php
  4. Execution
    Concatenated field_id executes as SQL
  5. Impact
    Read/modify patient and medical database

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated account holding the 'admin'/'super' ACL (AclMain::aclCheckCore('admin','super')) to write a malicious field_id into the layout_options table for form_id 'CON' via /interface/super/edit_layout.php. The injection is second-order: the stored field_id is only executed when issue_ippf_con_save() later builds the 'REPLACE INTO lists_ippf_con SET ...' statement, reached by saving a contraceptive-type issue through add_edit_issue.php. The attack is specific to the IPPF contraceptive issue feature being present and used. Limiting factors: PR:H (administrative privilege is mandatory - this is not reachable by low-privilege or unauthenticated users), and the researcher explicitly notes it was not proven that non-admin accounts can write to layout_options.field_id. No end-user interaction is required once the admin steps are performed.

Impact

This is a genuine high-severity flaw but a moderate real-world priority, and the signals mostly agree once privilege is weighted correctly. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N, VC/VI/VA:H, score 8.6) reports network reach and low complexity but critically requires PR:H - the attacker must already hold administrative/super ACL privileges to insert the malicious field_id via edit_layout.php. That high precondition is the dominant limiter: this is a post-authentication, admin-tier second-order SQL injection, not a pre-auth mass-exploitable bug. Supporting signals: no KEV listing is present in the input (no confirmed active exploitation), no EPSS score is provided (exploitation probability cannot be quantified from this data), and a public PoC reference exists in the GHSA advisory - notably, the published PoC's sample payload triggered OpenEMR's add_escape_custom SQL-escaping error, so it demonstrates the injection point rather than a confirmed working bypass. The vuln.today Decision label is 'this_week' (not act_now/emergency), consistent with a serious-but-not-urgent flaw. Bottom line: the high CVSS is driven by the triple-high confidentiality/integrity/availability impact on sensitive medical data, but the PR:H requirement means realistic risk is confined to environments where an attacker can obtain or abuse an administrator account.

Exploit ScenarioDerived

An authenticated OpenEMR administrator (or an attacker who has compromised an admin account) uses edit_layout.php to add a layout_options field_id containing crafted SQL for the 'CON' form, then opens a contraceptive issue via add_edit_issue.php, which calls issue_ippf_con_save() and concatenates the attacker-controlled field_id as a column name into a REPLACE INTO query against lists_ippf_con. A public PoC reference exists in the GHSA advisory demonstrating this two-step path, though its example payload was caught by OpenEMR's escaping routine. Given AC:L and no user interaction, exploitation is straightforward once the attacker holds the required admin privileges.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

Second-order SQL injection in OpenEMR's IPPF contraceptive issue feature (before 8.5.0) lets an authenticated administrator turn a crafted layout field identifier into arbitrary SQL that executes when a contraceptive issue is saved. The attacker first stores a malicious field_id for form 'CON' via /interface/super/edit_layout.php, then triggers issue_ippf_con_save() through add_edit_issue.php, where the stored identifier is concatenated into a REPLACE INTO lists_ippf_con statement as a column name. Exploitation requires the 'admin'/'super' ACL, so the flaw is high impact but gated behind administrative privilege; the GitHub advisory publishes a PoC request sequence (not independently verified as working exploit code), and no CISA KEV entry or EPSS score was supplied with this record.

RemediationAI

Upgrade to OpenEMR 8.5.0, the vendor-released fix, following the GHSA advisory at https://github.com/openemr/openemr/security/advisories/GHSA-8j6v-q545-q9q7; the patch changes how layout_options field identifiers are handled when the REPLACE INTO lists_ippf_con statement is assembled. If the upgrade cannot be applied immediately, the most direct compensating control is to reduce who holds the 'admin'/'super' ACL, since the injection requires the ability to write layout_options.field_id through /interface/super/edit_layout.php - the trade-off is that OpenEMR administration becomes restricted and layout maintenance must go through a smaller, monitored group. A second option is to restrict network access to /interface/super/edit_layout.php and /interface/patient_file/summary/add_edit_issue.php at the web server or reverse proxy to trusted administrative networks only, accepting that legitimate clinicians and admins working remotely lose access to those pages. Because the payload is stored, disabling the IPPF contraceptive ('CON') layout feature or removing any unexpected field_id entries from layout_options for form_id 'CON' removes the sink, at the cost of losing contraceptive issue tracking for affected patients. After patching or restricting access, audit layout_options rows with form_id 'CON' for unexpected field_id values and review logs for POSTs to edit_layout.php with unusual newid parameters.

Affected VersionsENISA

OpenEMR 0 <8.5.0

Affected Packages

euvd openemr fix: 8.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OpenEMR is a PHP-based electronic health record system backed by MySQL/MariaDB. This is a CWE-89 SQL injection of the second-order (stored) variety: the vulnerable sink is issue_ippf_con_save() in library/ippf_issues.inc.php (around line 204), which iterates rows of the layout_options table for form_id 'CON' and builds "REPLACE INTO lists_ippf_con SET $sets", appending each row's field_id as a column name. The code applies add_escape_custom() to that field_id, but that helper escapes string values, not SQL identifiers, so the stored field_id is placed into the statement unquoted as an identifier. The source of the tainted value is /interface/super/edit_layout.php, which allows an administrator with AclMain::aclCheckCore('admin','super') to add a new field to the CON layout; the malicious identifier is written to layout_options.field_id and stays dormant until add_edit_issue.php (line ~286, when $text_type == 'contraceptive') calls issue_ippf_con_save(). The advisory's PoC submits a field named "injection'payload" and then saves a contraceptive issue, producing a MariaDB syntax error in the REPLACE INTO statement - confirming the identifier is reaching the query unescaped. The researcher explicitly notes it was not proven that non-admin accounts can write to layout_options.field_id, and the independent assessment rates PR:H accordingly, so the flaw is not reachable by low-privilege or unauthenticated users.

Know when Openemr gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.6 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.2 HIGH

Network-reachable web app with no user interaction (AV:N/AC:L/UI:N), but requires administrative ACL to plant the payload (PR:H); SQLi yields full database read/write/destruction, so C/I/A:H with unchanged scope.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 13, 2026 - 10:02 EUVD
CVE Published
Nov 13, 2026 - 09:34 cve.org
HIGH 8.6

DescriptionCVE.org

OpenEMR before 8.5.0 contains a second-order SQL injection vulnerability in the IPPF contraceptive issue feature because issue_ippf_con_save concatenates layout_options field_id values into a REPLACE INTO query as column names. Authenticated administrators can add a malicious field_id via edit_layout.php, then trigger issue_ippf_con_save through add_edit_issue.php to execute arbitrary SQL.

Technical POC Analysis

CWE-89, second-order SQL injection (SQL identifier injection).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-126489 is a high-severity second-order SQL injection in OpenEMR's IPPF contraceptive issue feature affecting versions before 8.5.0. It allows an authenticated administrator to execute arbitrary SQL when saving a contraceptive issue, potentially compromising patient data and system integrity. Leadership should prioritize patching due to the sensitive healthcare data at risk, though the administrative privilege requirement partially limits exposure.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 58% exploitable
Prevalence
Medium
most popular open-source EHR, moderate real-world healthcare deployment footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

CVE-2013-10044 HIGH POC
8.7 Aug 01

An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to

CVE-2026-24898 CRITICAL POC
10.0 Mar 03

Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.

CVE-2026-24848 CRITICAL POC
9.9 Mar 03

Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.

CVE-2026-24849 CRITICAL POC
9.9 Feb 25

Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the

CVE-2026-24908 CRITICAL POC
9.9 Feb 25

SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the

CVE-2024-22611 CRITICAL POC
9.8 Apr 03

OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl

CVE-2024-37734 CRITICAL POC
9.8 Jun 26

An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par

CVE-2026-25146 CRITICAL POC
9.6 Mar 03

Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.

CVE-2026-39932 CRITICAL POC
9.4 Aug 03

Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so

CVE-2012-0992 HIGH POC
8.5 Feb 07

interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel

CVE-2026-124450 CRITICAL POC
9.3 Nov 08

Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms

CVE-2015-4453 MEDIUM
5.0 Jul 05

interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy