/

CVE-2026-105807

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Simple Student searchquery.php

CVE-2026-105807

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Unauthorized Database Access and 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 SQL injection vulnerability in the Simple Student Information System may allow a remote attacker to manipulate database queries through functionality associated with searchquery.php.

If attacker-controlled input reaches the database without effective parameterization or validation, the attacker could access, alter, or interfere with application data.

A SQL injection vulnerability in the Simple Student Information System may allow a remote attacker to manipulate database queries through functionality associated with searchquery.php.

If attacker-controlled input reaches the database without effective parameterization or validation, the attacker could access, alter, or interfere with application data.

Affected context

The issue affects deployments of SourceCodester Simple Student Information System 1.0 where the searchquery.php functionality processes remotely supplied search or query input. The vulnerability becomes risky when that input is incorporated into SQL statements without sufficient separation between data and query syntax.

The issue affects deployments of SourceCodester Simple Student Information System 1.0 where the searchquery.php functionality processes remotely supplied search or query input. The vulnerability becomes risky when that input is incorporated into SQL statements without sufficient separation between data and query syntax.

Exploit preconditions

  • Attack surface: The remotely accessible functionality associated with searchquery.php
  • Required access: Network access to the affected application; specific authentication requirements are not established by the available description
  • Trigger point: Processing of attacker-controlled search or query parameters
  • Why exploitation is possible: Input may be interpreted as part of a database command when query construction does not reliably use parameterized statements or equivalent protections
  • Attack surface: The remotely accessible functionality associated with searchquery.php
  • Required access: Network access to the affected application; specific authentication requirements are not established by the available description
  • Trigger point: Processing of attacker-controlled search or query parameters
  • Why exploitation is possible: Input may be interpreted as part of a database command when query construction does not reliably use parameterized statements or equivalent protections

Why this happens

The underlying bug is improper neutralization of special elements in database queries, mapping primarily to CWE-89: SQL Injection. The broader CWE-74 classification reflects the unsafe interpretation of externally supplied input as part of an application command. This occurs when application data is combined with SQL syntax instead of being passed through a trusted query interface that keeps values separate from executable statements.

The underlying bug is improper neutralization of special elements in database queries, mapping primarily to CWE-89: SQL Injection. The broader CWE-74 classification reflects the unsafe interpretation of externally supplied input as part of an application command. This occurs when application data is combined with SQL syntax instead of being passed through a trusted query interface that keeps values separate from executable statements.

Potential impact

  • An attacker may read sensitive records from the application database
  • An attacker could modify or delete stored student information
  • Database integrity and application availability may be affected
  • Exposed database privileges could enable access to additional application data
  • Error responses may reveal schema or implementation details
  • An attacker may read sensitive records from the application database
  • An attacker could modify or delete stored student information
  • Database integrity and application availability may be affected
  • Exposed database privileges could enable access to additional application data
  • Error responses may reveal schema or implementation details

General mitigation guidance

Mitigation generally focuses on removing the ability for input to alter SQL structure.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Apply allowlist-based validation appropriate to each expected search field
  • Avoid constructing SQL statements through direct string concatenation
  • Use database accounts with only the permissions required by the application
  • Return generic database errors while recording detailed diagnostics in protected logs
  • Reduce trust in client-supplied filters, sorting values, and identifiers by validating them against known server-side options

Mitigation generally focuses on removing the ability for input to alter SQL structure.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Apply allowlist-based validation appropriate to each expected search field
  • Avoid constructing SQL statements through direct string concatenation
  • Use database accounts with only the permissions required by the application
  • Return generic database errors while recording detailed diagnostics in protected logs
  • Reduce trust in client-supplied filters, sorting values, and identifiers by validating them against known server-side options

How teams detect issues like this

Organizations commonly look for SQL injection risks through:

  • Static analysis rules identifying SQL string concatenation with request parameters
  • Code review checks for database calls that do not use prepared statements
  • Dynamic application testing using benign input variations and error-based observations
  • Web application firewall or API policy rules monitoring suspicious query syntax
  • Database monitoring for abnormal query patterns, access volumes, or privilege use
  • Automated security review tools that flag flows from request parameters into SQL execution APIs

Organizations commonly look for SQL injection risks through:

  • Static analysis rules identifying SQL string concatenation with request parameters
  • Code review checks for database calls that do not use prepared statements
  • Dynamic application testing using benign input variations and error-based observations
  • Web application firewall or API policy rules monitoring suspicious query syntax
  • Database monitoring for abnormal query patterns, access volumes, or privilege use
  • Automated security review tools that flag flows from request parameters into SQL execution APIs

Sources

SourceLink
github.comgithub.com/lshhhhh318/cve/issues/1
vuldb.comvuldb.com/cve/CVE-2026-105807
vuldb.comvuldb.com/submit/992606
vuldb.comvuldb.com/vuln/413812
vuldb.comvuldb.com/vuln/413812/cti
sourcecodester.comsourcecodester.com/

Frequently asked

questions

Yes. The available description indicates that the attack can be initiated remotely through functionality associated with searchquery.php.

The authentication requirement is not specified. Network access to the affected functionality is the clearly identified prerequisite, while deployment-specific access controls may limit reachability.

Use parameterized queries or prepared statements, validate inputs according to their intended types and formats, and avoid incorporating raw request data into SQL syntax.

Combine secure database APIs with least-privilege database accounts, code review rules for query construction, automated analysis, and monitoring for anomalous database activity.

Yes. The available description indicates that the attack can be initiated remotely through functionality associated with searchquery.php.

The authentication requirement is not specified. Network access to the affected functionality is the clearly identified prerequisite, while deployment-specific access controls may limit reachability.

Use parameterized queries or prepared statements, validate inputs according to their intended types and formats, and avoid incorporating raw request data into SQL syntax.

Combine secure database APIs with least-privilege database accounts, code review rules for query construction, automated analysis, and monitoring for anomalous database activity.

Find out what's already
exploitable in your codebase.