CVE-2026-126429

OpenEMR before 8.5.0 Local File Disclosure via doc_lib.php PDF Renderer

Published Nov 13, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
OpenEMR before 8.5.0 passes authenticated user-controlled HTML from the doc_lib.php content parameter to mPDF, which resolves local files and nested SVG resources. Authenticated patients or core users can submit crafted CSS imports or php://filter SVG references to read arbitrary server files including credentials and OAuth keys.

Analysis

AI-generated

Technical impact

OpenEMR versions before 8.5.0 allow an authenticated user to supply arbitrary HTML through the doc_lib.php content parameter. The supplied HTML is passed to the mPDF library, which resolves local files and nested SVG resources. By crafting CSS imports or php://filter SVG references, users can read any file on the server, including credentials and OAuth keys. This results in a local file disclosure vulnerability.

Affected Systems

The flaw exists in OpenEMR 8.4.x and earlier distributions used by healthcare and medical software deployments worldwide. Systems running any pre‑8.5.0 build that expose the doc_lib.php endpoint to authenticated patients or core users are affected. No specific minor version series is listed, so all builds prior to the 8.5.0 release are considered vulnerable.

Risk and Exploitability

The CVSS base score of 7.1 indicates moderate severity. The EPSS score is under 1 %, suggesting that exploitation attempts are currently rare. The vulnerability is not listed in the CISA KEV catalog. An attacker must first authenticate as a patient or core user before submitting the malicious content, which limits the attack surface but still permits privileged read access to sensitive files. The risk is moderate and the exploitability depends on the presence of a valid authenticated session and the ability to submit content to doc_lib.php.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OpenEMR to version 8.5.0 or later where the issue is fixed.
  • If an upgrade is not immediately possible, restrict the doc_lib.php content parameter by disallowing CSS imports and disabling SVG resource loading in the mPDF configuration.
  • Audit the server for exposed credential files that may have been accessed and revoke or rotate any compromised credentials.

Generated by OpenCVE AI on November 14, 2026 at 15:38 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
First Time appeared Openemr
Openemr openemr
Vendors & Products Openemr
Openemr openemr
Type Values Removed Values Added
Description OpenEMR before 8.5.0 passes authenticated user-controlled HTML from the doc_lib.php content parameter to mPDF, which resolves local files and nested SVG resources. Authenticated patients or core users can submit crafted CSS imports or php://filter SVG references to read arbitrary server files including credentials and OAuth keys.
Title OpenEMR before 8.5.0 Local File Disclosure via doc_lib.php PDF Renderer
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 17, 2026, 8:38 PM
Reserved
Nov 10, 2026, 9:37 PM
Status
Analyzed
Published
Nov 13, 2026, 10:17 AM
Modified
Nov 17, 2026, 9:17 PM