Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as OpenEMR administrator
-
DeliveryInject malicious field_id via edit_layout.php
-
ExploitTrigger issue_ippf_con_save via add_edit_issue.php
-
ExecutionConcatenated field_id executes as SQL
-
ImpactRead/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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
An authenticated SQL injection vulnerability exists in OpenEMR ≤ 4.1.1 Patch 14 that allows a low-privileged attacker to
Unauthenticated token disclosure in OpenEMR before 8.0.0. CVSS 10.0. PoC and patch available.
Path traversal in OpenEMR 7.0.4 disposeDocument() allows file access. PoC available.
Path traversal in OpenEMR electronic health records before fix allows authenticated users to read arbitrary files on the
SQL injection in OpenEMR electronic health records before fix. Authenticated users can execute arbitrary SQL through the
OpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.cl
An issue in OpenEMR 7.0.2 allows a remote attacker to escalate privileges viaa crafted POST request using the noteid par
Information disclosure in OpenEMR 5.0.2 to before 8.0.0 exposes sensitive data. PoC and patch available.
Remote code execution in OpenEMR through 8.2.0 lets an authenticated administrator poison the document category tree so
interface/fax/fax_dispatch.php in OpenEMR 4.1.0 allows remote authenticated users to execute arbitrary commands via shel
Authenticated low-privilege users can exploit OpenEMR before 8.3.0 to read and write arbitrary files through the fax/sms
interface/globals.php in OpenEMR 2.x, 3.x, and 4.x before 4.2.0 patch 2 allows remote attackers to bypass authentication
EUVD-2026-125135
GHSA-vj64-2xj8-pcw7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB