CVE-2026-10185: SourceCodester Hospitals Patient Records Management System Users.php save sql injection
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Remove
Remove
SourceCodester Hospitals Patient Records Management System 1.0from your environment.If the application is not required, uninstall or remove the affected application instance to eliminate the vulnerable component from the environment.
- Configuration
Ensure the ID argument accepted by /classes/Users.php?f=save is strictly validated (e.g., cast or reject non-numeric input) and convert any dynamic SQL to use parameterized queries or prepared statements to eliminate SQL injection.
SourceCodester Hospitals Patient Records Management System 1.0 - /classes/Users.php?f=save ID parameter handling / SQL query = validate ID as an integer and use parameterized queries / prepared statements - Compensating control
If a code patch cannot be applied immediately, restrict access to the application (and the /classes/Users.php endpoint) by network controls such as firewall rules, IP allowlists, or a web application firewall (WAF) to limit exposure to untrusted networks.
- Operational
Because a public exploit exists, assume possible compromise: review access and database logs for suspicious activity, investigate indicators of compromise, and rotate any credentials (application, database, administrative) that may have been exposed before or during remediation.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-10185?
The severity of CVE-2026-10185 is rated high with a score of 7.3.
How do I fix CVE-2026-10185?
To fix CVE-2026-10185, ensure that input parameters are properly sanitized and validated to prevent SQL injection.
What software is impacted by CVE-2026-10185?
CVE-2026-10185 affects the SourceCodester Hospitals Patient Records Management System, version 1.0.
Can CVE-2026-10185 be exploited remotely?
Yes, CVE-2026-10185 allows for remote exploitation of the SQL injection vulnerability.
What type of vulnerability is CVE-2026-10185?
CVE-2026-10185 is classified as an SQL Injection vulnerability.