Impact
The flaw is a classic SQL injection vulnerability in the save_patient function of the Master.php file. By manipulating the ID parameter, an attacker can inject arbitrary SQL code. This weakness is explicitly listed as CWE-89 and CWE-74 in the CVE record. Attackers can execute the injection remotely, without local access, thereby exposing the underlying database to commands that can read, modify or delete patient records.
Affected Systems
Only the 1.0 release of SourceCodester’s Hospitals Patient Records Management System is known to be affected. The vulnerability resides in the /classes/Master.php file, specifically when a request is made with ?f=save_patient. No other versions or components are listed as impacted.
Risk and Exploitability
The CVSS score of 6.9 indicates a medium severity, and no EPSS score is provided. The vulnerability is not listed in CISA’s KEV catalog, but public exploit code has already been published. Because the flaw can be triggered over the network, an unauthenticated remote attacker could compromise the database and gain access to sensitive health records.
OpenCVE Enrichment