Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as report (acct/rep) user
-
DeliverySubmit crafted form_facility in IPPF report POST
-
ExploitClose facility_id string literal in WHERE clause
-
ExecutionInject boolean/time-based SQL probe
-
ImpactBlind-exfiltrate sensitive database contents
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 | Requires (1) an OpenEMR install running the IPPF configuration - the vulnerable interface/reports/ippf_statistics.php report only exists and is only reachable there; and (2) an authenticated user with the acct/rep report privilege who can run that report. The exact trigger is a POST with a crafted form_facility value that breaks out of the 'AND fe.facility_id = '$form_facility'' literal; the vulnerable branch is on the live SQL path selected by posted form_content/form_by values, and no intval, allowlist, or escaping is applied in between. Limiting factors that reduce real-world exposure: the authentication/role requirement (PR:L), the IPPF-specific deployment dependency, and the single-statement context that restricts impact to blind read-out of data rather than data modification or stacked queries. |
| Impact | This is a genuine but bounded risk, best characterized as moderate rather than critical. The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H) scores 7.1 and correctly captures the core profile: network-reachable, low complexity, but requiring authenticated privileges (PR:L) - specifically a user with the acct/rep report role, per the GHSA advisory. Impact is confidentiality-only (VC:H, VI:N, VA:N), consistent with a single-statement read-out SQL injection that cannot stack queries or modify data. The vuln.today Decision label is 'this_week', which aligns with a patch-available, authenticated, confidentiality-only flaw - not an act_now/emergency signal. No CISA KEV listing and no EPSS score were supplied, so there is no evidence of active exploitation or a quantified exploitation probability; absence of these is a data gap, not a clean bill of health. A key real-world limiter, emphasized by the reporter, is that interface/reports/ippf_statistics.php only exists and only matters on installs running the IPPF configuration, so the exposed attack surface is a subset of OpenEMR deployments. Bottom line: a real, patchable confidentiality issue that warrants prompt remediation on affected IPPF installations, but the authentication requirement and configuration-specific reachability keep it below top-tier urgency. |
| Exploit ScenarioDerived | An authenticated OpenEMR user holding the report (acct/rep) role on an install running the IPPF configuration submits the IPPF statistics report with a crafted form_facility POST value that closes the facility_id string literal. Using boolean or time-based payloads, they blind-extract sensitive database contents (e.g., patient or credential data) even without visible query output. No public, verified working exploit code is identified; the advisory illustrates a conceptual payload, and the reporter states they read the code at HEAD rather than executing an exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
SQL injection in OpenEMR's IPPF statistics report (interface/reports/ippf_statistics.php) lets an authenticated user holding the acct/rep report privilege break out of the facility_id string literal and read sensitive database contents through boolean- or time-based blind probes. All OpenEMR releases before 8.5.0 are affected by CPE, but the vulnerable report exists and is reachable only on installations running the IPPF configuration, which narrows real-world exposure alongside the authentication requirement. The vendor has released 8.5.0 as the fixed version, no public exploit code was identified at time of analysis, and priority is this week rather than emergency.
RemediationAI
Upgrade to OpenEMR 8.5.0, the vendor-released fixed version, per advisory GHSA-p2ch-6856-w69j (https://github.com/openemr/openemr/security/advisories/GHSA-p2ch-6856-w69j) and the VulnCheck advisory. If an immediate upgrade is not possible, the upstream fix is a single-line change: in interface/reports/ippf_statistics.php make the line 1456 block match the already-correct block at line 1288 by replacing '$form_facility' with a ? placeholder, keeping the existing array_push onto $sqlBindArray - this repairs the injection and the placeholder mismatch together. As compensating controls, restrict the acct/rep privilege to only the staff who genuinely need reporting (this reduces the attacker population but does not remove the flaw for those users), and on deployments that do not use IPPF remove or block access to interface/reports/ippf_statistics.php (effective for non-IPPF installs, at the cost of losing that report on any site that does use it) until the upgrade can be applied.
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 web application, and this is a classic CWE-89 improper neutralization of special elements in an SQL query. In interface/reports/ippf_statistics.php the POSTed form_facility value is taken raw from $_POST and concatenated into a WHERE clause as AND fe.facility_id = '$form_facility' at roughly line 1456; nothing in between applies intval, an allowlist, or escaping. Notably the same block also pushes the value onto $sqlBindArray even though the query string contains no ? placeholder for it, so the parameter count is off as well - an unfinished conversion, since an identical facility_id condition about 170 lines earlier (around line 1288) correctly uses a bound ? placeholder. The facility <select> rendered in the form provides no protection because form_facility is an ordinary client-controlled POST field, and the vulnerable branch sits on the live SQL path selected by the posted form_content and form_by values rather than in dead code. A payload such as ' OR (SELECT ...) -- closes the literal, and because the injection point is a single-statement context the impact is confined to blind read-out of data via boolean or time-based inference rather than stacked queries, data modification, or writes. Per the independent assessment the assessed vector is AV:N/AC:L/PR:L/UI:N with confidentiality-only impact (C:H/I:N/A:N), reflecting the authenticated, IPPF-specific prerequisites.
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:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable report endpoint (AV:N, AC:L) requires an authenticated acct/rep user (PR:L); blind SQLi reads sensitive data (C:H) with no integrity or availability impact and no scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
OpenEMR before 8.5.0 contains an SQL injection vulnerability that allows authenticated report users to manipulate queries by supplying a crafted form_facility value to interface/reports/ippf_statistics.php. Attackers can close the string literal in the facility_id WHERE clause and use boolean or time-based payloads to read sensitive database contents.
Technical POC Analysis
CWE-89, SQL injection by string interpolation.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
OpenEMR, a widely used electronic health records system, has a high-severity SQL injection vulnerability in its IPPF statistics report affecting all versions before 8.5.0. The flaw requires an authenticated user with report privileges, limiting exposure to staff accounts and only installations using IPPF configuration. Leadership should prioritize patching this week to prevent potential access to sensitive patient data by malicious insiders or compromised accounts.
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-124941
GHSA-wqrg-546p-pxg4
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB