Vulnerability Details : CVE-2022-23612
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.
Vulnerability category: Directory traversal
Products affected by CVE-2022-23612
- cpe:2.3:a:openmrs:openmrs:*:*:*:*:*:*:*:*
- cpe:2.3:a:openmrs:openmrs:*:*:*:*:*:*:*:*
- cpe:2.3:a:openmrs:openmrs:*:*:*:*:*:*:*:*
- cpe:2.3:a:openmrs:openmrs:*:*:*:*:*:*:*:*
- cpe:2.3:a:openmrs:openmrs:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-23612
0.15%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 52 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-23612
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
GitHub, Inc. |
CWE ids for CVE-2022-23612
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: security-advisories@github.com (Primary)
References for CVE-2022-23612
-
https://github.com/openmrs/openmrs-core/blob/ee3373a7a775bfdfa263e2e912c72e64342fb4f0/web/src/main/java/org/openmrs/web/filter/StartupFilter.java#L123
openmrs-core/StartupFilter.java at ee3373a7a775bfdfa263e2e912c72e64342fb4f0 · openmrs/openmrs-core · GitHubPatch;Third Party Advisory
-
https://github.com/openmrs/openmrs-core/security/advisories/GHSA-8rgr-ww69-jv65
Directory Traversal in OpenMRS Startup Filter · Advisory · openmrs/openmrs-core · GitHubExploit;Patch;Third Party Advisory
-
https://lgtm.com/projects/g/openmrs/openmrs-core/snapshot/fb1335c925ca4c94be5a546707b90d2c1efa4dcc/files/web/src/main/java/org/openmrs/web/filter/StartupFilter.java#L123
LGTMPatch;Third Party Advisory
-
https://github.com/openmrs/openmrs-core/commit/db8454bf19a092a78d53ee4dba2af628b730a6e7#diff-7c64d9f61d4d4e2ddba92920d7cf63ec96091b308d43904956b3846bc0c26d80R128
Fix bug · openmrs/openmrs-core@db8454b · GitHubPatch;Third Party Advisory
Jump to