Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach reports endpoint over network
-
DeliveryInject SQL via fromdate parameter
-
ExploitBreak out of report query
-
ExecutionEnumerate schema with sqlmap
-
ImpactDump or modify database records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires reaching the /betweendates-detailsreports.php report endpoint and supplying a malicious 'fromdate' parameter that is concatenated into the SQL query. The provided CVSS vector states PR:N (no authentication), but this endpoint is an administrative date-range reporting feature that in typical deployments requires a logged-in session - this discrepancy should be verified against the actual deployment, since a required admin login is the primary limiting factor. Additional limits: the specific application (kishan0725 HMS 4.0) must be deployed and network-reachable, and its rare real-world footprint sharply constrains opportunistic exploitation. No user interaction is required, and the attack is automatable end-to-end with sqlmap. |
| Impact | The reported CVSS is 9.8 (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H), which frames this as trivially exploitable and unauthenticated. However, that signal conflicts with the nature of the endpoint: betweendates-detailsreports.php is an administrative/reporting page that in typical deployments sits behind a login, so PR:N should be verified rather than trusted - if authentication is required, real-world exploitability drops substantially. Corroborating signals are mixed: SSVC classifies exploitation as 'poc', automatable 'yes', and technical impact 'total', consistent with a sqlmap-driven, fully database-compromising attack; yet EPSS is only 0.14% (4th percentile) and there is no KEV entry, indicating exploitation is not (yet) widespread. Net: high theoretical severity and a working PoC, but very low real-world prevalence because this is a niche open-source/educational project, not enterprise software. Treat as a genuine but low-priority issue unless this specific application is internet-exposed. |
| Exploit ScenarioDerived | An attacker who can reach the reports page submits a crafted 'fromdate' value to /betweendates-detailsreports.php, breaking out of the intended SQL query. Using sqlmap (whose successful injection techniques are already documented for this endpoint), they enumerate the schema and dump patient records, credentials, and other sensitive tables, and can potentially modify or delete data given the total technical impact rating. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 30, 2026
SQL injection in kishan0725's open-source PHP Hospital Management System 4.0 lets attackers manipulate the backend database via the 'fromdate' parameter of /betweendates-detailsreports.php. Because input is concatenated directly into a SQL query, an attacker can read, alter, or destroy patient and hospital records; publicly available exploit code exists (sqlmap-confirmed injection techniques documented in the TaintRadar research repository). EPSS is low (0.14%, 4th percentile) and there is no CISA KEV listing, so this is a proof-of-concept-stage issue rather than confirmed active exploitation.
RemediationAI
No vendor-released patch identified at time of analysis. The definitive fix is to rewrite the vulnerable query in /betweendates-detailsreports.php to use parameterized queries / prepared statements (PDO or mysqli bound parameters) for the 'fromdate' (and any adjacent 'todate') inputs, and to add server-side validation enforcing a strict date format before the value reaches SQL. As interim compensating controls: restrict access to the reporting endpoint to authenticated administrators and place it behind network access controls or a VPN so it is not internet-reachable (trade-off: none for legitimate internal use); deploy a WAF rule to block SQL metacharacters in the fromdate parameter (trade-off: pattern-based WAF rules can be bypassed and may false-positive on legitimate date input); and grant the application's database account least privilege (read-only where possible, no DROP/FILE) to limit blast radius (trade-off: may break report features that write data). Track the project's GitHub repository for an upstream fix and reference the writeup at the TaintRadar URL above.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is a PHP web application (Hospital Management System) that generates date-range detail reports. The vulnerability is CWE-89 (Improper Neutralization of Special Elements used in an SQL Command), the classic root cause where user-supplied input - here the 'fromdate' request parameter - is interpolated into a SQL statement without parameterization or escaping, allowing the query grammar itself to be altered. The backend is a MySQL/MariaDB database typical of this PHP/LAMP-stack project. The published research shows the flaw is reachable and exploitable through automated tooling (sqlmap), which fingerprints and dumps the database. CPE data is uninformative (cpe:2.3:a:n/a:n/a:*), so exact affected-package identification relies on the vendor project name and description rather than an authoritative NVD CPE.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Network-reachable, automatable SQLi (AV:N/AC:L); PR:L rather than PR:N because this admin report endpoint typically requires a login; full DB read/write yields C:H/I:H with limited availability impact (A:L).
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.org
kishan0725 Hospital Management System 4.0 is vulnerable to SQL Injection in /betweendates-detailsreports.php.
Executive ViewAI
A critical SQL injection vulnerability (CVSS 9.8) in PHP Hospital Management System 4.0 enables attackers to directly access and manipulate patient and hospital records through the 'fromdate' parameter. Healthcare organizations using this open-source system face immediate risk of unauthorized patient data exposure, mandatory breach notifications under HIPAA, and regulatory fines. Exploitation requires network access to the affected endpoint but no authentication.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deploy Web Application Firewall with SQL injection detection rules; (2) Configure database user accounts with select-only privileges limited to required tables; (3) Implement parameterized queries or prepared statements if system customization is feasible; (4) Restrict network access to the application via IP allowlisting from authorized locations; (5) Enable comprehensive database query logging and alerting on anomalous patterns.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
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
EUVD-2025-210530
GHSA-q4xr-8q49-vvhj
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB