The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-40076

CVE-2026-40076: OpenMRS Core Path Traversal Vulnerability

CVE-2026-40076 is a path traversal vulnerability in OpenMRS Core that allows authenticated attackers to write arbitrary files and execute remote code. This post covers the technical details, affected versions, and mitigation.

Published: May 7, 2026

CVE-2026-40076 Overview

CVE-2026-40076 is a Zip Slip path traversal vulnerability [CWE-22] in OpenMRS Core, an open source electronic medical record system platform. The flaw affects versions 2.7.8 and earlier, plus versions 2.8.0 through 2.8.5. The module upload REST endpoint at POST /openmrs/ws/rest/v1/module fails to properly normalize ZIP entry paths inside uploaded .omod archives. An authenticated attacker with module upload privileges can write arbitrary files outside the intended module directory, including the web application root, and achieve remote code execution by deploying a JSP file.

Critical Impact

Authenticated attackers can achieve remote code execution on OpenMRS servers by uploading a crafted .omod archive containing path traversal sequences, fully compromising patient health record systems.

Affected Products

  • OpenMRS Core versions 2.7.8 and earlier (2.7.x line)
  • OpenMRS Core versions 2.8.0 through 2.8.5
  • Deployments relying on module.allow_web_admin runtime property as a control

Discovery Timeline

  • 2026-05-06 - CVE-2026-40076 published to NVD
  • 2026-05-06 - Last updated in NVD database

Technical Details for CVE-2026-40076

Vulnerability Analysis

The vulnerability resides in WebModuleUtil.startModule(), which handles automatic extraction of uploaded .omod archives. OpenMRS modules are distributed as ZIP archives, and during extraction, ZIP entries under web/module/ are validated only by checking whether the full entry path begins with ... The remaining path is then concatenated into the destination path without normalization or canonical boundary verification.

A crafted archive can include entries such as web/module/../../../../malicious.jsp. Because the prefix check passes (the path starts with web/module/, not ..), extraction proceeds, and the relative traversal sequences resolve outside the intended module directory. Files can be written to the web application root, enabling JSP deployment and subsequent code execution through a simple HTTP request.

Root Cause

The root cause is incomplete input validation [CWE-22] on ZIP entry paths during archive extraction. The check examines only the start of the entry path string rather than computing the canonical destination path and confirming it remains within the target extraction directory. This is a textbook Zip Slip pattern.

A secondary defect compounds the impact: the module.allow_web_admin runtime property is enforced in the legacy UI controller but not in the REST API upload path. Administrators who disabled web-based module administration via this property remain exposed through /openmrs/ws/rest/v1/module.

Attack Vector

Exploitation requires authenticated access with module upload permissions. The attacker constructs an .omod archive containing ZIP entries with traversal sequences inside web/module/ paths, submits it to the REST module endpoint, and then issues an HTTP request to the dropped JSP file. Server-side execution occurs in the context of the OpenMRS application process, granting access to patient data, database credentials, and the underlying host.

The vulnerability is described in prose only; refer to the GitHub Security Advisory GHSA-78fc-9688-w8xw for technical details.

Detection Methods for CVE-2026-40076

Indicators of Compromise

  • Unexpected .jsp files appearing under the OpenMRS web application root or WEB-INF directories outside the legitimate module folder structure.
  • POST requests to /openmrs/ws/rest/v1/module from non-administrative source addresses or at unusual hours.
  • Newly created files with timestamps matching recent module upload events but located outside modules/ and web/module/ directories.
  • Outbound network connections originating from the Tomcat or Java application server process shortly after module upload activity.

Detection Strategies

  • Inspect .omod uploads at a web application firewall and reject archives whose ZIP entries contain .. sequences anywhere in the path.
  • Audit OpenMRS access logs for POST requests to the module REST endpoint, correlating uploader identity with subsequent GET requests to newly created .jsp resources.
  • Monitor file integrity on the OpenMRS web application directory tree to detect writes outside expected module subdirectories.

Monitoring Recommendations

  • Enable verbose logging on the module upload endpoint and forward events to a centralized log platform for correlation.
  • Alert on Java process spawning shell interpreters (sh, bash, cmd.exe) following module upload activity.
  • Track creation of executable web content (.jsp, .jspx, .class) anywhere outside known module installation paths.

How to Mitigate CVE-2026-40076

Immediate Actions Required

  • Upgrade OpenMRS Core to a version released after 2.7.8 in the 2.7.x line, or to 2.8.6 or later in the 2.8.x line.
  • Audit accounts with module upload privileges and remove this permission from any user that does not require it.
  • Review the OpenMRS web application directory for unauthorized .jsp or other executable files dropped outside legitimate module paths.
  • Rotate database credentials, API keys, and session secrets if compromise is suspected.

Patch Information

The issue is fixed in OpenMRS Core versions after 2.7.8 in the 2.7.x line and in version 2.8.6 and later. Patch details and fix commits are documented in the OpenMRS GitHub Security Advisory GHSA-78fc-9688-w8xw.

Workarounds

  • Restrict network access to /openmrs/ws/rest/v1/module using a reverse proxy or WAF rule until patching is complete.
  • Revoke module upload privileges from all accounts as an interim control, since the module.allow_web_admin property does not protect the REST endpoint.
  • Place the OpenMRS application server behind authenticated VPN access to limit the authenticated attack surface.
  • Deploy ZIP archive scanning at the upload boundary to reject any archive containing entries with .. traversal sequences.
bash
# Example reverse proxy rule (nginx) to block the REST module upload endpoint
location /openmrs/ws/rest/v1/module {
    if ($request_method = POST) {
        return 403;
    }
}

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechOpenmrs

  • SeverityCRITICAL

  • CVSS Score9.4

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40075: OpenMRS Core Path Traversal Vulnerability

  • CVE-2025-46823: OpenMRS FHIR2 Auth Bypass 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