/

CVE-2026-105384

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in UNION HospitalManagementSystem

CVE-2026-105384

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database 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 remotely reachable SQL injection vulnerability in UNION HospitalManagementSystem allows attacker-controlled input in the patient_id argument to influence database queries.

Because public exploit information is available, an attacker who can reach the affected patient information function may be able to read, alter, or otherwise interfere with database-backed records.

A remotely reachable SQL injection vulnerability in UNION HospitalManagementSystem allows attacker-controlled input in the patient_id argument to influence database queries.

Because public exploit information is available, an attacker who can reach the affected patient information function may be able to read, alter, or otherwise interfere with database-backed records.

Affected context

The vulnerability occurs in an unspecified function within patient_info.php in UNION HospitalManagementSystem builds up to the referenced rolling-release revision. It becomes risky when the patient information endpoint is remotely accessible and the patient_id parameter is incorporated into a database query without sufficient separation between data and SQL syntax.

The vulnerability occurs in an unspecified function within patient_info.php in UNION HospitalManagementSystem builds up to the referenced rolling-release revision. It becomes risky when the patient information endpoint is remotely accessible and the patient_id parameter is incorporated into a database query without sufficient separation between data and SQL syntax.

Exploit preconditions

  • Attack surface: A remotely accessible patient information endpoint in patient_info.php
  • Required access: Network access to the affected application; authentication requirements are deployment-dependent
  • Trigger point: Processing of attacker-controlled input supplied through the patient_id argument
  • Why exploitation is possible: The input may be interpreted as part of a database query rather than strictly as a patient identifier
  • Additional context: Public exploit information may reduce the effort required to test or weaponize the flaw
  • Attack surface: A remotely accessible patient information endpoint in patient_info.php
  • Required access: Network access to the affected application; authentication requirements are deployment-dependent
  • Trigger point: Processing of attacker-controlled input supplied through the patient_id argument
  • Why exploitation is possible: The input may be interpreted as part of a database query rather than strictly as a patient identifier
  • Additional context: Public exploit information may reduce the effort required to test or weaponize the flaw

Why this happens

The underlying bug is insufficient separation of untrusted request data from SQL statements. When the patient_id value is concatenated into, or otherwise used to construct, a database query without parameterization and appropriate validation, SQL syntax can be influenced by the input.

This maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection). CWE-74 is also relevant because externally supplied data is interpreted within a command or query language.

The underlying bug is insufficient separation of untrusted request data from SQL statements. When the patient_id value is concatenated into, or otherwise used to construct, a database query without parameterization and appropriate validation, SQL syntax can be influenced by the input.

This maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection). CWE-74 is also relevant because externally supplied data is interpreted within a command or query language.

Potential impact

  • An attacker may retrieve unauthorized patient or application data
  • An attacker could modify or delete database records
  • Database availability may be affected through resource-intensive or destructive queries
  • Application integrity and confidentiality can be compromised
  • Exposed database privileges could enable further compromise of connected systems
  • An attacker may retrieve unauthorized patient or application data
  • An attacker could modify or delete database records
  • Database availability may be affected through resource-intensive or destructive queries
  • Application integrity and confidentiality can be compromised
  • Exposed database privileges could enable further compromise of connected systems

General mitigation guidance

Mitigation generally focuses on ensuring that request values are treated strictly as data and that database permissions are limited.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Apply allowlist validation for identifiers such as patient_id, including type, range, and format checks
  • Avoid dynamically assembled SQL where structured query APIs or safe query builders are available
  • Return generic database errors to clients while recording useful diagnostic details securely
  • Run the application with a database account limited to the operations it requires
  • Protect administrative and patient-data endpoints with appropriate authentication and authorization controls

Mitigation generally focuses on ensuring that request values are treated strictly as data and that database permissions are limited.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Apply allowlist validation for identifiers such as patient_id, including type, range, and format checks
  • Avoid dynamically assembled SQL where structured query APIs or safe query builders are available
  • Return generic database errors to clients while recording useful diagnostic details securely
  • Run the application with a database account limited to the operations it requires
  • Protect administrative and patient-data endpoints with appropriate authentication and authorization controls

How teams detect issues like this

Organizations can identify this class of issue through:

  • Static analysis rules that flag string concatenation or interpolation in SQL execution paths
  • Code review checks for request parameters passed directly into database APIs
  • Dynamic testing of externally supplied identifier fields using controlled, non-destructive test cases
  • Web-application firewall or API policy monitoring for anomalous query-like input patterns
  • Database audit logs showing unexpected query structure, access patterns, or privilege use
  • Automated security review tools that trace tainted request data into query construction

Organizations can identify this class of issue through:

  • Static analysis rules that flag string concatenation or interpolation in SQL execution paths
  • Code review checks for request parameters passed directly into database APIs
  • Dynamic testing of externally supplied identifier fields using controlled, non-destructive test cases
  • Web-application firewall or API policy monitoring for anomalous query-like input patterns
  • Database audit logs showing unexpected query structure, access patterns, or privilege use
  • Automated security review tools that trace tainted request data into query construction

Sources

SourceLink
github.comgithub.com/onetwothreeneth/HospitalManagementSystem/issues/9
vuldb.comvuldb.com/cve/CVE-2026-105384
vuldb.comvuldb.com/submit/977738
vuldb.comvuldb.com/vuln/413578
vuldb.comvuldb.com/vuln/413578/cti

Frequently asked

questions

Yes. The vulnerability is described as remotely reachable through the affected patient information functionality, although network exposure and application access controls determine the practical scope.

The available description does not establish whether authentication is required. The relevant prerequisites are access to the endpoint and the ability to submit or influence the patient_id argument.

Use parameterized database queries or prepared statements, combined with strict validation of the expected patient identifier format.

Treat all request data as untrusted, prohibit ad hoc SQL construction, use least-privilege database accounts, and include static analysis and controlled security testing in the development process.

Yes. The vulnerability is described as remotely reachable through the affected patient information functionality, although network exposure and application access controls determine the practical scope.

The available description does not establish whether authentication is required. The relevant prerequisites are access to the endpoint and the ability to submit or influence the patient_id argument.

Use parameterized database queries or prepared statements, combined with strict validation of the expected patient identifier format.

Treat all request data as untrusted, prohibit ad hoc SQL construction, use least-privilege database accounts, and include static analysis and controlled security testing in the development process.

Find out what's already
exploitable in your codebase.