CVE-2026-10186: code-projects Online Hospital Management System patient.php sql injection
A security vulnerability has been detected in code-projects Online Hospital Management System 1.0. Affected by this vulnerability is an unknown functionality of the file /patient.php. Such manipulation of the argument editid leads to sql injection. The attack can be executed remotely. The exploit has been disclosed publicly and may be used.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Modify /patient.php so that the editid parameter is validated and sanitized (ensure it is an expected numeric ID or allowed value), and ensure all database access uses parameterized queries / prepared statements (or properly escaped and typed bindings) rather than directly concatenating editid into SQL.
code-projects Online Hospital Management System /patient.php editid parameter handling = validate as integer; use parameterized queries / prepared statements; sanitize input - Compensating control
Deploy a Web Application Firewall (WAF) or application-layer filtering to block or sanitize malicious payloads targeting the editid parameter (and other input parameters). Add rules to detect and block SQL injection patterns and to restrict unexpected characters in editid.
- Compensating control
Restrict access to the application and its management interfaces (e.g., via network ACLs, firewall rules, or VPN) to trusted IP addresses to reduce exposure while a code fix is applied.
- Compensating control
Ensure the database account used by the application has least-privilege rights (only the required CRUD permissions on necessary objects) to limit the impact of potential SQL injection exploitation.
- Operational
Review server and application logs for signs of exploitation of the editid parameter, investigate any suspicious activity, apply incident response as needed, and rotate any credentials that may have been exposed or could have been compromised.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-10186?
The severity of CVE-2026-10186 is rated high with a score of 7.3.
What type of vulnerability is CVE-2026-10186?
CVE-2026-10186 is classified as an SQL Injection vulnerability.
How can CVE-2026-10186 be exploited?
CVE-2026-10186 can be exploited remotely by manipulating the 'editid' parameter in the /patient.php file.
What software is affected by CVE-2026-10186?
CVE-2026-10186 affects the Code-projects Online Hospital Management System version 1.0.
How do I fix CVE-2026-10186?
To fix CVE-2026-10186, sanitize and validate all input parameters to prevent SQL injection.