Description
A weakness has been identified in SourceCodester Hospitals Patient Records Management System 1.0. Affected is an unknown function of the file /classes/Users.php?f=save. This manipulation of the argument ID causes sql injection. Remote exploitation of the attack is possible. The exploit has been made available to the public and could be used for attacks.
Published: 2026-05-31
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A vulnerability was discovered in SourceCodester Hospitals Patient Records Management System 1.0. The bug resides in an unvalidated input handling function within the file /classes/Users.php?f=save. By manipulating the ID argument, an attacker can inject arbitrary SQL statements, allowing unauthorized read, modification, and deletion of patient data stored in the database. The flaw permits remote exploitation; an attacker does not need elevated privileges on the server to trigger it, as the web interface accepts external input directly.

Affected Systems

The affected product is the SourceCodester Hospitals Patient Records Management System, version 1.0, an open‑source application distributed through SourceCodester and maintained under a permissive license. No other versions or variants were explicitly identified in the advisory.

Risk and Exploitability

The CVSS score of 6.9 indicates a moderate severity, and no EPSS score is available, so the current exploitation probability is unknown. The vulnerability is not listed in CISA’s KEV catalog. Attackers can exploit it remotely by supplying a crafted ID value through the web interface; a public exploit has already been released, indicating that compromised systems could be impacted without significant additional effort.

Generated by OpenCVE AI on May 31, 2026 at 15:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Obtain and install the latest release of SourceCodester Hospitals Patient Records Management System that contains the SQL injection fix.
  • Restrict or disable the /classes/Users.php?f=save functionality for users who do not need it, and enforce strict role‑based access controls for the remaining users.
  • Validate and sanitize the ID parameter so that only safe, expected values (e.g., numeric identifiers) are accepted before the request is processed.
  • Deploy a web application firewall or similar filtering mechanism to detect and block typical SQL injection patterns targeting the ID field.

Generated by OpenCVE AI on May 31, 2026 at 15:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 31 May 2026 14:15:00 +0000

Type Values Removed Values Added
Description A weakness has been identified in SourceCodester Hospitals Patient Records Management System 1.0. Affected is an unknown function of the file /classes/Users.php?f=save. This manipulation of the argument ID causes sql injection. Remote exploitation of the attack is possible. The exploit has been made available to the public and could be used for attacks.
Title SourceCodester Hospitals Patient Records Management System Users.php save 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'}


Subscriptions

Sourcecodester Hospitals Patient Records Management System
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-05-31T13:45:08.141Z

Reserved: 2026-05-30T16:35:44.500Z

Link: CVE-2026-10185

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-05-31T14:16:51.870

Modified: 2026-05-31T14:16:51.870

Link: CVE-2026-10185

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-31T15:30:05Z

Weaknesses