Bahmni-Core: Path traversal enables arbitrary file write via admin CSV importGHSA-pmw7-2mfv-4592
Fix: Bahmni/bahmni-core@74a3366GHSA-pmw7-2mfv-4592 is a Path Traversal vulnerability in org.bahmni.module:bahmnicore-omod. A fix is available for org.bahmni.module:bahmnicore-omod — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-pmw7-2mfv-4592.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
org.bahmni.module:bahmnicore-omod☕org.bahmni.module:bahmnicore-omodReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Impact
Insufficient validation of input paths during the admin CSV import process allows for potential arbitrary file write.
Patches
Patches should be applied to bahmnicore-omod versions 0.93 and above.
Workarounds
- On the ingress-controller or proxy block/restrict access to /openmrs/ws/rest/v1/bahmnicore/admin/upload/* onto trusted IP addresses.
- Until application of the patched version, remove access to Bahmni frontend "Admin Page" and also review list of user access, although the backend API is still exposed.
- Audit Access: Review and restrict access to the Admin CSV import to only essential personnel.
- Monitor Logs: Closely monitor system and application logs for unusual activity, particularly around data-access and file-upload endpoints.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.bahmni.module:bahmnicore-omod | all versions | 0.93.1org.bahmni.module:bahmnicore-omod:0.93.1 |
| ☕Maven | org.bahmni.module:bahmnicore-omod | ≥ 1.0.0&&< 2.0.1 | 2.0.1org.bahmni.module:bahmnicore-omod:2.0.1 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.bahmni.module:bahmnicore-omod, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.bahmni.module:bahmnicore-omod to 0.93.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-pmw7-2mfv-4592 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Frequently Asked Questions
Is GHSA-pmw7-2mfv-4592 in your dependencies?
Find it across Maven, including transitive dependencies.