VYPR
High severity7.3NVD Advisory· Published Jun 8, 2026· Updated Jun 8, 2026

CVE-2026-11501

CVE-2026-11501

Description

SQL injection vulnerability in SourceCodester Hospitals Patient Records Management System 1.0 allows remote attackers to access or modify database.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

SQL injection vulnerability in SourceCodester Hospitals Patient Records Management System 1.0 allows remote attackers to access or modify database.

Vulnerability

A SQL injection vulnerability exists in SourceCodester Hospitals Patient Records Management System version 1.0 within the /classes/Master.php?f=save_patient file. The vulnerability arises from insufficient validation of the ID parameter, which is directly incorporated into SQL queries without proper sanitization [1].

Exploitation

An attacker can exploit this vulnerability remotely without requiring authentication or login. By manipulating the ID parameter with malicious SQL code, an attacker can execute arbitrary SQL queries against the application's database [1].

Impact

Successful exploitation allows attackers to gain unauthorized access to the database, potentially leading to sensitive data leakage, data tampering, or even complete system control. This can also result in service interruption, posing a significant threat to system security and business continuity [1].

Mitigation

No specific patched version or release date for a fix has been disclosed in the available references. Users are advised to consult the vendor for the latest security updates. The exploit has been publicly released, and active attacks may be occurring [1]. Reference [2] provides general information about free source code projects and tutorials but does not contain mitigation details for this vulnerability.

AI Insight generated on Jun 8, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

Root cause

"The application fails to properly sanitize the 'id' parameter in the save_patient functionality, allowing for SQL injection."

Attack vector

An attacker can remotely exploit this vulnerability by sending a crafted request to the `/classes/Master.php?f=save_patient` endpoint. The manipulation of the 'id' parameter with malicious SQL code allows the attacker to bypass security measures. No login or authorization is required to perform this attack [ref_id=1].

Affected code

The vulnerability resides in the `/classes/Master.php` file, specifically within the `save_patient` functionality. The 'id' parameter is directly incorporated into SQL queries without adequate sanitization or validation, leading to the SQL injection flaw [ref_id=1].

What the fix does

The advisory suggests using prepared statements and parameter binding to prevent SQL injection by treating user input as data rather than executable code. Additionally, it recommends strict input validation and filtering to ensure data conforms to expected formats. Minimizing database user permissions and conducting regular security audits are also advised [ref_id=1]. The patch does not show specific code changes, but these measures would prevent the 'id' parameter from being interpreted as SQL.

Preconditions

  • inputThe 'id' parameter must be controllable by the attacker.
  • networkThe vulnerability is remotely exploitable.
  • authNo login or authorization is required.

Generated on Jun 8, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

6

News mentions

0

No linked articles in our index yet.