{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-23612 exists.","fix":"No fix has been published for CVE-2022-23612 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-23612 is a high-severity path traversal vulnerability in openmrs-core, published on 22 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-23612 and fix it if it is affected.\n\nWhat it is: CVE-2022-23612 is a high-severity path traversal vulnerability in openmrs-core, published on 22 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-23612 exists.\n\nAffected product: openmrs-core. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-23612/ (Markdown: https://insights.sbomify.com/CVE-2022-23612/index.md)","id":"CVE-2022-23612","markdown":"https://insights.sbomify.com/CVE-2022-23612/index.md","name":"CVE-2022-23612","record":{"aliases":["GHSA-8rgr-ww69-jv65"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"OpenMRS EMR system","requires_auth":"none","summary":"Attackers can exfiltrate arbitrary files from the server via unsanitized GET requests in OpenMRS, requiring an upgrade to patched versions.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"openmrs","vendor":"openmrs"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"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` \u0026 `/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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Directory Traversal in OpenMRS Startup Filter","id":"CVE-2022-23612","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":0,"n_references":4,"next":{"headline":"Privilege escalation on xrdp","id":"CVE-2022-23613"},"packages":[],"prev":{"headline":"OS command injection in iTunesRPC-Remastered","id":"CVE-2022-23611"},"products":["openmrs-core"],"published":"2022-02-22","related":[{"cvss_score":10,"headline":"Deserialization in n/a","id":"CVE-2018-19276","kev_date_added":null,"published":"2019-03-17"},{"cvss_score":9.8,"headline":"SQL injection in n/a","id":"CVE-2021-43094","kev_date_added":null,"published":"2022-05-10"},{"cvss_score":9.8,"headline":"Deserialization in n/a","id":"CVE-2017-12796","kev_date_added":null,"published":"2017-10-23"},{"cvss_score":9.4,"headline":"OpenMRS Core arbitrary file write and code execution via Zip Slip in module upload","id":"CVE-2026-40076","kev_date_added":null,"published":"2026-05-06"},{"cvss_score":8.2,"headline":"OpenMRS Core arbitrary file read via path traversal in ModuleResourcesServlet","id":"CVE-2026-40075","kev_date_added":null,"published":"2026-05-05"},{"cvss_score":8,"headline":"Cross-site request forgery in n/a","id":"CVE-2025-25928","kev_date_added":null,"published":"2025-03-11"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-22","vendors":["openmrs"]},"summary":"Attackers can exfiltrate arbitrary files from the server via unsanitized GET requests in OpenMRS, requiring an upgrade to patched versions.","url":"https://insights.sbomify.com/CVE-2022-23612/"}