CVE-2026-138218: SQL Injection in Stock Management
High CVSS (7.3) vulnerability; prioritize internet-facing assets.
TL;DR - CVE-2026-138218 is a CVSS 7.3 remote SQL injection affecting itsourcecode Stock Management System 1.0. - The vulnerable endpoint is
/orders.php?o=editOrd, with theiparameter reportedly injectable. - Public disclosure exists, but exploitation in the wild is unconfirmed; no verified fixed version is available.
CVE-2026-138218 is a high-severity SQL injection vulnerability affecting version 1.0 of itsourcecode Stock Management System. The reported issue involves the remotely reachable i parameter on /orders.php?o=editOrd. Organizations should prioritize asset discovery, access restriction, logging, and vendor remediation.
For background on application security testing, see our DAST glossary guide. For related vulnerability analysis, review CVE-2026-96655.
Vulnerability at a Glance
| Field | Details |
|---|---|
| CVE | CVE-2026-138218 |
| Product | itsourcecode Stock Management System |
| Affected version | 1.0 |
| Vulnerable component | /orders.php?o=editOrd |
| Parameter | i |
| Vulnerability type | SQL injection |
| CWE | CWE-89; third-party indexing also associates CWE-74 |
| CVSS | 7.3 High |
| Attack vector | Network / remote |
| Authentication required | Not indicated; treat as potentially unauthenticated |
| Patch available | No verified patch or fixed version identified |
| Public disclosure | Yes, according to the NVD description |
| Confirmed active exploitation | No |
| CISA KEV status | Not listed |
CVE-2026-138218 affects version 1.0 of itsourcecode Stock Management System. The reported attack surface is the order-editing route exposed through /orders.php, using the o=editOrd operation and the i query parameter. The available vulnerability record identifies remote exploitation and does not indicate an authentication requirement.
The CVSS score is high, but the exact vector string was not returned in the available NVD tool output. Defenders should confirm the authoritative vector before importing this issue into automated risk-scoring or remediation systems. Without a verified vendor fix, exposed deployments require compensating controls and investigation.
Analyst’s Take: The immediate priority is exposure, not proof of active exploitation. Because the endpoint and parameter are known but no fixed version is verified, organizations should first identify reachable deployments, restrict access, and review logs while seeking vendor remediation.
What Is This Vulnerability?
CVE-2026-138218 is reported as a SQL injection vulnerability. The vulnerable input is the i parameter supplied to the order-editing endpoint:
/orders.php?o=editOrd&i=<input>
The available information indicates that attacker-controlled input can influence a database query without sufficient protection. The likely security failure is the use of unparameterized SQL, inadequate escaping, insufficient server-side validation, or a combination of these conditions. The exact source code and database statement were not available in the retrieved references, so the precise query construction cannot be confirmed.
If the endpoint is reachable without authentication, an attacker may be able to submit crafted values remotely. Depending on the database account’s privileges and the application’s error handling, SQL injection could enable unauthorized reading, modification, or deletion of records. It could also disrupt inventory and order operations or expose credentials and other application data stored in the database.
Potential impact depends on the database engine, query context, account permissions, network placement, and application configuration. The CVE record supports the existence of a remotely exploitable SQL injection, but it does not establish the exact database technology, exploitable query syntax, or whether operating-system-level execution is possible.
Who Is Affected?
The specifically identified affected product is itsourcecode Stock Management System version 1.0. The affected functionality is the order-editing path associated with /orders.php?o=editOrd, and the reported injection point is the i parameter.
No additional affected versions were identified in the available NVD result or retrieved primary reference material. The record does not establish whether versions newer than 1.0 are vulnerable, whether unofficial modified releases contain the same code, or whether a vendor-maintained branch has already corrected the issue.
Organizations should inventory both production and forgotten deployments. Small business applications are often installed on shared hosting, internal servers, test systems, or internet-facing virtual machines that are not present in central asset inventories. Search web-server configuration, document roots, package archives, and database backups for the application name and the orders.php file.
A deployment should be considered exposed if an untrusted user can reach the application server and request the vulnerable route, even if the application is nominally intended for authenticated users. Until authentication requirements are verified through configuration and testing, assume that the endpoint may be reachable by unauthenticated remote clients.
CVSS Score Breakdown
CVE-2026-138218 has a reported CVSS base score of 7.3, classified as High. The available attack characteristics indicate a network-accessible vulnerability, remote exploitation, no authentication requirement indicated in the returned record, and impacts to confidentiality, integrity, and availability.
The exact CVSS vector string was not available in the supplied NVD tool output. Therefore, the following interpretation describes the reported characteristics without asserting an unverified vector:
| Component | Available assessment |
|---|---|
| Attack vector | Network |
| Attack complexity | Not independently confirmed from the available data |
| Privileges required | No authentication requirement is indicated |
| User interaction | Not independently confirmed |
| Confidentiality | Potential database disclosure |
| Integrity | Potential data modification |
| Availability | Potential disruption or deletion of data |
| Scope | Not independently confirmed |
The score should not be interpreted as proof that every deployment has identical risk. A database account restricted to a single application schema may limit impact, while excessive database privileges can substantially increase it. Internet exposure, monitoring quality, backup integrity, and the sensitivity of order and inventory records also affect operational severity.
Before using the score for SLA automation, confirm the official CVSS vector in the authoritative CVE record. If the vector remains unavailable, retain the 7.3 score as reported but document the missing vector as a data-quality limitation.
Exploitation Status
The NVD description states that “The exploit has been made public and could be used.” This confirms public disclosure of exploit-related information, but it does not independently confirm that a complete, reliable proof of concept is available or that exploitation has occurred against real systems.
A GitHub issue is listed as a reference:
https://github.com/bw2912/submit/issues/2
The retrieved content did not provide enough reliably verifiable detail to confirm exact exploit steps or establish that the issue contains a working end-to-end PoC. Accordingly, defenders should classify the status as public disclosure confirmed, complete working PoC not independently verified.
CVE-2026-138218 is not listed in the CISA Known Exploited Vulnerabilities catalog based on the supplied lookup. There is no CISA date-added value, remediation deadline, required action, or ransomware-campaign flag for this CVE. In-the-wild exploitation is not confirmed. The absence of a KEV listing does not prove that exploitation has never occurred; it only means CISA has not included the issue in that catalog at the time checked.
Because the vulnerable endpoint is a conventional web route and the parameter is known, internet-facing deployments should not wait for KEV inclusion before applying access restrictions and reviewing logs. Public availability of vulnerability information can increase scanning even when confirmed exploitation data is absent.
Technical Notes
The vulnerable request pattern is:
GET /orders.php?o=editOrd&i=<value> HTTP/1.1
Host: example.invalid
Defensive testing should be performed only against systems the organization owns or is explicitly authorized to assess. A safe inventory check that does not attempt injection is to identify whether the route exists and record its response behavior:
curl -sk -o /dev/null -D - \
'https://app.example.invalid/orders.php?o=editOrd&i=1'
Capture the status code, response headers, body length, and server-side log entry. Do not use exploit payloads against production systems without an approved testing plan.
For database hardening, verify the application account’s privileges using the database platform’s standard administrative tooling. The exact commands depend on the database engine, which was not identified in the available CVE data. Avoid making unverified database-specific changes that could interrupt order processing.
How to Detect It
Start with asset discovery. Identify servers hosting orders.php, confirm the installed Stock Management System version, and determine whether the application is reachable from the internet or untrusted internal networks. Review reverse-proxy, web-server, and application logs for requests containing both the order-editing operation and suspicious values in i.
Useful indicators include SQL metacharacters, encoded quotes, comments, union expressions, Boolean conditions, and time-delay functions. These indicators are not proof of exploitation: legitimate traffic, security scanners, and false positives can produce similar patterns. Correlate requests with HTTP status codes, response sizes, latency, database errors, and subsequent changes to orders or inventory.
A generic search pattern for web-server logs can help identify suspicious requests:
grep -Eai \
'/orders\\.php(\\?|%3f).*o=editOrd.*([?&]|%26)i=.*(%27|%22|'\''|"|%23|%2d%2d|--|union|select|sleep|benchmark|waitfor|or%20[0-9])' \
/var/log/apache2/access.log /var/log/nginx/access.log
The exact log format varies, and URL decoding may be necessary before searching. A SIEM query should normalize query strings and inspect both encoded and decoded values. For example, a platform-neutral detection concept is:
http.path contains "/orders.php"
AND http.query contains "o=editOrd"
AND (
http.query contains "'" OR
http.query contains "%27" OR
http.query contains "--" OR
http.query contains "%2d%2d" OR
lower(http.query) contains " union " OR
lower(http.query) contains "select" OR
lower(http.query) contains "sleep(" OR
lower(http.query) contains "benchmark(" OR
lower(http.query) contains "waitfor"
)
Review database logs for errors or unusual queries occurring immediately after matching web requests. Also check for changes to order records, inventory quantities, user accounts, or application configuration. If suspicious activity is found, preserve web and database logs, isolate the application where practical, rotate exposed credentials, and begin an incident investigation rather than simply deleting suspicious requests.
Mitigation and Patching
No verified fixed version was identified in the available references. The affected version is 1.0, but no supported upgrade target can be named responsibly. Do not assume that a later version is safe without confirmation from the vendor or a code review demonstrating that the vulnerable query path has been corrected.
The preferred permanent fix is a vendor-supported release that uses parameterized database queries and strict server-side validation for the i parameter. Developers or maintainers should replace string-concatenated SQL with prepared statements, validate the expected identifier type and range, reject unexpected input, and ensure that database errors are not returned to clients. These measures should be applied at the server side; browser-side validation is not a security control.
Until a verified update exists, restrict access to the application. For example, an Apache deployment can limit the application to an administrative network:
<LocationMatch "^/orders\\.php$">
Require ip 192.0.2.0/24
</LocationMatch>
The example network is documentation-only and must be replaced with the organization’s actual management range. A reverse proxy, VPN, firewall allowlist, or authenticated access gateway may be more appropriate. If the application does not need external access, remove its public route entirely.
A temporary Nginx rule can block requests containing the identified operation and parameter, but this is a compensating control rather than a code fix:
if ($request_uri ~* "/orders\\.php\\?[^ ]*o=editOrd[^ ]*&[^ ]*i=") {
return 403;
}
Test configuration changes carefully because query-string ordering, URL encoding, and legitimate application workflows vary. Blocking obvious SQL keywords alone is not reliable and can be bypassed through encoding or alternate syntax.
Apply least privilege to the application’s database account. It should have only the permissions required for normal operation, with no unnecessary administrative, file-writing, or cross-database privileges. Review database credentials, web-server secrets, and application configuration if exploitation is suspected. Restore affected data from known-good backups when integrity cannot be established.
References
- NVD: CVE-2026-138218
- GitHub issue listed as a CVE reference
- VulDB CVE entry
- VulDB submission record
- VulDB vulnerability entry
- itsourcecode
- CISA Known Exploited Vulnerabilities Catalog
CVE-2026-138218 is a high-severity SQL injection affecting itsourcecode Stock Management System 1.0. Organizations should begin with asset discovery and access restriction for /orders.php?o=editOrd, then review relevant logs and database activity. Because no fixed version is verified, vendor engagement and least-privilege database controls should follow immediately rather than relying on an assumed upgrade.
This article may contain affiliate links. We earn a commission on qualifying purchases at no extra cost to you.