Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend crafted HTTP request to viewReq.php
-
ExploitInject malicious SQL payload in ID parameter
-
ExecutionDatabase executes attacker-controlled query
-
ImpactExtract or manipulate sensitive database records
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions - remote unauthenticated exploitation against default configurations of code-projects Hospital Information System. The vulnerable endpoint viewReq.php must be reachable over the network (web-exposed deployment). No authentication, session token, or user interaction is required. Exploitation is limited to deployments of this specific PHP application; organizations not running code-projects Hospital Information System are not affected. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) confirms this is trivially exploitable over the network with no prerequisites - even a mid-sized municipal IT team in leszno maintaining an ad-hoc hospital records system should treat this as an urgent configuration review if using code-projects software. However, the impact metrics (VC:L/VI:L/VA:L) are moderate rather than critical, suggesting the injectable query does not by itself grant full database compromise in the assessed scenario. The E:P exploitation status indicates a public PoC exists (GitHub issue), which materially lowers the bar for opportunistic attackers - no KEV listing suggests exploitation has not been observed at scale, but the trivial attack complexity and public exploit code elevate the practical risk beyond what the 6.9 score alone implies. The product is a hobbyist/demo codebase with limited enterprise adoption, so overall environmental risk is low outside of organizations that have deployed this specific application in production. |
| Exploit ScenarioDerived | An attacker sends a crafted HTTP request to the publicly accessible viewReq.php endpoint, supplying a SQL fragment in the ID parameter (e.g., ID=1 UNION SELECT ...). Because the parameter is interpolated directly into the SQL query without sanitization, the attacker can enumerate database tables, extract sensitive patient or credential data, or perform blind injection attacks. The public PoC on GitHub provides a working template, meaning script-kiddie-level attackers can execute this without specialized knowledge. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 04, 2026
SQL injection in code-projects Hospital Information System 1.0 allows unauthenticated remote attackers to manipulate backend database queries by supplying a crafted value in the ID argument to the viewReq() function within viewReq.php. The attack requires no authentication or user interaction, and a proof-of-concept exploit is publicly available via a GitHub issue. No vendor patch has been identified at time of analysis, leaving deployments with no official remediation path.
RemediationAI
No vendor-released patch has been identified at time of analysis - the project shows no corresponding fix commit or release. As an immediate compensating control, restrict access to viewReq.php at the web server or firewall level to trusted internal IP ranges only, effectively converting the attack vector from network to local. If the application cannot be taken offline, implement a web application firewall rule to detect and block SQL injection patterns targeting the ID parameter in requests to viewReq.php - note that WAF rules may generate false positives affecting legitimate use. The most durable fix is to rewrite the viewReq() function to use prepared statements with parameterized queries (PDO or MySQLi), replacing direct string concatenation. Organizations running this software should evaluate whether the application is still necessary given the absence of vendor support.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected application is a PHP-based hospital information system distributed by code-projects.org, identified by CPE cpe:2.3:a:code-projects:hospital_information_system:*:*:*:*:*:*:*:*. The root cause is CWE-89 (SQL Injection): the viewReq() function in viewReq.php constructs a database query incorporating the user-supplied ID parameter without adequate sanitization or parameterization, allowing the attacker to alter query structure. The wildcard CPE version field indicates all known releases are affected. The PHP nature of the application and the typical deployment of such code-project demo applications on shared hosting or local LAMP stacks is consistent with the observed attack surface.
Know when Hospital Information System gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Network-reachable, no auth or interaction needed; SQL injection yields partial data read/write but not full system or availability impact.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was identified in code-projects Hospital Information System 1.0. Affected is the function viewReq of the file viewReq.php. Such manipulation of the argument ID leads to sql injection. It is possible to launch the attack remotely. The exploit is publicly available and might be used.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Related Vulnerabilities in code-projects Hospital Information System SQL Injection
View all 3More in Hospital Information System
View allHospital Information System version 1.0 suffers from a remote SQL injection vulnerability that allows for authentication
Hospital Information System 1.0 by code-projects exposes its raw SQL database backup file at the web-accessible path `/H
Code Projects Hospital Information System 1.0 is vulnerable to Cross Site Scripting (XSS). Rated medium severity (CVSS 4
Reflected cross-site scripting (XSS) in code-projects Hospital Information System 1.0 allows a remote authenticated atta
EUVD-2026-70866
GHSA-p98f-83cx-fhff
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB