High, CVSS 8.2MavenPublished
OpenMRS ModuleResourcesServlet has Path Traversal that Leads to Arbitrary File Read
CVE-2026-40075 · GHSA-jjgj-cx3q-pw4w
- Affected
- Maven org.openmrs.web:openmrs-web <= 2.7.8; >= 2.8.0, <= 2.8.5
- Fixed in
- 2.8.6· Partial vendor fix
- Issue
- Affected Versions version ≤ 2.7.8 (latest version at time of disclosure) https://github.com/openmrs/openmrs-core Impact 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…
Recommended action: Upgrade to 2.8.6; some affected versions have no fix yet, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.