CVE-2026-9342: SourceCodester Hospitals Patient Records Management System SQL injection in view_history.php

CVE-2026-9342 · Severity: medium · CVSS 6.3 · Published 2026-05-23

A security vulnerability exists in the SourceCodester Hospitals Patient Records Management System, a web application used for managing medical patient data. An attacker can exploit this flaw to gain unauthorized access to the underlying database, potentially leading to the theft of sensitive patient records, data tampering, or service disruption. This issue is particularly serious as proof-of-concept exploit code has been made publicly available.

Technologies: SourceCodester Hospitals Patient Records Management System. Vendors: SourceCodester.

Quick answers

Is CVE-2026-9342 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-9342 being exploited in the wild.
How severe is CVE-2026-9342?
Medium severity, with a CVSS score of 6.3, published 23 May 2026.
Which products and versions are affected?
SourceCodester Hospitals Patient Records Management System 1.0.
Is there a fix for CVE-2026-9342?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-9342 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-9342?
Check whether you run SourceCodester Hospitals Patient Records Management System at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A SQL injection vulnerability exists in SourceCodester Hospitals Patient Records Management System 1.0 within the '/admin/patients/view_history.php' file. The root cause is the improper neutralization of the 'id' GET parameter before its use in a database query. A remote attacker can exploit this by sending crafted SQL queries (including boolean-based blind, time-based blind, and UNION-based techniques) to the server. Successful exploitation allows for unauthorized database access, sensitive data extraction, and potential modification of patient records. While some reports suggest low privileges are required, others indicate no authentication is necessary to reach the vulnerable endpoint. Public exploit code (PoC) is available.

Affected products

  • SourceCodester Hospitals Patient Records Management System 1.0

Timeline

  • 2026-04-25: disclosed: Vulnerability details and PoC published on GitHub.
  • 2026-05-23: advisory: CVE published and listed on NVD/VulDB.

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.