/

CVE-2026-105385

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in HospitalManagementSystem

CVE-2026-105385

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database compromise, unauthorized data access, and data manipulation

Severity:

HIGH RISK

(7.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A SQL injection vulnerability in the transaction_details.php endpoint allows crafted input in the transaction_id argument to influence database queries. Because the affected functionality may be reachable remotely, an attacker could access, alter, or otherwise interfere with database data when query construction does not safely separate input from SQL syntax.

A SQL injection vulnerability in the transaction_details.php endpoint allows crafted input in the transaction_id argument to influence database queries. Because the affected functionality may be reachable remotely, an attacker could access, alter, or otherwise interfere with database data when query construction does not safely separate input from SQL syntax.

Affected context

The issue occurs in deployments of onetwothreeneth HospitalManagementSystem containing the affected transaction details functionality. Risk is present when the remotely reachable transaction_details.php endpoint accepts transaction_id input and incorporates it into database queries without effective parameterization or equivalent query safeguards; the available details do not establish whether authentication is required.

The issue occurs in deployments of onetwothreeneth HospitalManagementSystem containing the affected transaction details functionality. Risk is present when the remotely reachable transaction_details.php endpoint accepts transaction_id input and incorporates it into database queries without effective parameterization or equivalent query safeguards; the available details do not establish whether authentication is required.

Exploit preconditions

  • Attack surface: Remote web application endpoint
  • Required access: Ability to reach the transaction details functionality; authentication requirements are deployment-dependent
  • Input condition: Attacker-controlled data must be accepted through the transaction_id argument
  • Trigger point: Processing the transaction details request
  • Why exploitation is possible: Input may be interpreted as part of a database query rather than strictly as a transaction identifier
  • Attack surface: Remote web application endpoint
  • Required access: Ability to reach the transaction details functionality; authentication requirements are deployment-dependent
  • Input condition: Attacker-controlled data must be accepted through the transaction_id argument
  • Trigger point: Processing the transaction details request
  • Why exploitation is possible: Input may be interpreted as part of a database query rather than strictly as a transaction identifier

Why this happens

The underlying bug is an unsafe boundary between externally supplied request data and SQL query construction. When application code concatenates or otherwise embeds transaction_id into a database statement without parameterized queries, an attacker may influence the statement's structure. This maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection) and is also related to CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component.

The underlying bug is an unsafe boundary between externally supplied request data and SQL query construction. When application code concatenates or otherwise embeds transaction_id into a database statement without parameterized queries, an attacker may influence the statement's structure. This maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection) and is also related to CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component.

Potential impact

  • An attacker may read unauthorized transaction or application data
  • Database records could be modified or deleted
  • Authentication, authorization, or application state data could be exposed
  • Database availability could be degraded
  • Information obtained from the database could support further attacks
  • An attacker may read unauthorized transaction or application data
  • Database records could be modified or deleted
  • Authentication, authorization, or application state data could be exposed
  • Database availability could be degraded
  • Information obtained from the database could support further attacks

General mitigation guidance

Mitigation generally centers on ensuring that request data is treated strictly as data rather than executable SQL syntax.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Apply allowlisted type and range validation to identifier inputs such as transaction_id
  • Avoid dynamically assembled SQL where structured query APIs can provide safer alternatives
  • Restrict the database account to the minimum permissions required by the application
  • Return generic database errors to clients while preserving detailed diagnostics in protected logs
  • Reduce unnecessary remote exposure of transaction-management endpoints

Mitigation generally centers on ensuring that request data is treated strictly as data rather than executable SQL syntax.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Apply allowlisted type and range validation to identifier inputs such as transaction_id
  • Avoid dynamically assembled SQL where structured query APIs can provide safer alternatives
  • Restrict the database account to the minimum permissions required by the application
  • Return generic database errors to clients while preserving detailed diagnostics in protected logs
  • Reduce unnecessary remote exposure of transaction-management endpoints

How teams detect issues like this

Organizations can identify similar issues through:

  • Static analysis rules that flag string concatenation or interpolation in SQL execution paths
  • Code review checks for request parameters reaching database APIs without binding
  • Dynamic application testing using non-destructive SQL injection detection techniques
  • Web application firewall or API policy rules monitoring anomalous database-oriented input
  • Database audit logs that identify unexpected query shapes, error patterns, or excessive data access
  • Automated security review tools that trace user-controlled values into query construction

Organizations can identify similar issues through:

  • Static analysis rules that flag string concatenation or interpolation in SQL execution paths
  • Code review checks for request parameters reaching database APIs without binding
  • Dynamic application testing using non-destructive SQL injection detection techniques
  • Web application firewall or API policy rules monitoring anomalous database-oriented input
  • Database audit logs that identify unexpected query shapes, error patterns, or excessive data access
  • Automated security review tools that trace user-controlled values into query construction

Sources

SourceLink
github.comgithub.com/onetwothreeneth/HospitalManagementSystem/
github.comgithub.com/onetwothreeneth/HospitalManagementSystem/issues/10
vuldb.comvuldb.com/cve/CVE-2026-105385
vuldb.comvuldb.com/submit/980279
vuldb.comvuldb.com/vuln/413579
vuldb.comvuldb.com/vuln/413579/cti

Frequently asked

questions

The reported attack surface is a remotely reachable web endpoint. Exploitability depends on network exposure, request handling, and any authentication or authorization controls configured by the deployment.

The attacker needs the ability to submit input to the transaction details functionality. Whether a valid account or specific privilege is required is not established by the available vulnerability details.

Use parameterized queries or prepared statements and validate transaction_id according to a strict expected type and range before database access.

Combine secure database APIs, least-privilege database accounts, focused code review, static analysis, and monitoring of unusual request and query behavior.

The reported attack surface is a remotely reachable web endpoint. Exploitability depends on network exposure, request handling, and any authentication or authorization controls configured by the deployment.

The attacker needs the ability to submit input to the transaction details functionality. Whether a valid account or specific privilege is required is not established by the available vulnerability details.

Use parameterized queries or prepared statements and validate transaction_id according to a strict expected type and range before database access.

Combine secure database APIs, least-privilege database accounts, focused code review, static analysis, and monitoring of unusual request and query behavior.

Find out what's already
exploitable in your codebase.