Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Impact | While the CVSS 3.1 score of 7.3 reflects 'high' severity (confidentiality, integrity, and availability impact with low attack complexity and no privilege requirements), real-world risk is CRITICAL due to multiple aggravating factors: (1) Attack Vector is Network/Unauthenticated (AV:N/PR:N), enabling remote exploitation; (2) No user interaction required (UI:N); (3) Public POC/exploit disclosure significantly increases EPSS exploitation probability to near-certainty (likely >90%); (4) KEV/active exploitation status suggests this is being weaponized in the wild; (5) SQL injection in a Hostel Management System directly threatens sensitive data (guest information, payment details, bookings). The low Attack Complexity (AC:L) means script-kiddies can exploit this. SSVC signals are uniformly negative: exploitation is active/public (not theoretical), the attack is automatable, and technical impact is complete system compromise. This is a genuine, high-priority vulnerability requiring immediate action for any deployed instance. |
| Exploit ScenarioDerived | An attacker crafts a malicious HTTP request targeting a live Hostel Management System installation: GET /empty_rooms.php?search_box=1' OR '1'='1 or POST request with search_box=1'; DROP TABLE guests;--. The vulnerable code concatenates this unsanitized input directly into a SQL query like SELECT * FROM rooms WHERE room_name LIKE '%' + [search_box] + '%'. The injected SQL payload executes with the application's database privileges, allowing the attacker to: (1) Extract guest personal data (names, contact info, payment details), (2) Modify booking records or pricing, (3) Delete audit trails, (4) Potentially escalate to OS command execution depending on database configuration. No authentication is required due to /empty_rooms.php being publicly accessible. Given public POC availability, automated scanning tools are likely already probing exposed instances. Exploitation requires only basic HTTP client knowledge, making this within reach of low-skilled threat actors. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 15, 2026
CVE-2025-6296 is a critical SQL injection vulnerability in code-projects Hostel Management System version 1.0, specifically in the /empty_rooms.php file's search_box parameter. An unauthenticated remote attacker can exploit this to execute arbitrary SQL queries, potentially achieving unauthorized data access, modification, or deletion. The vulnerability has been publicly disclosed with exploits available, making active exploitation highly probable in real-world deployments.
RemediationAI
Contact code-projects vendor for security update or patch version >1.0. Monitor vendor website/repository for patches.; timeline: Apply immediately upon availability (Critical severity) Workaround - Input Validation: Implement strict whitelist validation for search_box parameter. Only allow alphanumeric characters and spaces. Reject special characters including quotes, dashes, parentheses, and SQL keywords. Workaround - Parameterized Queries: Refactor /empty_rooms.php to use prepared statements/parameterized queries (PDO or MySQLi prepared statements in PHP) instead of string concatenation for all database interactions. Workaround - WAF Rules: Deploy Web Application Firewall (ModSecurity, AWS WAF, Cloudflare) with SQL injection detection rules targeting /empty_rooms.php. Block requests containing SQL keywords and union statements in search_box parameter. Workaround - Database Permissions: Configure database user account for the application with minimal privileges (SELECT-only on necessary tables, no DROP/ALTER). This limits blast radius if SQL injection succeeds. Detection/Monitoring: Implement SQL query logging and anomaly detection. Monitor for unusual query patterns, error-based SQL injection attempts, or unexpected table/column access from the application account.
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 vulnerability is rooted in CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component, 'Injection'), manifesting as SQL injection. The /empty_rooms.php file fails to properly sanitize or parameterize user-supplied input from the search_box parameter before incorporating it into SQL queries. This is a classic web application input validation failure where unsanitized user input is concatenated directly into SQL statements. The affected product is code-projects Hostel Management System, a PHP-based web application (CPE identifier would be cpe:2.3:a:code-projects:hostel_management_system:1.0:*:*:*:*:*:*:*), suggesting the vulnerability affects PHP-based database operations, likely interfacing with MySQL or similar relational databases commonly used in PHP applications.
Know when Hostel Management 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
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionCVE.org
A vulnerability was found in code-projects Hostel Management System 1.0. It has been rated as critical. Affected by this issue is some unknown functionality of the file /empty_rooms.php. The manipulation of the argument search_box leads to sql injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.
Executive ViewAI
A SQL injection vulnerability in Hostel Management System 1.0 allows unauthenticated remote attackers to compromise the database without requiring a patch. This affects any organization running this software and could lead to unauthorized data access, manipulation, or system compromise. Immediate action is required as public exploits are available and the patch has not been released by the vendor.
Implement Web Application Firewall (WAF) rules blocking SQL injection patterns in search_box parameter; restrict network access to /empty_rooms.php via IP allowlisting or VPN requirement; disable or remove the /empty_rooms.php endpoint if functionality is non-essential; enable database activity monitoring and alerting; implement input validation and prepared statements if source code modifications are possible; segment database network access; monitor for exploitation attempts in access logs.
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.
More in Hostel Management System
View allPHPGurukul Hostel Management System v2.0 allows SQL injection via the id parameter in the full-profile.php file. Rated c
A vulnerability was found in PHPGurukul Hostel Management System 2.1 in the /hostel/change-password.php file of the user
Cross-Site Scripting (XSS) and Cross-Site Request Forgery (CSRF) vulnerability exits in hostel management system 2.1 via
Cross-Site Scripting in phpgurukul Hostel Management System v2.1 user-provided complaint fields (Explain the Complaint)
A vulnerability, which was classified as critical, was found in Surya2Developer Hostel Management System 1.0. Rated medi
Cross-Site Scripting (XSS) vulnerability in Hostel Management System v2.1 allows an attacker to execute arbitrary code v
Critical SQL injection vulnerability in code-projects Hostel Management System version 1.0, specifically in the /allocat
Critical SQL injection vulnerability in PHPGurukul Hostel Management System 1.0 affecting the login functionality (/incl
A SQL injection vulnerability in A vulnerability (CVSS 7.3). Risk factors: public PoC available.
A SQL injection vulnerability in A vulnerability (CVSS 7.3). Risk factors: public PoC available.
A SQL injection vulnerability in A vulnerability (CVSS 7.3). Risk factors: public PoC available.
CVE-2025-6294 is a critical SQL injection vulnerability in code-projects Hostel Management System version 1.0, specifica
EUVD-2025-18711
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB