Path Traversal in org.openmrs.web:openmrs-web (CVE-2026-40075)
Summary
Path traversal in org.openmrs.web:openmrs-web (CVE-2026-40075). Confidential information can be exposed externally. Exploitable via ModuleResourcesServlet. Mitigation: upgrade to 2.8.6 or later.
Original description
The description as published by the source.
OpenMRS Core is an open source electronic medical record system platform. In versions 2.7.8 and earlier and versions 2.8.0 through 2.8.5, the /openmrs/moduleResources/{moduleid} endpoint is vulnerable to a path traversal attack. The ModuleResourcesServlet constructs a filesystem path from user-controlled input without performing path boundary validation — the getFile() method concatenates the user-supplied path into an absolute filesystem path without calling normalize() or checking that the result stays within the allowed module resources directory. Because this endpoint serves static resources required for rendering the login page, it is not protected by authentication filters, allowing unauthenticated exploitation.
An attacker can traverse directories and read arbitrary files from the server filesystem, including /etc/passwd and application configuration files containing database credentials. Successful exploitation requires the target deployment to run on Apache Tomcat versions prior to 8.5.31, where the ..; path parameter bypass is not mitigated by the container. Deployments on Tomcat 8.5.31 or later and Tomcat 9.0.10 or later are protected at the container level, though the underlying code defect remains. This issue has been fixed in versions after 2.7.8 (within the 2.7.x branch) and in version 2.8.6 and later.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-40075 has been found in org.openmrs.web:openmrs-web.
Attackers can target a specific entry point like ModuleResourcesServlet over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 7.5/10.
What to do: upgrade org.openmrs.web:openmrs-web to 2.8.6 or later.
If unsure, ask your IT team or search "org.openmrs.web:openmrs-web CVE-2026-40075" on the vendor's site.
CVE-2026-40075 (org.openmrs.web:openmrs-web) — CWE-22 / CVSS v3 7.5
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: ModuleResourcesServlet / legacyui / ModuleResourcesServlet.java / StartupFilter.java
Patched: 2.8.6 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
Path traversal (CWE-22) exists in org.openmrs.web:openmrs-web. Attackers reach the vulnerable code path via ModuleResourcesServlet without authentication.
Check the vendor advisory for the affected versions of org.openmrs.web:openmrs-web. Attack surface: ModuleResourcesServlet / legacyui / ModuleResourcesServlet.java / StartupFilter.java.
Severity: High (CVSS 7.5/10). Confidential information can be exposed externally.
Update to 2.8.6.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Audit SBOM/dependencies to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
Audit SBOM/dependencies for affected components.資産台帳・SBOM・依存マニフェストで org.openmrs.web:openmrs-web を使っているサービスとバージョンを洗い出す。
-
2Apply patch patch
Upgrade org.openmrs.web:openmrs-web to 2.8.6ステージング環境で 2.8.6 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com