Severity by source
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
3DescriptionCVE.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.
AnalysisAI
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).
Technical ContextAI
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.
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.
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
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
NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro
The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all
Same weakness CWE-89 – SQL Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-31554
GHSA-fv8j-whg3-8v9w