/

CVE-2026-85225

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Doctor Appointment Login Page

CVE-2026-85225

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database compromise, authentication bypass, 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 high-severity SQL injection vulnerability affects the patient login functionality of code-projects Doctor Appointment System 1.0. An attacker who can reach the login endpoint remotely may manipulate the email input to alter database queries, potentially exposing or changing application data.

Affected context

The vulnerability occurs in the patient login workflow at /patient_login.php, where the email argument is processed in a database-backed request. Deployments are at risk when this input reaches query construction without robust parameterization and when the endpoint is accessible over a network.

Exploit preconditions

  • Attack surface: Remote web application endpoint
  • Required access: Network access to the patient login function; a valid account is not necessarily required
  • Trigger point: Processing of the email parameter in /patient_login.php
  • Why exploitation is possible: User-controlled input may influence database query structure instead of being handled solely as a value

Why this happens

The underlying bug is a failure to separate SQL instructions from untrusted input. When application code incorporates the email value into a database query without dependable parameter binding or equivalent safeguards, attackers may influence query behavior. This maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection); the broader CWE-74 classification covers injection into command or query interpreters.

Potential impact

  • An attacker may bypass intended authentication checks
  • Sensitive patient or appointment records could be disclosed
  • Database records could be modified or deleted
  • Application integrity and availability could be affected
  • Database credentials or connected services could be exposed depending on permissions

General mitigation guidance

Mitigation generally centers on treating all request parameters as untrusted data and preventing them from changing query structure.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for every database operation
  • Apply allowlist-based validation appropriate to the expected email format
  • Avoid building SQL statements through string concatenation or interpolation
  • Use database accounts with only the permissions required by the application
  • Return generic authentication errors and avoid exposing database details
  • Centralize database access controls and apply secure-by-default query APIs

How teams detect issues like this

Detection can include static analysis for SQL strings assembled with request parameters, unsafe string concatenation near database APIs, and database calls that lack parameter binding. Code reviews should examine authentication handlers, input validation boundaries, error handling, and database account privileges. Web application monitoring and database audit logs can help identify abnormal query errors, unexpected authentication patterns, and unusual record access. Automated security scanning and policy checks can provide additional coverage without replacing manual review.

Sources

SourceLink
code-projects.orgcode-projects.org/
github.comgithub.com/ahmadmarz10-hub/CVEsMarz/blob/main/Time-Based%20Blind%20SQL%20Injection%20in%20Doctor%20Appointment%20System%20email%20Parameter.md
vuldb.comvuldb.com/cve/CVE-2026-85225
vuldb.comvuldb.com/submit/894405
vuldb.comvuldb.com/vuln/398424
vuldb.comvuldb.com/vuln/398424/cti

Frequently asked

questions

Yes. The affected patient login endpoint is described as remotely reachable, so exploitation may be possible over the network when the vulnerable input processing is exposed.

Not necessarily. Because the affected function is a login endpoint, the key requirement is access to the endpoint and the ability to submit the relevant input; deployment-specific controls may change the practical scope.

Use parameterized queries or prepared statements and ensure that request values cannot alter SQL structure. Input validation should supplement, not replace, query parameterization.

Enforce secure database access patterns through shared data-access libraries, static analysis, code review, least-privilege database accounts, and runtime monitoring for suspicious query behavior.

Find out what's already
exploitable in your codebase.