medium CVSS 6.5 EPSS <0.1%

CVE-2026-25928·PHP vulnerability

OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.0.0.2, the DICOM zip/export feature uses a user-supplied destination or path component when creating the zip file, without sanitizing path traversal sequences (e.g. `../`). An attacker with DICOM upload/export permission can write files outside the intended directory, potentially under the web root, leading to arbitrary file write and possibly remote code execution if PHP or other executable files can be written. Version 8.0.0.2 fixes the issue.

Severity
medium
Software
PHP
Fixed in
8.0.0.2
Published

How likely is exploitation

FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 4% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.

Affected versions

Until: 8.0.0.2

Fixed in: 8.0.0.2

How to fix this CVE

OpenEMR versions prior to 8.0.0.2 contain a path traversal vulnerability in the DICOM zip export feature that allows authenticated users to write files outside intended directories, potentially enabling remote code execution. Upgrade OpenEMR to version 8.0.0.2 or later immediately, and review file permissions on your web root to ensure proper access controls are in place. Verify that no unauthorized files were written outside the DICOM export directory by checking your filesystem logs and audit trails.

sudo dnf update php php-cli php-fpm php-common php-json php-mysqlnd php-zip php-gd php-mbstring php-curl php-xml php-opcache

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST|GET /openemr/.*export.*\.php.*zip.*path=(\.\./|%2e%2e%2f|..\\)

WAF mitigation (if patching is not yet possible)

Add this rule to your WAF to block exploitation attempts while you schedule the patch.

Block HTTP requests to DICOM export endpoints that contain path traversal sequences (../, ..\, %2e%2e%2f, %252e%252e%252f) in any parameter; implement strict input validation to reject non-alphanumeric characters in file path and destination parameters.

How to check if you are affected

  1. Check the installed OpenEMR version by running: grep -r 'version' /var/www/openemr/version.php or checking the Administration > Version page in the web interface
  2. Verify DICOM export functionality is enabled by checking if any DICOM-related modules or ZIP creation features are active in OpenEMR settings
  3. Search web server logs for DICOM export requests with suspicious path sequences using: grep -E '\.\./' /var/log/apache2/access.log or /var/log/nginx/access.log
  4. Confirm the patch was applied by verifying OpenEMR version is 8.0.0.2 or higher and checking the commit hash in the source code: grep -r 'ddcf04ea769a33cdc1932355224575478df70585' /var/www/openemr/

Indicators of compromise

  • POST requests to DICOM export endpoints with ../ or similar sequences in the path parameter
  • Unexpected PHP or executable files created outside /var/www/openemr/documents/ directory
  • Suspicious file writes in web-accessible directories with timestamps correlating to DICOM export activity

FAQ

What is CVE-2026-25928?

CVE-2026-25928 is a path traversal vulnerability in OpenEMR's DICOM zip/export functionality that fails to sanitize directory traversal sequences, allowing authenticated attackers with DICOM permissions to write files outside the intended export directory and potentially execute arbitrary code.

Is CVE-2026-25928 being actively exploited?

No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog, and no public exploit code is available, though the vulnerability should still be treated as high priority due to its potential for RCE.

What versions of OpenEMR are affected by CVE-2026-25928?

All versions of OpenEMR prior to 8.0.0.2 are affected; the vulnerability was patched in version 8.0.0.2 and later.

How do I check if my server is vulnerable to CVE-2026-25928?

Run: grep -i 'version' /var/www/openemr/version.php to check your OpenEMR version; if it is below 8.0.0.2, your system is vulnerable.

Does Defensia detect CVE-2026-25928?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If OpenEMR is installed on a monitored server, CVE-2026-25928 will appear in your dashboard with remediation steps.

Related PHP CVEs

CVE-2024-5932CVSS 10The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.14.1 via deserialization of untrusted input from the 'give_title' parameter. This makes it possible for unauthenticated attackers to inject a PHP Object. The additional presence of a POP chain allows attackers to execute code remotely, and to delete arbitrary files.
CVE-2026-28289CVSS 10FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. A patch bypass vulnerability for CVE-2026-27636 in FreeScout 1.8.206 and earlier allows any authenticated user with file upload permissions to achieve Remote Code Execution (RCE) on the server by uploading a malicious .htaccess file using a zero-width space character prefix to bypass the security check. The vulnerability exists in the sanitizeUploadedFileName() function in app/Http/Helper.php. The function contains a Time-of-Check to Time-of-Use (TOCTOU) flaw where the dot-prefix check occurs before sanitization removes invisible characters. This vulnerability is fixed in 1.8.207.
CVE-2025-25174CVSS 10Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in beeteam368 BeeTeam368 Extensions beeteam368-extensions allows PHP Local File Inclusion.This issue affects BeeTeam368 Extensions: from n/a through <= 1.9.4.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.
CVE-2025-47916CVSS 10Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-25928. Free for 1 server.

Get started free