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
- 2026-03-19
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-opcacheDefensia 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
- 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
- Verify DICOM export functionality is enabled by checking if any DICOM-related modules or ZIP creation features are active in OpenEMR settings
- 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
- 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
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