CVE-2026-9355

SourceCodester Hospitals Patient Records Management System Master.php save_patient_history sql injection

Published May 24, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
A flaw has been found in SourceCodester Hospitals Patient Records Management System 1.0. The impacted element is an unknown function of the file /classes/Master.php?f=save_patient_history. This manipulation of the argument ID causes sql injection. The attack is possible to be carried out remotely. The exploit has been published and may be used.

Analysis

AI-generated

Technical impact

The vulnerability resides in the save_patient_history function of Master.php in SourceCodester Hospitals Patient Records Management System 1.0. By manipulating the ID parameter, an attacker can inject arbitrary SQL into a database query, which is a classic SQL injection flaw classified as CWE‑74 and CWE‑89. Successful exploitation could let the attacker read, modify, or delete patient records and, if the database user has elevated rights, potentially gain wider access to the database.

Affected Systems

The affected product is SourceCodester Hospitals Patient Records Management System version 1.0. No other variants or vendors are listed in the CNA data. The vulnerability occurs in a web‑based interface, but the specific server or hosting configuration is not detailed in the CVE.

Risk and Exploitability

The flaw carries a CVSS base score of 6.9, indicating moderate severity. The EPSS score is unavailable, so the frequency of real‑world exploitation is unknown. It is not listed in the CISA KEV catalog. The ID argument is accessible via the public web interface, allowing a remote attacker to trigger the injection if the application is vulnerable.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest SourceCodester Hospitals Patient Records Management System version or any vendor patch that corrects the ID parameter handling in Master.php.
  • Modify the save_patient_history function to validate the ID argument strictly, allowing only integer values or a defined whitelist before it is used in a query.
  • Refactor all database queries in the application to use parameterized statements or prepared statements to eliminate direct string concatenation with user input.
  • Limit the database privileges granted to the application’s database user to only the permissions required for normal operation.

Generated by OpenCVE AI on May 24, 2026 at 06:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A flaw has been found in SourceCodester Hospitals Patient Records Management System 1.0. The impacted element is an unknown function of the file /classes/Master.php?f=save_patient_history. This manipulation of the argument ID causes sql injection. The attack is possible to be carried out remotely. The exploit has been published and may be used.
Title SourceCodester Hospitals Patient Records Management System Master.php save_patient_history sql injection
First Time appeared Sourcecodester
Sourcecodester hospitals Patient Records Management System
Weaknesses CWE-74
CWE-89
CPEs cpe:2.3:a:sourcecodester:hospitals_patient_records_management_system:*:*:*:*:*:*:*:*
Vendors & Products Sourcecodester
Sourcecodester hospitals Patient Records Management System
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 7.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
May 26, 2026, 1:35 PM
Reserved
May 23, 2026, 9:32 AM
Status
Deferred
Published
May 24, 2026, 5:16 AM
Modified
Jul 23, 2026, 11:10 AM