Skip to main content

Hospital Management System EUVDEUVD-2025-210530

| CVE-2025-65340 CRITICAL
SQL Injection (CWE-89)
2026-07-29 mitre GHSA-q4xr-8q49-vvhj
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach reports endpoint over network
  2. Delivery
    Inject SQL via fromdate parameter
  3. Exploit
    Break out of report query
  4. Execution
    Enumerate schema with sqlmap
  5. Impact
    Dump 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n/a n/a

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

Vendor (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.3 HIGH

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Jul 30, 2026 - 19:22 NVD
9.8 (CRITICAL)
CVE Published
Jul 29, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Jul 29, 2026 - 00:00 cve.org
CRITICAL 9.8

DescriptionCVE.org

kishan0725 Hospital Management System 4.0 is vulnerable to SQL Injection in /betweendates-detailsreports.php.

Executive ViewAI

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.1%
Top 96% exploitable
Prevalence
Rare
niche open-source hobby/educational PHP project, negligible production footprint
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy