Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with document upload/download rights
-
DeliveryUpload text document whose body is an absolute server path
-
ExploitDownload document via REST; BinaryFileResponse reads path as file
-
ExecutionExfiltrate sqlconf.php and recover DB credentials
-
ImpactPivot to full patient-data (PHI) compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
|
| Exploitation Conditions | Requires an authenticated OpenEMR session holding both document upload and document download/read permissions for a patient (PR:L); it is not exploitable by anonymous/unauthenticated users. The target must run OpenEMR before 8.4.0 with the REST document API reachable. No user interaction and no special non-default configuration are needed beyond those access rights - the unsafe reinterpretation happens after normal authorization, and category/type validation does not block a text/plain body containing an absolute path. Limiting factors: the attacker must possess or obtain valid low-privilege credentials with these document capabilities, and must know (or guess) absolute server paths such as the sites/default/sqlconf.php location to read a useful file. |
| Impact | This is a credible but qualified priority, not a drop-everything emergency. The input supplies only a CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) scoring 7.1 (High): network vector, low complexity, no attack requirements, no user interaction, but PR:L - exploitation requires an authenticated account. The vuln.today decision label is 'this_week', consistent with a serious but not actively-mass-exploited flaw. There is no KEV listing and no EPSS score in the provided data, so widespread automated exploitation cannot be asserted; the gating factor is that an attacker must already hold a valid OpenEMR account with document upload AND download privileges. Against that, the technical impact is high and well-evidenced: the GHSA advisory documents a confirmed, executed PoC that recovered the live sqlconf.php (database credentials) rather than the uploaded file, enabling pivot to full patient-data (PHI) compromise. Net: real priority for any internet-exposed or multi-tenant OpenEMR instance where low-privilege clinical users exist, but the authenticated prerequisite meaningfully narrows the attacker population versus an unauthenticated RCE. No signals here conflict; the main gap is the absence of EPSS/KEV telemetry to gauge in-the-wild activity. |
| Exploit ScenarioDerived | An authenticated OpenEMR user with document upload and download rights (e.g., a low-privilege clinical staff account, or an attacker who has phished/obtained such credentials) uploads a plain-text patient document whose bytes are an absolute server path such as /var/www/.../sites/default/sqlconf.php. They then download that document through the REST API, where Symfony's BinaryFileResponse treats the stored bytes as a filesystem path and streams the referenced server file back, yielding the database credentials. A confirmed, executed proof of concept for this exact sequence is published 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
OpenEMR versions before 8.4.0 let an authenticated user with patient document upload and download rights read arbitrary server-local files through the REST document download endpoint, because the controller hands stored document bytes to Symfony's BinaryFileResponse as a filesystem path. An attacker uploads an ordinary text/plain document whose entire body is an absolute path such as the site's sqlconf.php, then downloads that document and receives the referenced PHP source, exposing database credentials and enabling broader patient-data compromise; the advisory reports an executed proof-of-concept against commit acdd99694b45e1f384060e10ca1af1b0de629069 that returned the live sqlconf.php instead of the 59-byte pathname string. Exploitation requires valid low-privilege credentials holding both document capabilities and knowledge of target paths; there is no CISA KEV entry and no confirmed active exploitation at time of analysis.
RemediationAI
Upgrade OpenEMR to version 8.4.0, the fixed release identified in the GitHub advisory GHSA-xgxv-36g2-hq5g (https://github.com/openemr/openemr/security/advisories/GHSA-xgxv-36g2-hq5g) and in the VulnCheck advisory (https://www.vulncheck.com/advisories/openemr-before-8.4.0-arbitrary-file-read-via-rest-document-download); vendor patch availability is confirmed. Until the upgrade is deployed, the exposure is bounded by the permissions it requires, so review which accounts hold both document upload and document download/read capabilities for patients and remove those rights from users who do not need them, since the flaw is only reachable by a user possessing both. Also treat the site's sqlconf.php database credentials as potentially disclosed if any low-privilege document user could reach the REST API, and rotate those credentials after patching.
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
The root cause is CWE-73 (external control of file name or path) in OpenEMR's PHP document pipeline. DocumentService::insertAtPath() reads the temporary upload into a string with file_get_contents() and stores those bytes verbatim as the document body, checking only file type (isWhiteFile when secure_upload is enabled) and category validity. DocumentService::getFile() later enables raw retrieval via C_Document::retrieve_action(..., true, true, true) and returns the stored bytes as the 'file' element. DocumentRestController::downloadFile() then constructs new BinaryFileResponse($results['file']), and Symfony HttpFoundation treats that string argument as a path on the server filesystem rather than as response content, streaming whatever file it names. The unsafe reinterpretation therefore occurs after authorization and after storage, so neither the upload validation nor the per-document access check blocks it. Affected per CPE cpe:2.3:a:openemr:openemr:* with EUVD listing 0 through <8.4.0; the flaw was fixed in 8.4.0.
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
Authenticated low-privilege user (PR:L) sends a crafted REST request (AV:N, AC:L, no UI) to read arbitrary server files (C:H); no modification or availability impact and base scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
OpenEMR before 8.4.0 contains an arbitrary local file read vulnerability in REST document download, where the controller passes stored uploaded document bytes to Symfony's BinaryFileResponse as a filesystem path instead of returning them as content. Authenticated users with document upload and download access can upload a document containing an absolute pathname, such as the sqlconf.php location, then download it to read server files and recover database credentials.
Technical POC Analysis
CWE-73 (External Control of File Name or Path) per the CVE header; note that the supplied GHSA text itself lists "Weaknesses: No CWEs" and "CVE ID: No known CVE", so the CVE/CWE identifiers here come…
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-124479 in OpenEMR (versions before 8.4.0) allows authenticated users with document upload/download rights to read arbitrary server files, potentially exposing database credentials and compromising patient data. This vulnerability affects any organization using OpenEMR for patient records and could lead to unauthorized access to sensitive health information, regulatory violations, and reputational damage. Leadership must prioritize patching and access control review to protect patient trust and avoid compliance penalties.
Apply vendor patch. Until patching, restrict document upload/download privileges to trusted users, disable or tightly restrict the REST document download endpoint, and monitor file access logs for anomalous activity.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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-119534
GHSA-jg97-vcwh-pc35
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB