/

CVE-2026-92366

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Matrimonial System Search

CVE-2026-92366

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Unauthorized Database Access and 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 Matrimonial System's regular search functionality may allow remotely supplied search parameters to influence database queries. An attacker who can reach the search endpoint could potentially read, alter, or interfere with database information, depending on database permissions and application behavior.

Affected context

The issue occurs in code-projects Matrimonial System 1.0, within the regular search functionality exposed through /search.php. It may become risky when parameters such as sex, mothertongue, maritialstatus, country, state, religion, agemin, or agemax are incorporated into database queries without adequate separation between data and SQL logic. Exploitability depends on the endpoint being reachable and the application's database account having meaningful permissions.

Exploit preconditions

  • Attack surface: The remotely accessible regular-search endpoint at /search.php
  • Required access: Access to submit requests to the search function; authentication may not be required if the endpoint is publicly available
  • Trigger point: Processing of one or more search parameters
  • Why exploitation is possible: Input may be incorporated into SQL statements without effective parameterization or equivalent query-boundary controls

Why this happens

The underlying bug is an injection-prone query construction pattern in which externally controlled search values can affect SQL syntax or query behavior. This maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection) and is also related to CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component. The insecure pattern occurs when application input is treated as trusted query logic rather than as a bound data value.

Potential impact

  • An attacker may retrieve unauthorized matrimonial or account data.
  • An attacker could modify or delete database records if the database account permits those operations.
  • The application may experience authentication, search, or data-integrity failures.
  • Sensitive database metadata or stored credentials could be exposed.
  • The vulnerability may support further compromise if database privileges or connected services are excessive.

General mitigation guidance

Mitigation generally focuses on ensuring that user-controlled search values remain data throughout query processing.

Common defensive patterns include:

  • Using parameterized queries or prepared statements for every search condition.
  • Applying allowlisted validation for enumerated fields and bounded numeric ranges.
  • Avoiding dynamic SQL construction when fixed query structures can be used.
  • Assigning the application database account only the permissions required for normal search operations.
  • Limiting database exposure and protecting sensitive records through authorization checks.
  • Treating client-side validation as supplementary rather than as a security boundary.

How teams detect issues like this

Organizations commonly detect SQL injection risks through:

  • Static analysis rules identifying string concatenation or interpolation in SQL statements.
  • Code review checks for database calls that receive raw request parameters.
  • Dynamic testing of search endpoints using non-destructive injection test cases in authorized environments.
  • Web application firewall or gateway policies that identify anomalous query patterns while avoiding reliance on filtering alone.
  • Database monitoring for unexpected errors, unusual query structures, excessive reads, or unauthorized data changes.
  • Automated security testing and code review tools that flag unparameterized query construction.

Sources

SourceLink
code-projects.orgcode-projects.org/
github.comgithub.com/KaranParelkar/Matrimonial_system_search_sqli/blob/main/sqli%20sex%20parameter/Readme.md
github.comgithub.com/KaranParelkar/Matrimonial_system_search_sqli/blob/main/sqli_mothertongue_parameter/Readme.md
vuldb.comvuldb.com/cve/CVE-2026-92366
vuldb.comvuldb.com/submit/935075
vuldb.comvuldb.com/submit/935112
vuldb.comvuldb.com/submit/935144
vuldb.comvuldb.com/submit/935583
vuldb.comvuldb.com/submit/935715
vuldb.comvuldb.com/submit/935749
vuldb.comvuldb.com/submit/935795
vuldb.comvuldb.com/submit/935924
vuldb.comvuldb.com/vuln/405452
vuldb.comvuldb.com/vuln/405452/cti

Frequently asked

questions

Yes, the reported attack surface is a remotely accessible search endpoint. Practical impact depends on network exposure, authentication requirements, and database permissions.

Not necessarily. If regular search is available without authentication, an attacker may be able to submit requests anonymously; otherwise, access to an authorized session may be required.

Use parameterized queries or prepared statements, validate values against expected types and ranges, and avoid constructing SQL syntax from request data.

Combine secure database APIs with least-privilege database accounts, focused code review, static analysis, authorized dynamic testing, and monitoring for anomalous database activity.

Find out what's already
exploitable in your codebase.