Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
|
| Impact | Risk signals present a moderately elevated but actionable threat profile. CVSS 7.3 with AV:N/AC:L/PR:N/UI:N indicates network-exploitable, low-complexity attack requiring no authentication—a concerning combination. However, impact ratings of L (Low) across C/I/A suggest the vulnerability does not directly compromise system availability or lead to complete data exfiltration in all scenarios. The public disclosure of exploits significantly increases real-world exploitation probability. While EPSS data is not provided, the combination of public POC availability, unauthenticated remote access, and SQL injection's natural automatable nature suggests high exploitation likelihood. Under SSVC framing: exploitation is confirmed public, the attack is automatable (SQL injection is database-agnostic), and technical impact is substantial (database compromise). This is a HIGH priority for organizations running affected versions, particularly those exposed to untrusted networks. |
| Exploit ScenarioDerived | An attacker discovers the Inventory Management System deployed on a public-facing server. They craft a malicious HTTP request to /php_action/fetchSelectedBrand.php?brandId=1' OR '1'='1 (or similar SQL injection payload). Due to lack of input sanitization, this payload is concatenated directly into a SQL query such as SELECT * FROM brands WHERE id = '1' OR '1'='1'. The query returns all brand records, allowing the attacker to enumerate the database schema. With subsequent requests using UNION-based or time-based blind SQL injection techniques, the attacker extracts sensitive data (user credentials, financial records, personal information) or executes database-level commands. Because the attack vector is network-accessible, requires no authentication, and has low complexity, an attacker with basic SQL injection knowledge can execute this attack in seconds. Public POC availability means this is likely already weaponized in automated attack tools and mass-scanning campaigns. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 15, 2026
CVE-2025-6668 is a critical SQL injection vulnerability in code-projects Inventory Management System 1.0 affecting the /php_action/fetchSelectedBrand.php endpoint via the brandId parameter. An unauthenticated remote attacker can exploit this vulnerability to read, modify, or delete database contents, with disclosed public exploits and active exploitation potential. The CVSS 7.3 score reflects moderate impact across confidentiality, integrity, and availability, though the attack requires no privileges or user interaction.
RemediationAI
Immediate actions: (1) Apply vendor patches if available from code-projects (verify at https://github.com/code-projects/ or vendor portal); (2) If patches unavailable, implement input validation on the brandId parameter using whitelisting (numeric validation if brandId is expected to be numeric); (3) Replace all dynamic SQL with parameterized prepared statements using PHP PDO or mysqli prepared statements; (4) Apply Web Application Firewall (WAF) rules to block SQL injection payloads; (5) Restrict network access to /php_action/fetchSelectedBrand.php via IP whitelisting or VPN; (6) Audit database logs for suspicious query patterns. Long-term: upgrade to a maintained inventory management system or establish a security patch management process with the vendor.
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 classified as CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component - 'Injection') manifesting as SQL injection. The affected component is a PHP backend script (/php_action/fetchSelectedBrand.php) that processes the 'brandId' parameter without proper input validation or parameterized query preparation. This is typical of legacy PHP applications that concatenate user input directly into SQL queries. The vulnerability affects code-projects Inventory Management System version 1.0, a web-based PHP application commonly deployed in small-to-medium business environments. Affected CPE would be: cpe:2.3:a:code-projects:inventory_management_system:1.0:*:*:*:*:*:*:*
Know when Inventory 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 Inventory Management System 1.0. It has been classified as critical. This affects an unknown part of the file /php_action/fetchSelectedBrand.php. The manipulation of the argument brandId leads to sql injection. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
Executive ViewAI
A publicly disclosed SQL injection vulnerability in Inventory Management System 1.0 allows remote attackers to potentially access, modify, or delete sensitive inventory data without authentication. Organizations using this system face immediate risk of data breach and operational disruption given the availability of working exploits and absence of vendor patches.
Deploy Web Application Firewall (WAF) rules to detect and block SQL injection payloads in the brandId parameter; implement network segmentation to restrict access to the application to authorized internal networks only; disable or restrict access to the /php_action/fetchSelectedBrand.php endpoint if not critical to operations; enforce database user permissions with least privilege principle to limit damage from SQL injection; enable database query logging and alerting for suspicious SQL patterns; consider running the application in a read-only database mode if feasible for your business requirements.
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 Inventory Management System
View allA vulnerability, which was classified as critical, was found in SourceCodester Inventory Management System 1.0. Rated cr
A vulnerability classified as critical was found in SourceCodester Inventory Management System 1.0. Rated critical sever
A vulnerability, which was classified as critical, has been found in SourceCodester Inventory Management System 1.0.php.
A vulnerability was found in SourceCodester Inventory Management System 1.0 and classified as critical.php. Rated critic
A vulnerability has been found in SourceCodester Inventory Management System 1.0 and classified as critical. Rated criti
Sourcecodester Free and Open Source inventory management system v1.0 is vulnerable to Incorrect Access Control. Rated hi
A vulnerability was found in SourceCodester Free and Open Source Inventory Management System 1.0. Rated high severity (C
A vulnerability, which was classified as critical, was found in SourceCodester Inventory Management System 1.0. Rated hi
A vulnerability classified as critical has been found in SourceCodester Inventory Management System 1.0. Rated critical
A vulnerability has been found in SourceCodester Inventory Management System 1.0 and classified as critical. Rated criti
A vulnerability, which was classified as critical, was found in SourceCodester Inventory Management System 1.0. Rated cr
A vulnerability was found in SourceCodester Inventory Management System 1.0 and classified as critical.php. Rated critic
EUVD-2025-19140
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB