/

CVE-2026-105169

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Food-Waste Delivery Handler

CVE-2026-105169

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database compromise and application data manipulation

Severity:

HIGH RISK

(7.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A remotely reachable SQL injection flaw in the food-waste-management-system's Take Order Handler allows attacker-controlled values in order_id or delivery_person_id to influence database queries. An attacker who can reach the affected delivery endpoint may be able to read, alter, or disrupt application data.

Affected context

The vulnerability occurs in delivery/delivery.php within the Take Order Handler when request parameters such as order_id or delivery_person_id are incorporated into database operations without sufficient separation between data and SQL syntax. Risk is greatest when the endpoint is remotely accessible and does not consistently validate, constrain, and safely bind these inputs.

Exploit preconditions

  • Attack surface: The remotely accessible delivery endpoint
  • Required access: Network access to the affected application; authentication requirements depend on deployment controls
  • Trigger point: Processing of the order_id or delivery_person_id request arguments
  • Why exploitation is possible: Attacker-controlled input can affect SQL query construction when parameter handling does not reliably use safe query binding and validation

Why this happens

The underlying bug is an injection flaw in which externally supplied values are allowed to influence SQL command structure. This maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), with CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component describing the broader injection pattern. The insecure design treats request data as part of a database statement rather than strictly as typed, bound values.

Potential impact

  • An attacker may read unauthorized database records
  • An attacker could modify or delete application data
  • Database integrity and order-processing workflows may be disrupted
  • Sensitive information could be exposed
  • The application may be used as a pivot toward other connected services, depending on database privileges

General mitigation guidance

Mitigation generally focuses on ensuring that request data cannot alter SQL statement structure.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Apply allowlisted, type-aware validation to identifier fields such as order and personnel IDs
  • Avoid constructing SQL statements through string concatenation or interpolation
  • Limit database accounts to the minimum permissions required by the application
  • Separate database credentials and access by function where practical
  • Return generic database errors and avoid exposing query details
  • Enforce secure-by-default input handling through shared data-access abstractions

How teams detect issues like this

Organizations can look for SQL injection risks through:

  • Static analysis rules that identify string-built SQL statements using request parameters
  • Code review checks for missing prepared statements, weak identifier validation, and duplicated query-building logic
  • Runtime monitoring for abnormal query errors, unexpected syntax patterns, or unusual access to records
  • Web application firewall or API policy rules that detect suspicious input patterns while not replacing safe query construction
  • CI policies requiring parameterized database access and security testing of remotely exposed handlers

Automated code review and software composition tools may help identify related patterns, but findings should be validated against the actual data-access flow.

Sources

SourceLink
github.comgithub.com/kishor-23/food-waste-management-system/
github.comgithub.com/kishor-23/food-waste-management-system/issues/9
vuldb.comvuldb.com/cve/CVE-2026-105169
vuldb.comvuldb.com/submit/970275
vuldb.comvuldb.com/vuln/413401
vuldb.comvuldb.com/vuln/413401/cti

Frequently asked

questions

Yes. The affected handler is described as remotely reachable, although authentication, authorization, and network exposure may limit practical exploitability.

The attacker needs network access to the delivery endpoint and must be able to submit values that reach the vulnerable order or delivery-person parameter. Whether an account is required depends on the application's access controls.

Use parameterized queries or prepared statements, validate identifier values according to strict expected types, and ensure the database account has only necessary privileges.

Standardize database access through safe abstractions, prohibit SQL string concatenation with request data, add static and dynamic security checks to CI, and review authorization and input-validation boundaries together.

Find out what's already
exploitable in your codebase.