Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-105386 Overview
CVE-2026-105386 is a SQL injection vulnerability in the onetwothreeneth HospitalManagementSystem project, affecting commit 9ef91ed6007314b6473110ed699dff76d158f61d and earlier. The flaw resides in the get function of print.php, where the transaction_id parameter is passed to a database query without proper sanitization. Attackers can exploit the issue remotely over the network without authentication or user interaction. A public exploit disclosure exists, increasing the likelihood of opportunistic abuse. The project uses a rolling-release model, so no fixed version is published. According to the advisory, the maintainer was notified through an issue report but has not responded.
Critical Impact
Unauthenticated remote attackers can inject arbitrary SQL through the transaction_id parameter in print.php, exposing patient records, billing data, and other sensitive hospital information.
Affected Products
- onetwothreeneth HospitalManagementSystem (rolling release)
- Commit 9ef91ed6007314b6473110ed699dff76d158f61d and earlier
- print.php endpoint handling the transaction_id parameter
Discovery Timeline
- 2026-10-05 - CVE-2026-105386 published to the National Vulnerability Database (NVD)
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-105386
Vulnerability Analysis
The vulnerability affects the get function within print.php of the HospitalManagementSystem application. The transaction_id HTTP parameter is incorporated into a backend SQL statement without parameterization or input validation. Because the endpoint is reachable over the network and requires no authentication, an attacker can issue crafted requests directly to the application. The vulnerability maps to [CWE-74] (Improper Neutralization of Special Elements in Output Used by a Downstream Component). Successful exploitation enables data extraction, record manipulation, and in some database configurations, command execution against the underlying host.
Root Cause
The get routine concatenates the attacker-controlled transaction_id value directly into a SQL query string. Without prepared statements or input filtering, metacharacters such as single quotes and SQL comment markers alter the structure of the query. This classic injection pattern allows an attacker to append conditions, union additional SELECT statements, or terminate the original statement.
Attack Vector
An unauthenticated attacker sends an HTTP request to the vulnerable print.php endpoint with a malicious transaction_id value. The payload may contain boolean-based, union-based, or time-based SQL injection constructs to enumerate the database schema and extract records. Because hospital management systems typically store patient, staff, and financial data, the impact extends to confidentiality, integrity, and availability of healthcare information. The vulnerability mechanism is documented in the VulDB CVE-2026-105386 entry and the GitHub Issue #11 Discussion.
Detection Methods for CVE-2026-105386
Indicators of Compromise
- HTTP requests to print.php containing SQL metacharacters such as ', --, UNION SELECT, or SLEEP( in the transaction_id parameter
- Database error messages or stack traces returned in HTTP responses from print.php
- Unusual outbound queries from the web application database user, including access to schema tables like information_schema
- Spikes in response time for requests targeting the transaction_id parameter, indicating time-based injection probes
Detection Strategies
- Deploy web application firewall (WAF) rules that inspect and block SQL injection payloads targeting the transaction_id parameter
- Enable verbose database query logging and alert on queries containing unexpected UNION, SLEEP, or conditional operators originating from print.php
- Correlate web server access logs with database audit logs to identify abnormal query patterns tied to a single source address
Monitoring Recommendations
- Monitor authentication-free endpoints such as print.php for anomalous request volume or payload entropy
- Track database user activity for the application service account, flagging reads against sensitive tables outside normal application behavior
- Alert on repeated HTTP 500 responses from print.php, which often indicate injection probing
How to Mitigate CVE-2026-105386
Immediate Actions Required
- Restrict external access to the HospitalManagementSystem application until a fix is applied, placing it behind an authenticated reverse proxy or VPN
- Deploy WAF signatures that block SQL injection patterns on the transaction_id parameter of print.php
- Review database audit logs for signs of prior exploitation attempts referenced in the GitHub repository
- Rotate database credentials and limit the application database account to least privilege
Patch Information
No vendor patch is currently available. The project uses a rolling-release model and, according to the VulDB Vulnerability #413580 entry, the maintainer has not responded to the issue report. Organizations running this software should treat the deployment as unpatched and apply compensating controls, or migrate to a maintained hospital management solution.
Workarounds
- Modify print.php locally to use parameterized queries or prepared statements for the transaction_id value
- Implement server-side input validation that restricts transaction_id to the expected numeric or UUID format
- Place the application behind a WAF configured in blocking mode for SQL injection signatures
- Reduce the privileges of the database account used by the application to prevent schema enumeration and write operations
# Example WAF rule concept (ModSecurity) to block SQLi on transaction_id
SecRule ARGS:transaction_id "@detectSQLi" \
"id:1050386,phase:2,deny,status:403,\
msg:'CVE-2026-105386 SQLi attempt against print.php transaction_id'"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

