---
id: CVE-2026-124479
title: OpenEMR before 8.4.0 Arbitrary File Read via REST Document Download
summary: >-
  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…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-73
vendor: openemr
product: openemr
affected:
  - openemr < 8.4.0
published: '2026-11-08'
updated: '2026-11-08'
sourceUpdated: '2026-11-08T13:15:59.341Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-124479'
references:
  - url: 'https://github.com/openemr/openemr/security/advisories/GHSA-xgxv-36g2-hq5g'
    label: GitHub Security Advisory (GHSA-xgxv-36g2-hq5g)
  - url: >-
      https://www.vulncheck.com/advisories/openemr-before-8.4.0-arbitrary-file-read-via-rest-document-download
    label: >-
      VulnCheck Advisory: OpenEMR before 8.4.0 Arbitrary File Read via REST
      Document Download
tags:
  - cve.org
ingestedAt: '2026-11-08T13:50:34.962Z'
---

## Overview

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.

## Affected

- `openemr < 8.4.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
