/

CVE-2026-103232

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in RMS admin/table_booking.php

CVE-2026-103232

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Unauthorized database access or 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 SQL injection vulnerability in the Restaurant-Management-System affects the Name parameter processed by the administrative table-booking functionality. A remote attacker may be able to manipulate database queries, particularly where the vulnerable endpoint is reachable and input is incorporated without adequate parameterization.

Affected context

The weakness occurs in admin/table_booking.php, where the Name argument is processed through a database query using mysqli_query. Deployments may be exposed when this function is reachable over a network and user-controlled input reaches the query construction path without effective validation or parameter binding.

Exploit preconditions

  • Attack surface: The remotely reachable table-booking administrative endpoint
  • Required access: Network access to the affected functionality; authentication requirements are deployment-dependent
  • Trigger point: Processing of the Name parameter in admin/table_booking.php
  • Why exploitation is possible: Input may influence SQL query structure when it is handled without strict parameterization

Why this happens

The underlying bug is an injection flaw in which externally influenced input is incorporated into a SQL statement as query syntax rather than being treated solely as data. This maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection) and is also related to the broader CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component. The insecure pattern is constructing or executing database queries with untrusted values instead of using parameterized statements and controlled data access interfaces.

Potential impact

  • An attacker may read sensitive database records
  • An attacker could alter, insert, or delete application data
  • Database integrity and availability may be affected
  • Exposed credentials or secrets stored in the database could be disclosed
  • The application may experience unauthorized administrative or business-logic changes

General mitigation guidance

Mitigation generally focuses on ensuring that all database operations treat external values as data rather than executable SQL.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for every user-influenced database value
  • Apply allowlist-based validation appropriate to the expected field format
  • Centralize database access through APIs that do not permit ad hoc query concatenation
  • Enforce least-privilege permissions for the application database account
  • Limit database credentials and sensitive records accessible to the affected function
  • Avoid relying on escaping alone as the primary SQL injection defense

How teams detect issues like this

Organizations can identify similar weaknesses through:

  • Static analysis rules for SQL string concatenation and unparameterized mysqli_query calls
  • Code review checks for request parameters flowing into database statements
  • Testing that verifies prepared statements are used at data-access boundaries
  • Runtime monitoring for anomalous query errors, unexpected query patterns, and unusual database access
  • Policy enforcement requiring parameterized queries in application code and security testing pipelines

Automated code review and software composition analysis tools may help flag suspicious database-query construction patterns, but findings should be validated against the actual data flow.

Sources

SourceLink
github.comgithub.com/AdithyaYelloju/Restaurant-Management-System/
github.comgithub.com/AdithyaYelloju/Restaurant-Management-System/issues/8
vuldb.comvuldb.com/cve/CVE-2026-103232
vuldb.comvuldb.com/submit/955081
vuldb.comvuldb.com/vuln/411926
vuldb.comvuldb.com/vuln/411926/cti

Frequently asked

questions

The reported weakness is remotely exploitable when the affected table-booking functionality is network-accessible and request input can reach the vulnerable query path. Authentication and authorization requirements depend on the deployment configuration.

The available description does not establish a universal authentication requirement. The decisive factors are endpoint exposure and whether an attacker can reach the relevant function with sufficient application access.

Replace dynamically constructed SQL with parameterized queries or prepared statements, then add narrowly scoped input validation and least-privilege database permissions as defense in depth.

Enforce parameterized-query policies, review data flows from request parameters to database APIs, test authorization boundaries, and monitor database activity for unexpected access patterns.

Find out what's already
exploitable in your codebase.