/

CVE-2026-105383

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in HospitalManagementSystem

CVE-2026-105383

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database compromise and unauthorized data access

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 high-severity SQL injection vulnerability in HospitalManagementSystem allows attacker-controlled input in the transaction_idS argument to influence database queries.

Because the issue is remotely reachable, an unauthenticated or otherwise authorized attacker may be able to manipulate database operations when the affected controller function processes the request.

A high-severity SQL injection vulnerability in HospitalManagementSystem allows attacker-controlled input in the transaction_idS argument to influence database queries.

Because the issue is remotely reachable, an unauthenticated or otherwise authorized attacker may be able to manipulate database operations when the affected controller function processes the request.

Affected context

The vulnerability occurs in the PHP application controller at php/controller.php when the transaction_idS argument is incorporated into a database query without sufficient separation between data and SQL syntax. Risk depends on whether the affected endpoint is exposed remotely, how requests are authenticated, and what database permissions the application uses.

The vulnerability occurs in the PHP application controller at php/controller.php when the transaction_idS argument is incorporated into a database query without sufficient separation between data and SQL syntax. Risk depends on whether the affected endpoint is exposed remotely, how requests are authenticated, and what database permissions the application uses.

Exploit preconditions

  • Attack surface: Remotely reachable web application endpoint
  • Required access: Ability to submit requests to the affected controller; authentication requirements depend on deployment configuration
  • Trigger point: Processing of the transaction_idS argument in php/controller.php
  • Why exploitation is possible: Attacker-controlled input may reach a database query without reliable parameterization or equivalent query isolation
  • Attack surface: Remotely reachable web application endpoint
  • Required access: Ability to submit requests to the affected controller; authentication requirements depend on deployment configuration
  • Trigger point: Processing of the transaction_idS argument in php/controller.php
  • Why exploitation is possible: Attacker-controlled input may reach a database query without reliable parameterization or equivalent query isolation

Why this happens

The underlying issue is an injection-prone database query that treats request data as part of SQL syntax. This behavior maps directly 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 insecure pattern occurs when application input is concatenated into SQL statements instead of being passed as typed, parameterized data.

The underlying issue is an injection-prone database query that treats request data as part of SQL syntax. This behavior maps directly 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 insecure pattern occurs when application input is concatenated into SQL statements instead of being passed as typed, parameterized data.

Potential impact

  • An attacker may read unauthorized database records
  • An attacker could alter or delete application data
  • The application may return database errors or sensitive query information
  • Database credentials or other stored secrets could be exposed
  • In some configurations, exploitation can affect connected services or broader application integrity
  • An attacker may read unauthorized database records
  • An attacker could alter or delete application data
  • The application may return database errors or sensitive query information
  • Database credentials or other stored secrets could be exposed
  • In some configurations, exploitation can affect connected services or broader application integrity

General mitigation guidance

Mitigation generally focuses on ensuring that all database operations treat external input as data rather than executable SQL.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for every user-influenced value
  • Apply allowlist validation and appropriate type constraints to transaction identifiers
  • Avoid dynamic SQL construction where a fixed query structure is sufficient
  • Return generic database errors without exposing query details
  • Restrict application database accounts to the minimum required privileges
  • Protect administrative and transaction endpoints with appropriate authentication and authorization
  • Reduce trust in client-supplied identifiers by deriving values from server-side state where practical

Mitigation generally focuses on ensuring that all database operations treat external input as data rather than executable SQL.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for every user-influenced value
  • Apply allowlist validation and appropriate type constraints to transaction identifiers
  • Avoid dynamic SQL construction where a fixed query structure is sufficient
  • Return generic database errors without exposing query details
  • Restrict application database accounts to the minimum required privileges
  • Protect administrative and transaction endpoints with appropriate authentication and authorization
  • Reduce trust in client-supplied identifiers by deriving values from server-side state where practical

How teams detect issues like this

Organizations can identify similar issues through:

  • Static analysis rules for SQL string concatenation and interpolation involving request parameters
  • Code review checks focused on controller-to-database data flows
  • Dynamic testing that uses safe, non-destructive injection probes against isolated environments
  • Web application firewall or API policy rules monitoring anomalous database-oriented input
  • Database audit logs that identify unexpected query structures, error spikes, or unusual access patterns

Automated security review tools can help flag unsafe query construction, but findings should be confirmed against the application's actual data flow.

Organizations can identify similar issues through:

  • Static analysis rules for SQL string concatenation and interpolation involving request parameters
  • Code review checks focused on controller-to-database data flows
  • Dynamic testing that uses safe, non-destructive injection probes against isolated environments
  • Web application firewall or API policy rules monitoring anomalous database-oriented input
  • Database audit logs that identify unexpected query structures, error spikes, or unusual access patterns

Automated security review tools can help flag unsafe query construction, but findings should be confirmed against the application's actual data flow.

Sources

SourceLink
github.comgithub.com/onetwothreeneth/HospitalManagementSystem/
github.comgithub.com/onetwothreeneth/HospitalManagementSystem/issues/8
vuldb.comvuldb.com/cve/CVE-2026-105383
vuldb.comvuldb.com/submit/977737
vuldb.comvuldb.com/vuln/413577
vuldb.comvuldb.com/vuln/413577/cti

Frequently asked

questions

Yes. The reported attack surface is remote, but practical exploitability depends on whether the affected endpoint is exposed and what authentication or network controls protect it.

Not necessarily. The available description does not establish a required privilege level; access to the vulnerable request path is the key condition, subject to deployment-specific authentication.

Use parameterized queries or prepared statements, validate the expected identifier format, and ensure database errors are not returned to clients.

Enforce secure database access patterns in shared libraries and code review, apply least-privilege database accounts, and continuously test request-to-query data flows.

Yes. The reported attack surface is remote, but practical exploitability depends on whether the affected endpoint is exposed and what authentication or network controls protect it.

Not necessarily. The available description does not establish a required privilege level; access to the vulnerable request path is the key condition, subject to deployment-specific authentication.

Use parameterized queries or prepared statements, validate the expected identifier format, and ensure database errors are not returned to clients.

Enforce secure database access patterns in shared libraries and code review, apply least-privilege database accounts, and continuously test request-to-query data flows.

Find out what's already
exploitable in your codebase.