SCA: security update for org.openmrs.web:openmrs-web (GHSA-jjgj-cx3q-pw4w)

high Tenable Cloud Security Plugin ID 441060

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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.
(CVE-2026-40075)

Solution

Update the org.openmrs.web:openmrs-web library and its related packages to version 2.8.6 or later.

See Also

https://github.com/advisories/GHSA-jjgj-cx3q-pw4w

Plugin Details

Severity: High

ID: 441060

Version: Revision 1.8

Type: Local

Family: SCA Checks

Published: 5/4/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.39

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.1

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2026-40075

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

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

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS v4

Risk Factor: High

Base Score: 8.2

Threat Score: 6.9

Threat Vector: CVSS:4.0/E:P

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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/4/2026

Vulnerability Publication Date: 5/4/2026

Reference Information

CVE: CVE-2026-40075

cwe: CWE-22