Skip to main content
VulnerabilityPublished

CVE-2026-40076: openmrs-core · Path Traversal

Affects openmrs-coreSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 9.4 Critical · fixed in 2.7.8 : patch openmrs-core as a priority.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 4.0 base score
9.4Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.8% chance of exploitation in 30 days – higher than 58% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2.7.8
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
openmrsopenmrs-coreAffected
  • <=2.7.8
  • >=2.8.0 <=2.8.5
Fixed in–
Mavenorg.openmrs/openmrs-corepkg:maven/org.openmrs/openmrs-coreOther threatsAffected
  • <=2.7.8
  • 2.8.0 <=2.8.5
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in openmrs-core versions after 2.7.8 in the 2.7.x branch and from 2.8.6 onwards. It is strongly recommended to upgrade to these fixed versions to remediate the vulnerability. Until upgraded, restrict module upload access to trusted users only and consider disabling the REST API module upload endpoint if possible. Verify that the module.allow_web_admin property is consistently enforced across all module management interfaces. Patch status is confirmed by the vendor advisory indicating fixed versions.

Description

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 module upload endpoint at POST `/openmrs/ws/rest/v1/module` is vulnerable to a Zip Slip path traversal attack. During automatic extraction of uploaded .omod archives in `WebModuleUtil.startModule()`, ZIP entries under web/module/ are checked only to see whether the full entry path starts with `..,` and the remaining path is then concatenated into the destination path without normalization or a boundary check. A crafted archive can therefore include entries such as `web/module/../../../../malicious.jsp` and cause files to be written outside the intended module directory. An authenticated attacker with module upload access can write arbitrary files to locations such as the web application root and achieve remote code execution by uploading a JSP file and then requesting it. The issue is compounded by the fact that the module.allow_web_admin runtime property is enforced in the legacy UI controller but not in the REST API upload path, so deployments relying on that property to block web-based module administration remain exposed through the REST endpoint. This issue has been fixed in versions after 2.7.8 in the 2.7.x line and in version 2.8.6 and later.

References

Community reviews

Loading reviews…