Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-25928

CVE-2026-25928: OpenEMR Path Traversal Vulnerability

CVE-2026-25928 is a path traversal vulnerability in OpenEMR's DICOM zip/export feature that allows attackers to write files outside intended directories. This article covers technical details, affected versions, and mitigation.

Published: March 19, 2026

CVE-2026-25928 Overview

OpenEMR, a widely-used free and open source electronic health records (EHR) and medical practice management application, contains a path traversal vulnerability in its DICOM zip/export feature. Prior to version 8.0.0.2, the application fails to properly sanitize user-supplied destination or path components when creating zip files. This allows attackers with DICOM upload/export permissions to write files outside the intended directory by using path traversal sequences (e.g., ../), potentially enabling arbitrary file write and remote code execution.

Critical Impact

Authenticated attackers can exploit this path traversal vulnerability to write arbitrary files to the web server, potentially leading to remote code execution if executable files such as PHP scripts can be written to accessible locations.

Affected Products

  • OpenEMR versions prior to 8.0.0.2
  • OpenEMR DICOM zip/export feature
  • Healthcare systems running vulnerable OpenEMR installations

Discovery Timeline

  • 2026-03-19 - CVE CVE-2026-25928 published to NVD
  • 2026-03-19 - Last updated in NVD database

Technical Details for CVE-2026-25928

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as Path Traversal. The flaw exists in the DICOM file handling functionality where the application processes user-uploaded files without properly sanitizing the filename components.

When users upload DICOM files through the export feature, the application uses the user-supplied filename directly when creating files in the temporary directory. The lack of path traversal sequence filtering allows malicious actors to craft filenames containing ../ sequences that escape the intended directory structure.

The vulnerability requires network access and authenticated user privileges (specifically DICOM upload/export permissions), but once these conditions are met, exploitation can lead to high-impact integrity violations through arbitrary file writes.

Root Cause

The root cause lies in the C_Document.class.php controller, which processes uploaded DICOM files without stripping directory components from filenames. The original code used the raw $_FILES['dicom_folder']['name'] value directly when constructing file paths, allowing attackers to include path traversal sequences that would navigate outside the intended temporary_files_dir directory.

Attack Vector

An attacker with valid DICOM upload/export permissions can craft a malicious filename containing path traversal sequences. When processing the upload, the vulnerable code constructs a file path using the unsanitized filename, allowing the attacker to write files to arbitrary locations on the server filesystem. If the attacker can write to a web-accessible directory, they could upload a PHP webshell or other executable content to achieve remote code execution.

The following patch demonstrates how the vulnerability was addressed by adding the basename() function to strip directory components:

php
         $zip_name = $GLOBALS['temporary_files_dir'] . "/" . $study_name;
         if ($zip->open($zip_name, (ZipArchive::CREATE | ZipArchive::OVERWRITE)) === true) {
             foreach ($_FILES['dicom_folder']['name'] as $i => $name) {
+                // Strip directory components to prevent path traversal.
+                $name = basename((string) $name);
                 $zfn = $GLOBALS['temporary_files_dir'] . "/" . $name;
-                $fparts = pathinfo((string) $name);
+                $fparts = pathinfo($name);
                 if (empty($fparts['extension'])) {
                     // viewer requires lowercase.
                     $fparts['extension'] = "dcm";

Source: GitHub Commit Update

Detection Methods for CVE-2026-25928

Indicators of Compromise

  • Unusual file creation events in directories outside the DICOM temporary folder
  • Files with suspicious extensions (e.g., .php, .phtml) appearing in web-accessible directories
  • DICOM upload requests containing path traversal sequences (../, ..%2F, %2e%2e/) in filename parameters
  • Web server access logs showing requests to unexpected PHP files in image or temporary directories

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block path traversal sequences in HTTP POST requests to DICOM upload endpoints
  • Monitor file integrity of web root directories and alert on creation of new executable files
  • Enable and review OpenEMR application logs for anomalous DICOM export activity from unusual user accounts
  • Deploy endpoint detection rules to identify file write operations that traverse parent directories

Monitoring Recommendations

  • Configure real-time alerting for file creation events in web-accessible directories on OpenEMR servers
  • Implement user behavior analytics to detect accounts with DICOM permissions exhibiting unusual upload patterns
  • Regularly audit user accounts with DICOM upload/export permissions and remove unnecessary access
  • Monitor system file integrity using tools that can detect unauthorized changes to web server directories

How to Mitigate CVE-2026-25928

Immediate Actions Required

  • Upgrade OpenEMR to version 8.0.0.2 or later immediately
  • Audit DICOM upload permissions and restrict access to only essential personnel
  • Review web server directories for any unauthorized files that may have been written by attackers
  • Implement temporary WAF rules to block path traversal sequences in DICOM upload requests until patching is complete

Patch Information

OpenEMR has released version 8.0.0.2 which addresses this vulnerability by implementing proper input sanitization using the basename() function to strip directory components from uploaded filenames. The fix is available in commit ddcf04ea769a33cdc1932355224575478df70585. Organizations should upgrade to this version or apply the security patch as soon as possible.

For detailed patch information, refer to the GitHub Security Advisory GHSA-rppw-f689-6hrm and the GitHub Commit Update.

Workarounds

  • Temporarily disable DICOM upload/export functionality until the patch can be applied
  • Restrict DICOM upload permissions to a minimum number of trusted users
  • Configure web server to prevent execution of scripts in temporary and upload directories
  • Implement network segmentation to limit access to OpenEMR administrative functions
bash
# Example: Disable PHP execution in OpenEMR temporary directory (Apache)
# Add to .htaccess or virtual host configuration
<Directory "/var/www/openemr/sites/*/documents/temp">
    php_flag engine off
    <FilesMatch "\.php$">
        Require all denied
    </FilesMatch>
</Directory>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechOpenemr

  • SeverityMEDIUM

  • CVSS Score6.5

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-rppw-f689-6hrm
  • Related CVEs
  • CVE-2026-33913: OpenEMR Path Traversal Vulnerability

  • CVE-2026-33301: OpenEMR Path Traversal Vulnerability

  • CVE-2026-33914: OpenEMR Blind SQL Injection Vulnerability

  • CVE-2026-33348: OpenEMR Stored XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English