Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege OAuth2 token
-
DeliverySend request with crafted parameter name to insurance/employer endpoint
-
ExploitParameter name concatenated as SQL column identifier
-
ExecutionExtract data via blind/time-based/error-based injection
-
ImpactExfiltrate PHI, user records, and API client secrets
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 an authenticated OAuth2 token on OpenEMR before 8.3.0 - notably even a low-privilege patient-portal token is sufficient, since the insurance/employer routes are reachable via isPatientRequest(). The deployment must have the non-default connectors enabled: Administration → Globals → Connectors with 'Enable OpenEMR Standard FHIR REST API' and 'Enable OAuth2 Password Grant' turned on, and a registered, admin-approved OAuth2 client with patient/insurance (or employer) read scope. The injection is carried in the query-string parameter NAME, which is concatenated as an unescaped SQL column identifier; the /employer endpoint additionally returns raw DB errors enabling error-based extraction. Limiting factors: valid authentication is mandatory (not remote-unauthenticated), and instances that have not enabled the Standard REST API / OAuth2 password grant are not exposed. No user interaction is required. |
| Impact | Signals are moderately consistent and point to a real but gated priority. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) and the description agree: network-reachable, low-complexity, but authenticated - PR:L reflects that even a low-privilege patient-portal OAuth2 token suffices, which widens the attacker population beyond admins. Impact is read-dominated (VC:H) covering patient PHI/PII, the users table, and API client secrets, with limited integrity (VI:L) and no availability impact (VA:N). The vuln.today decision label is 'this_week' (not act_now/emergency), indicating elevated-but-not-critical urgency. A detailed working PoC is published inside the vendor GHSA advisory (curl-based error-based, boolean/blind, and time-based (select(sleep(5))) confirmation), so exploitability is demonstrated - but there is NO CISA KEV listing and NO EPSS score provided in the input, so real-world exploitation is not confirmed and widespread automated scanning cannot be quantified from the data. Net: this is a genuine SQL injection with full-database read impact and public proof-of-concept, materially above a 'high-CVSS/low-real-risk' paper flaw, but its exploitation is bounded by prerequisites (authentication plus non-default REST API/OAuth2 enablement) rather than remote-unauthenticated against defaults. Note a data caveat: the supplied patch commit diff (e51b0ff) only shows RELEASE_PROCESS.md documentation changes, not the code-level fix, so the fix content is not directly visible in the provided evidence - the fixed version 8.3.0 is stated by the GHSA advisory itself. |
| Exploit ScenarioDerived | An attacker who holds any valid OAuth2 token - including a low-privilege patient-portal account - on an OpenEMR instance with the Standard REST API and OAuth2 enabled sends a request to /api/patient/{puuid}/insurance or /employer with a crafted query-string parameter NAME (not value) such as (select(sleep(5)))=1, which is concatenated into the SQL as a column identifier. Using the published blind/time-based and error-based techniques from the vendor PoC, they extract arbitrary database contents including other patients' PHI, the users table, and API client secrets. A functional PoC is publicly documented in the vendor's GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 08, 2026
SQL injection in the OpenEMR Standard REST API affects every release before 8.3.0 and lets an authenticated client - including a low-privilege patient-portal OAuth2 token - read arbitrary database contents such as patient PHI/PII, the users table and stored API client secrets. The flaw is not remotely unauthenticated: exploitation requires a registered, admin-approved OAuth2 client plus the non-default 'Enable OpenEMR Standard FHIR REST API' and 'Enable OAuth2 Password Grant' connectors, which limits exposure to API-enabled deployments. The vendor advisory documents a working reproduction using time-based blind and error-based techniques against the patient insurance and employer endpoints, and the issue is rated this_week priority with a fix released in OpenEMR 8.3.0.
RemediationAI
Vendor-released patch: upgrade OpenEMR to 8.3.0 or later, which fixes the injection at commit e51b0ff9e5b62d43d499d0cd0425290c29ed1212 (https://github.com/openemr/openemr/security/advisories/GHSA-fhc4-8f9p-8mcc). If upgrading cannot be completed immediately, disable the 'Enable OpenEMR Standard FHIR REST API' and 'Enable OAuth2 Password Grant' options under Administration → Globals → Connectors - this removes the exposure path but breaks any FHIR/API integrations until re-enabled. Also review Administration → System → API Clients, revoke or re-issue OAuth2 clients and patient-portal tokens that carry insurance or employer read scope, and rotate API client secrets, since the advisory states client secrets are among the data an attacker can extract; treat existing tokens and secrets as potentially compromised and look for anomalous query parameters or database error responses in API logs.
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's Standard REST API routes (apis/routes/_rest_routes_standard.inc.php) forward raw query-string parameters from GET /api/patient/{puuid}/insurance and GET /api/patient/{puuid}/employer into InsuranceRestController, where only uuid/puuid are type-wrapped and every other key passes through untouched. FhirSearchWhereClauseBuilder turns each non-ISearchField entry into a StringSearchField using the array key - the attacker-supplied parameter name - as the column name, and SearchFieldStatementResolver renders the EXACT modifier as "BINARY " . field . ' = ?'. The value is properly bound, but the column identifier is concatenated directly into the SQL text with no escaping or allowlist, which is the classic CWE-89 identifier-injection pattern; a parameter name such as (select(sleep(5))) is parsed and executed as SQL. The /employer endpoint shares the root cause and additionally returns the raw database error to the client, enabling error-based extraction, while insurance supports time-based blind extraction. Reachability through isPatientRequest() means the lowest-privilege patient-portal token is sufficient, which widens the attacker population well beyond administrative API clients.
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:L/VA:N/SC:N/SI:N/SA:N
Network REST API with no timing dependency gives AV:N/AC:L; a low-privilege OAuth2 token is required so PR:L; full database read (PHI, secrets) is C:H with limited write (I:L) and no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
OpenEMR before 8.3.0 contains an SQL injection vulnerability in the Standard REST API patient insurance and employer search, which concatenates query-string parameter names into SQL as column identifiers without escaping. Authenticated clients, including low-privilege patient-portal OAuth2 tokens, can send crafted parameter names to /api/patient/{puuid}/insurance or /api/patient/{puuid}/employer to extract patient PHI, user records, and API client secrets.
Technical POC Analysis
CWE-89 (SQL injection), in OpenEMR's Standard REST API search plumbing.
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 record system, contains a high-severity SQL injection flaw (CVE-2026-124468) that permits low-privilege authenticated users, such as patient-portal OAuth2 clients, to read sensitive database contents including patient PHI/PII and API secrets. This affects any organization running OpenEMR before version 8.3.0 with the FHIR REST API and OAuth2 password grant connectors enabled. Leadership should prioritize remediation because compromise could lead to large-scale healthcare data breaches, regulatory penalties, and reputational harm.
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-119524
GHSA-xx67-hf9j-67wx
NVD
CVE.org
EPSS
Exploit-DB