/

CVE-2026-112152

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Criminal Management Search

CVE-2026-112152

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 Criminal-Management-System search page allows remote attackers to influence database queries through the Search parameter.

If the parameter is incorporated into a mysqli_query call without adequate parameterization or validation, an attacker may read, alter, or otherwise interact with backend data.

A SQL injection vulnerability in the Criminal-Management-System search page allows remote attackers to influence database queries through the Search parameter.

If the parameter is incorporated into a mysqli_query call without adequate parameterization or validation, an attacker may read, alter, or otherwise interact with backend data.

Affected context

The vulnerability occurs in the Search Page, specifically in Officers/searchOff.php, where the Search argument is used by the mysqli_query function. It becomes risky when remotely supplied search input reaches SQL construction or execution without a sufficiently isolated query interface and appropriate validation.

The vulnerability occurs in the Search Page, specifically in Officers/searchOff.php, where the Search argument is used by the mysqli_query function. It becomes risky when remotely supplied search input reaches SQL construction or execution without a sufficiently isolated query interface and appropriate validation.

Exploit preconditions

  • Attack surface: The remotely accessible Search Page
  • Required access: Access to submit requests to the search functionality; authentication requirements may depend on deployment configuration
  • Trigger point: Processing of the Search parameter in Officers/searchOff.php
  • Why exploitation is possible: User-controlled input may influence a database query through mysqli_query without reliable separation between data and SQL instructions
  • Attack surface: The remotely accessible Search Page
  • Required access: Access to submit requests to the search functionality; authentication requirements may depend on deployment configuration
  • Trigger point: Processing of the Search parameter in Officers/searchOff.php
  • Why exploitation is possible: User-controlled input may influence a database query through mysqli_query without reliable separation between data and SQL instructions

Why this happens

The underlying bug is an SQL injection condition mapped to CWE-89, with CWE-74 describing the broader failure to neutralize special elements in an interpreted command or query language.

The insecure pattern occurs when application input is concatenated into SQL statements or otherwise treated as query syntax. Without parameterized queries, controlled query construction, and suitable input handling, database interpretation can extend beyond the intended search operation.

The underlying bug is an SQL injection condition mapped to CWE-89, with CWE-74 describing the broader failure to neutralize special elements in an interpreted command or query language.

The insecure pattern occurs when application input is concatenated into SQL statements or otherwise treated as query syntax. Without parameterized queries, controlled query construction, and suitable input handling, database interpretation can extend beyond the intended search operation.

Potential impact

  • An attacker may read sensitive records from the application database
  • An attacker could alter, delete, or insert database content
  • The application may disclose authentication or authorization-related information
  • Database availability can be affected through resource-intensive or destructive queries
  • Compromised data could enable further attacks against users or connected services
  • An attacker may read sensitive records from the application database
  • An attacker could alter, delete, or insert database content
  • The application may disclose authentication or authorization-related information
  • Database availability can be affected through resource-intensive or destructive queries
  • Compromised data could enable further attacks against users or connected services

General mitigation guidance

Mitigation generally focuses on keeping untrusted input separate from SQL syntax and reducing the privileges available to the application database account.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for every user-influenced database operation
  • Apply allowlist-based validation appropriate to the intended search format
  • Avoid constructing SQL through string concatenation or interpolation
  • Use database accounts with only the permissions required by the application
  • Return generic database errors and avoid exposing query details to clients
  • Enforce authentication and authorization around sensitive search functions
  • Treat client-side validation as supplementary rather than a trust boundary

Mitigation generally focuses on keeping untrusted input separate from SQL syntax and reducing the privileges available to the application database account.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for every user-influenced database operation
  • Apply allowlist-based validation appropriate to the intended search format
  • Avoid constructing SQL through string concatenation or interpolation
  • Use database accounts with only the permissions required by the application
  • Return generic database errors and avoid exposing query details to clients
  • Enforce authentication and authorization around sensitive search functions
  • Treat client-side validation as supplementary rather than a trust boundary

How teams detect issues like this

Organizations commonly identify SQL injection risks through:

  • Static analysis rules for string concatenation or interpolation near database execution APIs
  • Code review checks covering request parameters, query construction, and database privilege assignments
  • Dynamic testing of search and filtering endpoints using safe, controlled input variations
  • Web-application firewall or gateway policies that detect suspicious query-language patterns
  • Database audit logging for unexpected query shapes, excessive errors, and unusual access patterns

Automated security review tools can help flag data-flow paths from HTTP parameters to SQL execution functions, but findings should be verified against the application's query construction and authorization logic.

Organizations commonly identify SQL injection risks through:

  • Static analysis rules for string concatenation or interpolation near database execution APIs
  • Code review checks covering request parameters, query construction, and database privilege assignments
  • Dynamic testing of search and filtering endpoints using safe, controlled input variations
  • Web-application firewall or gateway policies that detect suspicious query-language patterns
  • Database audit logging for unexpected query shapes, excessive errors, and unusual access patterns

Automated security review tools can help flag data-flow paths from HTTP parameters to SQL execution functions, but findings should be verified against the application's query construction and authorization logic.

Sources

SourceLink
github.comgithub.com/vraj404/Criminal-Management-System/
github.comgithub.com/vraj404/Criminal-Management-System/issues/4
vuldb.comvuldb.com/cve/CVE-2026-112152
vuldb.comvuldb.com/submit/1014022
vuldb.comvuldb.com/vuln/422259
vuldb.comvuldb.com/vuln/422259/cti

Frequently asked

questions

Yes. The reported attack surface is the remotely accessible Search Page, although practical exploitability also depends on routing, authentication, and other deployment controls.

An attacker needs to submit input to the affected search functionality. If the page requires authentication, an account with access to that page may be necessary.

Use parameterized queries or prepared statements so the Search value is handled strictly as data, together with suitable validation and constrained database permissions.

Enforce secure database-access patterns in code review and static analysis, test all input-driven query paths, and monitor database activity for unexpected query behavior.

Yes. The reported attack surface is the remotely accessible Search Page, although practical exploitability also depends on routing, authentication, and other deployment controls.

An attacker needs to submit input to the affected search functionality. If the page requires authentication, an account with access to that page may be necessary.

Use parameterized queries or prepared statements so the Search value is handled strictly as data, together with suitable validation and constrained database permissions.

Enforce secure database-access patterns in code review and static analysis, test all input-driven query paths, and monitor database activity for unexpected query behavior.

Find out what's already
exploitable in your codebase.