Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege Bahmni credentials
-
DeliverySend crafted HTTP request to /openmrs/ws/rest/v1/bahmnicore/sql
-
ExploitInject SQL payload via additionalParams test argument
-
ExecutionExecute arbitrary SQL against OpenMRS database backend
-
ImpactExfiltrate or tamper with patient and clinical records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid low-privilege authenticated session within the Bahmni application (PR:L per CVSS 4.0 vector) - unauthenticated external exploitation is not possible. The /openmrs/ws/rest/v1/bahmnicore/sql Search Endpoint must be reachable from the attacker's network position (AV:N), which is satisfied by any internet-exposed or internally accessible Bahmni instance. No special configuration beyond a standard Bahmni deployment is required - the additionalParams function and Search Endpoint are present in default installations of all affected versions up to 0.93. Exploitation is bounded by the authentication requirement: obtaining valid credentials (via phishing, credential stuffing, or insider access) is the primary prerequisite. No user interaction from a victim is needed beyond the attacker's own request, and no elevated or administrative privileges are required. |
| Impact | The CVSS 4.0 base vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N) scores 5.3 with all impact dimensions rated Low - a moderate severity - but the E:P supplemental metric (proof-of-concept exploit exists) elevates operational risk materially. No CISA KEV listing is present, so active widespread exploitation is not confirmed at time of analysis. EPSS data was not provided, limiting probabilistic exploitation forecasting. The low C/I/A ratings may understate actual risk: SQL injection in healthcare EHRs commonly permits broader data access than vendor-assessed impact ratings suggest, depending on database-level access controls and schema scope reachable through the injection point. The authentication requirement (PR:L) is a meaningful barrier - unauthenticated external exploitation is not possible - but the user population of a healthcare system is often large and credentials are relatively easy to obtain through phishing or credential stuffing. The combination of network exploitability, a public exploit, and a healthcare data store should drive this above queue-order prioritization despite a sub-6.0 base score. |
| Exploit ScenarioDerived | A low-privileged Bahmni user - such as a healthcare worker, data entry clerk, or patient registration staff member with standard application credentials - sends a crafted HTTP GET or POST request to /openmrs/ws/rest/v1/bahmnicore/sql with a malicious SQL fragment embedded in the additionalParams test argument. Because public proof-of-concept exploit code exists, this requires minimal technical skill and can be executed with basic HTTP tooling. The injected SQL executes against the OpenMRS database backend, potentially exposing patient records, clinical histories, provider credentials, or other sensitive data stored in the system. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 12, 2026
SQL injection in Bahmni bahmnicore up to version 0.93 allows low-privileged authenticated remote attackers to manipulate backend database queries via the additionalParams argument at the /openmrs/ws/rest/v1/bahmnicore/sql Search Endpoint. Public exploit code exists (confirmed by E:P in CVSS 4.0 supplemental metrics and the CVE description), lowering the bar for exploitation to any user with valid application credentials. Fixed versions spanning all active release branches (0.93.1 through 2.0.1) were released July 2026, and organizations running affected versions in healthcare environments should prioritize patching given the sensitivity of stored patient and clinical data.
RemediationAI
The primary fix is to upgrade bahmnicore to the patched version matching the currently deployed release branch: 0.93.1, 1.0.1, 1.1.1, 1.2.1, 1.3.1, or 2.0.1. Full patch release notes are available at https://bahmni.atlassian.net/wiki/spaces/BAH/pages/5519474693/Bahmni+Security+Patch+July+02+2026+Release+Notes and the security advisory at https://github.com/Bahmni/bahmni-core/security/advisories/GHSA-cg9w-r5g6-cxq5. If immediate patching is not feasible, restrict access to the /openmrs/ws/rest/v1/bahmnicore/sql endpoint via WAF rules or reverse-proxy ACLs - note that this may impact legitimate search functionality and should be tested against workflows before enforcing. Additionally, limiting which roles and user accounts have access to the Search Endpoint reduces the attack surface; this does not eliminate the underlying vulnerability but narrows the pool of accounts that can trigger it. Enforcing multi-factor authentication for Bahmni user accounts further limits the viability of credential-based attack paths while a patch is being staged.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Bahmni is an open-source electronic health record (EHR) platform built on top of OpenMRS, primarily deployed in low-resource healthcare settings across developing regions. The vulnerable component, bahmnicore (CPE: cpe:2.3:a:bahmni:bahmnicore:*:*:*:*:*:*:*:*), exposes a SQL execution endpoint at /openmrs/ws/rest/v1/bahmnicore/sql that accepts a test argument passed through the additionalParams function. CWE-89 (SQL Injection) identifies the root cause as user-controlled input being incorporated directly into a SQL query without parameterization or proper sanitization. Because the endpoint is accessible via REST API over the network and does not require elevated privileges, any authenticated session is sufficient to deliver the injection payload. The OpenMRS backend database typically stores patient demographics, clinical notes, diagnoses, and medication histories, making a successful injection consequential beyond the moderate CVSS base score.
Know when Bahmnicore gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Network-reachable REST endpoint, no attack complexity, low-privilege authentication required; SQL injection impact conservatively scored Low across C/I/A consistent with vendor CVSS 4.0 assessment.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was detected in Bahmni bahmnicore up to 0.93. This affects the function additionalParams of the file /openmrs/ws/rest/v1/bahmnicore/sql of the component Search Endpoint. Performing a manipulation of the argument test results in sql injection. The attack can be initiated remotely. The exploit is now public and may be used. Upgrading to version 0.93.1, 1.0.1, 1.1.1, 1.2.1, 1.3.1 and 2.0.1 mitigates this issue. Upgrading the affected component is recommended.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
EUVD-2026-43199
GHSA-8g7p-3ghx-xx9x
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB