/

CVE-2026-103230

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Restaurant Order Placement

CVE-2026-103230

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database compromise and unauthorized data access

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 SQL injection vulnerability in the Restaurant-Management-System's order placement workflow allows remotely supplied id or name values to influence database queries.

When these values are processed without adequate query separation or validation, an attacker may read, alter, or otherwise interfere with database-backed application data.

Affected context

The vulnerability occurs in the Order Placement component, specifically in User/ord.php, where the mysqli_query function processes request-related id and name arguments. It is relevant when externally controlled values reach database query construction without reliable parameterization or equivalent safeguards.

Exploit preconditions

  • Attack surface: Remotely accessible order placement functionality
  • Required access: Access to the application's order placement endpoint; authentication requirements depend on deployment configuration
  • Trigger point: Processing of the id or name arguments in User/ord.php
  • Why exploitation is possible: User-controlled input can influence SQL query construction before being safely separated from query syntax

Why this happens

The underlying bug is an injection flaw in which data supplied through application arguments is incorporated into a database query without sufficient separation between SQL instructions and values.

This maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection). CWE-74 is also relevant because the broader issue involves placing untrusted input into an interpreter's command language.

Potential impact

  • An attacker may retrieve unauthorized application or customer data
  • Database records could be modified, deleted, or corrupted
  • Authentication or authorization data may be exposed or altered
  • Application availability could be affected through disruptive database operations
  • Sensitive information could be used to support further attacks

General mitigation guidance

Mitigation generally focuses on preventing untrusted values from becoming part of SQL syntax.

Common defensive patterns include:

  • Using parameterized queries or prepared statements for all database operations
  • Applying allowlist validation for identifiers and expected value formats
  • Avoiding dynamic query construction where fixed query structures are sufficient
  • Limiting database accounts to the minimum required permissions
  • Separating database credentials and restricting access to sensitive tables
  • Returning generic database errors while recording useful details in protected logs

These controls reduce reliance on input filtering alone and help contain impact if another application weakness is present.

How teams detect issues like this

Organizations commonly detect SQL injection risks through:

  • Static analysis rules for string concatenation or interpolation used in SQL statements
  • Code review checks for database APIs receiving request parameters directly
  • Dynamic testing of remotely accessible parameters with non-destructive injection probes
  • Web application firewall or gateway policies for suspicious SQL metacharacter patterns
  • Monitoring for unusual query errors, access patterns, bulk reads, or unexpected data changes

Automated review tools may help identify unsafe query construction, but findings should be validated against actual data flows and database APIs.

Sources

SourceLink
github.comgithub.com/AdithyaYelloju/Restaurant-Management-System/
github.comgithub.com/AdithyaYelloju/Restaurant-Management-System/issues/6
vuldb.comvuldb.com/cve/CVE-2026-103230
vuldb.comvuldb.com/submit/955079
vuldb.comvuldb.com/vuln/411923
vuldb.comvuldb.com/vuln/411923/cti

Frequently asked

questions

Yes. The affected order placement functionality is described as remotely reachable, although practical exploitability depends on routing, authentication, and deployment controls.

Not necessarily. The required access depends on whether the order placement endpoint is publicly available or protected by authentication and authorization.

Use parameterized queries or prepared statements so supplied values remain data rather than SQL syntax. Validate expected formats as an additional defense.

Apply secure database access patterns consistently, use least-privilege database accounts, review input-to-query data flows, and include SQL injection testing in code review and CI security checks.

Find out what's already
exploitable in your codebase.