Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Unauthenticated HTTP endpoint with no prerequisites; partial CIA impact reflects SQL data read/write without full system or database server takeover.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.org
kishan0725 Hospital Management System 4.0 is vulnerable to SQL Injection in the view-medhistory.php endpoint via the viewid parameter.
AnalysisAI
SQL Injection in kishan0725 Hospital Management System 4.0 exposes patient medical history records to unauthenticated remote attackers via the viewid parameter of the view-medhistory.php endpoint. The CVSS vector confirms no authentication, complexity, or user interaction is required, and the SSVC framework independently verifies a proof-of-concept exists and the attack is fully automatable. Despite a low EPSS score of 0.14%, the sensitivity of medical record data and zero-barrier exploitation make any internet-exposed instance a meaningful risk; no public exploit identified at time of analysis as confirmed active exploitation (KEV not listed).
Technical ContextAI
The flaw is a classic CWE-89 SQL Injection in a PHP-based open-source hospital management web application. The view-medhistory.php endpoint accepts a user-supplied viewid parameter that is passed unsanitized into a backend SQL query, most likely against a MySQL or MariaDB database typical of PHP stacks. The NVD CPE entry (cpe:2.3:a:n/a:n/a:*:*:*:*:*:*:*:*) is generic and unresolved, confirming the project lacks a formal vendor catalog entry and is a community-maintained GitHub project. The TaintRadar research group identified this flaw through taint-based static analysis tooling, as documented in their public disclosure writeup. CWE-89 root cause indicates the application fails to use parameterized queries or prepared statements, allowing metacharacter injection to alter query logic.
RemediationAI
No vendor-released patch or fixed version has been identified at time of analysis. The primary code-level fix is to replace dynamic SQL string concatenation in view-medhistory.php with PHP prepared statements (PDO or MySQLi), which eliminates the injection surface entirely - this is the only reliable long-term fix. As an immediate compensating control, restrict access to the Hospital Management System application to trusted internal IP ranges or require VPN connectivity before any endpoint is reachable, directly blocking the AV:N attack vector. Deploying a Web Application Firewall with SQLi signature rules on the viewid parameter can reduce automated scanning success but should not substitute for code-level remediation, as WAFs can be bypassed. Additionally, audit and restrict the database user account used by the application to the minimum required privileges (SELECT only on specific tables if possible), limiting the data an attacker can retrieve even if injection succeeds. The public POC at https://github.com/um-dsp/TaintRadar/blob/main/sql_injection_cves/hospitalmanagementsystemproject/20250811-hospital-management-system-view-medhistory.php-viewid-sqli/20250811-hospital-management-system-view-medhistory.php-viewid-sqli.md provides technical detail useful for validating any applied fix.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
Same weakness CWE-89 – SQL Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2025-210540
GHSA-hcmx-6x6r-f6mp