CVE-2026-124479

OpenEMR before 8.4.0 Arbitrary File Read via REST Document Download

Published Nov 8, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Collaborator logged in to OpenEMR can upload a deliberately crafted document that contains an absolute filesystem path, such as the location of sqlconf.php. During download, the system hands this path to Symfony’s BinaryFileResponse, which interprets it as a file path rather than data, allowing the attacker to read the file’s content. The result is that an authenticated user can retrieve arbitrary server files and expose database credentials, compromising confidentiality.

Affected Systems

The vulnerability exists in OpenEMR versions prior to 8.4.0. Any installation consuming the bundled REST document download controller, including the openemr:openemr product, is susceptible. No specific sub‑components or deprecated features were mentioned; the issue applies broadly to all affected releases.

Risk and Exploitability

The CVSS score of 7.1 indicates moderate to high severity. There is no EPSS data available, so exploitation probability cannot be quantified from public metrics. The vulnerability is not listed in CISA’s KEV catalog. Externally, the exploit requires an authenticated session with document upload and download permissions. Classic local file inclusion via REST API could allow attackers to read any file the application can read, which offers significant gain for credential theft and further compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor’s patch or upgrade to OpenEMR 8.4.0 or later.
  • Restrict document upload permissions so only trusted roles can perform uploads, thereby limiting the attack surface.
  • Verify input handling for upload paths and enforce validation that rejects absolute paths or directory traversal sequences before storage.

Generated by OpenCVE AI on November 8, 2026 at 14:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title OpenEMR before 8.4.0 Arbitrary File Read via REST Document Download
First Time appeared Open-emr
Open-emr openemr
Weaknesses CWE-73
CPEs cpe:2.3:a:open-emr:openemr:*:*:*:*:*:*:*:*
Vendors & Products Open-emr
Open-emr openemr
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 7.1, 'vector': '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'}

Weaknesses
  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 9, 2026, 2:15 PM
Reserved
Nov 8, 2026, 2:17 AM
Status
Analyzed
Published
Nov 8, 2026, 2:18 PM
Modified
Nov 17, 2026, 9:13 PM