Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.openmrs.web/openmrs-web
  4. ›
  5. CVE-2026-40075

CVE-2026-40075: OpenMRS ModuleResourcesServlet has Path Traversal that Leads to Arbitrary File Read

May 4, 2026 (updated May 8, 2026)

The /openmrs/moduleResources/{moduleid} endpoint in OpenMRS Core is vulnerable to a path traversal attack. The ModuleResourcesServlet does not properly validate user-supplied path input, allowing an attacker to traverse directories and read arbitrary files from the server filesystem (e.g., /etc/passwd, application configuration files containing database credentials).

This endpoint serves static module resources (CSS, JS, images) and is not protected by authentication filters, as these resources are required for rendering the login page. Therefore, this vulnerability can be exploited by an unauthenticated attacker.

Note: Successful exploitation requires the target deployment to run on Apache Tomcat < 8.5.31, where the ..; path parameter bypass is not mitigated by the container. Deployments on Tomcat ≥ 8.5.31 / ≥ 9.0.10 are protected at the container level, though the underlying code defect remains.

References

  • github.com/advisories/GHSA-jjgj-cx3q-pw4w
  • github.com/openmrs/openmrs-core
  • github.com/openmrs/openmrs-core/security/advisories/GHSA-jjgj-cx3q-pw4w
  • nvd.nist.gov/vuln/detail/CVE-2026-40075

Code Behaviors & Features

Detect and mitigate CVE-2026-40075 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.7.8, all versions starting from 2.8.0 before 2.8.6

Fixed versions

  • 2.8.6

Solution

Upgrade to version 2.8.6 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

maven/org.openmrs.web/openmrs-web/CVE-2026-40075.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:10 +0000.