Directory Traversal in OpenMRS Startup Filter
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-22 and the CVSS impact.
Summary
OpenMRS is a patient-based medical record system focusing on giving providers a free customizable electronic medical record system. Affected versions are subject to arbitrary file exfiltration due to failure to sanitize request when satisfying GET requests for `/images` & `/initfilter/scripts`. This can allow an attacker to access any file on a system running OpenMRS that is accessible to the user id OpenMRS is running under. Affected implementations should update to the latest patch version of OpenMRS Core for the minor version they use. These are: 2.1.5, 2.2.1, 2.3.5, 2.4.5 and 2.5.3. As a general rule, this vulnerability is already mitigated by Tomcat's URL normalization in Tomcat 7.0.28+. Users on older versions of Tomcat should consider upgrading their Tomcat instance as well as their OpenMRS instance.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| OpenMRS | openmrs-core | 1.6 to before 2.1.5; 2.2.0 to before 2.2.1; 2.3.0 to before 2.3.5; 2.4.0 to before 2.4.5; 2.5.0 to before 2.5.3 | 2.1.5, 2.2.1, 2.3.5, 2.4.5, 2.5.3 | Patch available | CNA |
- openmrs-core VendorOpenMRS Affected 1.6 to before 2.1.5; 2.2.0 to before 2.2.1; 2.3.0 to before 2.3.5; 2.4.0 to before 2.4.5; 2.5.0 to before 2.5.3 Fixed in 2.1.5, 2.2.1, 2.3.5, 2.4.5, 2.5.3 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:openmrs:openmrs:*:*:*:*:*:*:*:* | 1.6 to before 2.1.5; 2.2.0 to before 2.2.1; 2.3.0 to before 2.3.5; 2.4.0 to before 2.4.5; 2.5.0 to before 2.5.3 | Vulnerable | OpenMRS |
- cpe:2.3:a:openmrs:openmrs:*:*:*:*:*:*:*:* Versions 1.6 to before 2.1.5; 2.2.0 to before 2.2.1; 2.3.0 to before 2.3.5; 2.4.0 to before 2.4.5; 2.5.0 to before 2.5.3 Vulnerable ·OpenMRS
Remediation
- Fix · CNA openmrs-core (openmrs) Fixed in 2.1.5, 2.2.1, 2.3.5, 2.4.5, 2.5.3
Timeline
- 2026-10-02 Threatist record created from CVE-2022-23612
References
Patch 3
- https://github.com/openmrs/openmrs-core/commit/db8454bf19a092a78d53ee4dba2af628b730a6e7#diff-7c64d9f61d4d4e2ddba92920d7cf63ec96091b308d43904956b3846bc0c26d80R128
- https://github.com/openmrs/openmrs-core/blob/ee3373a7a775bfdfa263e2e912c72e64342fb4f0/web/src/main/java/org/openmrs/web/filter/StartupFilter.java#L123
- https://lgtm.com/projects/g/openmrs/openmrs-core/snapshot/fb1335c925ca4c94be5a546707b90d2c1efa4dcc/files/web/src/main/java/org/openmrs/web/filter/StartupFilter.java#L123
More Openmrs vulnerabilities
- TI-2018-13666 OpenMRS before 2.24.0 is affected by an Insecure Object Deserialization vulnerability… CVSS 3.1CRITICAL 9.8
- TI-2026-28907 OpenMRS Core arbitrary file write and code execution via Zip Slip in module upload CVSS 4.0CRITICAL 9.4
- TI-2026-28906 OpenMRS Core arbitrary file read via path traversal in ModuleResourcesServlet CVSS 4.0HIGH 8.2
- TI-2025-19183 A Cross-Site Request Forgery (CSRF) in the component /admin/users/user.form of Openmrs… CVSS 3.1HIGH 8.0
- TI-2025-19182 A Cross-Site Request Forgery (CSRF) in Openmrs 2.4.3 Build 0ff0ed allows attackers to… CVSS 3.1MEDIUM 6.8
- TI-2025-19184 A reflected cross-site scripting (XSS) vulnerability in the component… CVSS 3.1MEDIUM 5.4
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences