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-40075

CVE-2026-40075: OpenMRS Core Path Traversal Vulnerability

CVE-2026-40075 is a path traversal vulnerability in OpenMRS Core that allows unauthenticated attackers to read arbitrary files from the server. This post covers technical details, affected versions, impact, and mitigation.

Published: May 7, 2026

CVE-2026-40075 Overview

CVE-2026-40075 is a path traversal vulnerability [CWE-22] in OpenMRS Core, an open source electronic medical record system platform. The flaw exists in the /openmrs/moduleResources/{moduleid} endpoint, which is served by ModuleResourcesServlet. Because this endpoint serves static resources for the login page, it bypasses authentication filters, allowing unauthenticated attackers to read arbitrary files from the server filesystem. Affected versions include OpenMRS Core 2.7.8 and earlier, plus 2.8.0 through 2.8.5.

Critical Impact

Unauthenticated remote attackers can read arbitrary files including /etc/passwd and application configuration files containing database credentials.

Affected Products

  • OpenMRS Core versions 2.7.8 and earlier (within the 2.7.x branch)
  • OpenMRS Core versions 2.8.0 through 2.8.5
  • Deployments running on Apache Tomcat versions prior to 8.5.31 or 9.0.10

Discovery Timeline

  • 2026-05-05 - CVE-2026-40075 published to NVD
  • 2026-05-07 - Last updated in NVD database

Technical Details for CVE-2026-40075

Vulnerability Analysis

The vulnerability resides in the getFile() method of ModuleResourcesServlet. The method constructs a filesystem path by concatenating user-supplied input from the URL into an absolute filesystem path. The implementation does not call normalize() on the resulting path, nor does it validate that the resolved path remains within the allowed module resources directory.

Because /openmrs/moduleResources/{moduleid} is required to render the login page, OpenMRS exempts the endpoint from authentication filters. Unauthenticated attackers can therefore reach the vulnerable code path directly.

Root Cause

The root cause is missing path boundary validation. The servlet trusts URL path segments as safe input and concatenates them into a filesystem location without canonicalization. Standard defenses such as resolving the canonical path and verifying it starts with the intended base directory are absent. This is a classic [CWE-22] Improper Limitation of a Pathname to a Restricted Directory flaw.

Attack Vector

An attacker sends an HTTP request to /openmrs/moduleResources/{moduleid} containing traversal sequences in the path. Successful exploitation requires the target to run on Apache Tomcat versions prior to 8.5.31 or 9.0.10, where the ..; path parameter bypass is not mitigated by the container.

Once the traversal sequence reaches the servlet, the unsanitized concatenation allows the attacker to escape the module resources directory and reference any file readable by the Tomcat process. Targets typically include /etc/passwd, openmrs-runtime.properties, and other configuration files containing database credentials, which can be leveraged for follow-on attacks against the medical record database. The vulnerability mechanism is documented in the OpenMRS GitHub Security Advisory.

Detection Methods for CVE-2026-40075

Indicators of Compromise

  • HTTP requests to /openmrs/moduleResources/ containing ..;, ..%2f, ..%5c, or repeated ../ traversal sequences
  • Tomcat access log entries showing 200 responses to /moduleResources/ URLs that return non-resource content types
  • Unexpected reads of /etc/passwd, openmrs-runtime.properties, or other configuration files by the Tomcat process user

Detection Strategies

  • Inspect web server and reverse proxy logs for path traversal patterns targeting the moduleResources endpoint
  • Correlate large or unusual response payloads from /openmrs/moduleResources/ with originating IP addresses
  • Deploy Web Application Firewall (WAF) rules that flag ..; path parameter sequences against OpenMRS endpoints

Monitoring Recommendations

  • Enable verbose access logging on the OpenMRS Tomcat instance and forward logs to a centralized SIEM
  • Alert on file reads outside the OpenMRS application directory by the Tomcat service account
  • Monitor outbound connections from the OpenMRS host that follow successful traversal requests, indicating credential abuse

How to Mitigate CVE-2026-40075

Immediate Actions Required

  • Upgrade OpenMRS Core to a fixed release, available in versions after 2.7.8 in the 2.7.x branch and version 2.8.6 or later
  • Upgrade Apache Tomcat to 8.5.31 or 9.0.10 or later to block the ..; path parameter bypass at the container level
  • Rotate any database credentials and secrets stored in openmrs-runtime.properties if exposure is suspected

Patch Information

The OpenMRS maintainers fixed the path boundary validation defect in releases after 2.7.8 within the 2.7.x branch and in version 2.8.6 and later. Patch details are available in the OpenMRS GitHub Security Advisory GHSA-jjgj-cx3q-pw4w.

Workarounds

  • Deploy on Apache Tomcat 8.5.31 or 9.0.10 or later, which mitigates the ..; bypass at the container level even if the underlying code defect remains
  • Place a reverse proxy or WAF in front of OpenMRS to reject requests containing ..;, encoded traversal sequences, or null bytes in the path
  • Restrict filesystem permissions for the Tomcat service account so sensitive files such as /etc/passwd and configuration files are not readable
bash
# Example WAF/nginx rule blocking traversal patterns on the vulnerable endpoint
location /openmrs/moduleResources/ {
    if ($request_uri ~* "(\.\./|\.\.;|%2e%2e%2f|%2e%2e/)") {
        return 403;
    }
    proxy_pass http://openmrs_backend;
}

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

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/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
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40076: 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