Skip to main content

Hospitals Patient Records Management System CVE-2026-9342

| EUVDEUVD-2026-31554 LOW
SQL Injection (CWE-89)
2026-05-23 VulDB GHSA-fv8j-whg3-8v9w
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privilege credentials
  2. Delivery
    Access /admin/patients/view_history.php
  3. Exploit
    Inject SQL payload via ID parameter
  4. Execution
    Extract database contents
  5. Impact
    Exfiltrate patient 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

Authenticated access with low-privilege user account to the /admin/ administrative panel is required (CVSS PR:L). The vulnerability exists in the view_history.php endpoint specifically when the ID parameter is passed in HTTP requests (GET or POST). No special server configuration or non-default settings are necessary - default installations of version 1.0 are exploitable. The attacker must have network connectivity to the web application (AV:N) but no user interaction is required once credentials are obtained (UI:N). Limiting factors: (1) authentication barrier requires credential compromise through separate attack vector (phishing, brute force, credential reuse), (2) 'low privilege' suggests even read-only or limited-access accounts can trigger the vulnerability, lowering the privilege escalation barrier, (3) the /admin/ path prefix suggests the vulnerable endpoint may be segregated from public-facing pages, potentially limiting exposure if access controls are properly enforced at the web server level.

Impact

Real-world risk is MODERATE to HIGH for organizations actually deploying this system in production environments, despite the 6.3 CVSS score. Key risk factors: (1) publicly available exploit code significantly lowers the skill barrier for exploitation, (2) the attack vector is network-based (AV:N) with low complexity (AC:L), making it easily automatable once credentials are obtained, (3) healthcare data is high-value for threat actors due to regulatory implications (HIPAA, GDPR) and resale potential. Mitigating factors: (1) authentication requirement (PR:L) limits exposure to insiders or attackers who have compromised low-privilege accounts, (2) scope is unchanged (S:U), containing impact to the vulnerable application, (3) no CISA KEV listing suggests exploitation is not yet widespread in the wild. CRITICAL UNCERTAINTY: SourceCodester projects are often proof-of-concept code not intended for production use - organizations using this system may be exposed due to lack of vendor support or patching infrastructure. The absence of EPSS score and limited vendor ecosystem means traditional risk signals are incomplete. Realistic threat: compromised employee credentials (phishing, credential stuffing) followed by SQL injection to exfiltrate patient records for ransomware or data extortion campaigns.

Exploit ScenarioDerived

An attacker obtains low-privilege credentials to the hospital records system through phishing a medical staff member or exploiting weak password policies. Using the publicly available GitHub exploit code (https://github.com/july-skyload/exp/issues/1), the attacker crafts a malicious HTTP request to /admin/patients/view_history.php with a SQL injection payload in the ID parameter (example: ID=1' UNION SELECT user,password,email FROM admin_users--). The vulnerable PHP code concatenates this unsanitized input directly into a SQL query, executing the attacker's injected commands. The attacker extracts the full patient database including personally identifiable information (PII), medical histories, and billing records, then deploys ransomware and threatens HIPAA violation disclosure unless payment is made.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 23, 2026

SQL injection in SourceCodester Hospitals Patient Records Management System 1.0 allows authenticated attackers to extract, modify, or delete database records via the ID parameter in /admin/patients/view_history.php. The vulnerability requires low-privilege authenticated access (PR:L) but has low attack complexity (AC:L) and can be exploited remotely. Publicly available exploit code exists on GitHub (referenced in VulDB entry), enabling immediate weaponization by threat actors. EPSS data not available, and the vulnerability is not currently listed in CISA KEV, indicating exploitation may be limited or targeted rather than widespread. The CVSS 6.3 (Medium) rating reflects partial impact across confidentiality, integrity, and availability (C:L/I:L/A:L).

RemediationAI

No vendor-released patch identified at time of analysis - SourceCodester projects typically do not receive post-release security updates as they are educational demonstration code rather than supported products. Organizations currently running this system should implement the following mitigations: (1) Apply input validation and parameterized queries (prepared statements) to /admin/patients/view_history.php, specifically sanitizing the ID parameter using PHP PDO parameter binding or equivalent - this requires modifying the source code directly. (2) Restrict administrative panel access (/admin/*) to internal networks only via firewall rules or VPN requirement, eliminating remote attack vector exposure (note: this reduces but does not eliminate risk if internal compromise occurs). (3) Implement database-level access controls using least-privilege MySQL/MariaDB user accounts that prevent DROP, ALTER, or cross-database access even if SQL injection succeeds - this limits impact scope but does not prevent data exfiltration. (4) Deploy web application firewall (WAF) rules to detect SQL injection patterns in ID parameter (common patterns: UNION SELECT, OR 1=1, semicolon injection) - this is a detection/prevention layer but may be bypassed by sophisticated payloads. RECOMMENDED PRIMARY ACTION: Migrate to a security-maintained healthcare records system with active vendor support and CVE response processes, as SourceCodester demonstration code is not designed for production use with sensitive patient data subject to regulatory compliance requirements.

Affected VersionsENISA

Hospitals Patient Records Management System 1.0

Affected Packages

euvd hospitals_patient_records_management_system no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This is a classic SQL injection vulnerability (CWE-89) in a PHP-based healthcare management application. The vulnerable endpoint /admin/patients/view_history.php fails to properly sanitize or parameterize the 'ID' parameter before incorporating it into SQL queries. SQL injection occurs when user-controlled input is concatenated directly into SQL statements without validation or prepared statements, allowing attackers to inject malicious SQL commands. The CPE string (cpe:2.3:a:sourcecodester:hospitals_patient_records_management_system:*:*:*:*:*:*:*:*) identifies this as a SourceCodester open-source project, version 1.0, which is distributed as downloadable PHP source code for educational/demonstration purposes rather than as a supported commercial product. Such codebases often lack security hardening and formal vulnerability management processes.

Know when Hospitals Patient Records Management System 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 (VulDB) PRIMARY 2.1 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P

Primary rating from Vendor (VulDB) · only source for this CVE.

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
May 26, 2026 - 19:07 NVD
MEDIUM LOW
CVSS changed
May 26, 2026 - 19:07 NVD
6.3 (MEDIUM) 2.1 (LOW)

DescriptionCVE.org

A security flaw has been discovered in SourceCodester Hospitals Patient Records Management System 1.0. Impacted is an unknown function of the file /admin/patients/view_history.php. The manipulation of the argument ID results in sql injection. The attack may be launched remotely. The exploit has been released to the public and may be used for attacks.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Exploit
POC
Public exploit code exists
Data Quality
7 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 LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
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· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
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.

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