/

CVE-2026-85403

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Doctor Appointment System

CVE-2026-85403

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 high-severity SQL injection vulnerability in the Doctor Appointment System 1.0 may allow remote attackers to influence database queries through the firstname parameter handled by /contactus.php.

The issue becomes risky when attacker-controlled input reaches database operations without effective parameterization or validation.

Affected context

The vulnerability affects deployments of code-projects Doctor Appointment System 1.0 where the /contactus.php endpoint processes the firstname argument and incorporates it into database-related operations. Exploitation depends on the endpoint being reachable by an attacker and on insufficient separation between user input and SQL query structure.

Exploit preconditions

  • Attack surface: The remotely accessible /contactus.php endpoint
  • Required access: Network access to the application; authentication requirements may depend on deployment configuration
  • Trigger point: Processing of the firstname request parameter
  • Why exploitation is possible: Input may reach SQL query construction without reliable parameterization or equivalent query-safety controls

Why this happens

The underlying bug is an injection flaw in which externally controlled input is treated as part of a database command rather than as data. When application code builds SQL statements through unsafe concatenation or equivalent patterns, an attacker may alter the intended query logic. This maps primarily to CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection) and more broadly to CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component.

Potential impact

  • An attacker may read unauthorized database records
  • Sensitive user or appointment information could be exposed
  • Database records could be modified or deleted
  • Application authentication or authorization data could be affected
  • The application may experience availability or integrity impacts

General mitigation guidance

Mitigation generally focuses on ensuring that user input cannot alter SQL statement structure.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Apply allowlist-based validation appropriate to the expected input format
  • Avoid dynamically concatenating request values into SQL strings
  • Use database accounts with only the permissions required by the application
  • Keep sensitive database operations separated from public-facing request handlers
  • Apply consistent server-side validation rather than relying only on client-side controls

How teams detect issues like this

Organizations commonly detect SQL injection risks through:

  • Static analysis rules identifying string concatenation or interpolation in SQL execution paths
  • Code review checks for request parameters passed directly to database APIs
  • Dynamic application testing that evaluates unexpected database-query behavior using controlled, non-destructive inputs
  • Web application firewall policies for suspicious injection patterns, treated as defense in depth
  • Database activity monitoring for anomalous queries, access patterns, or privilege use

Automated code review and software composition analysis tools may help identify unsafe query construction, but findings should be validated against the application's data-access design.

Sources

SourceLink
code-projects.orgcode-projects.org/
github.comgithub.com/lccc-t/CVE/issues/6
vuldb.comvuldb.com/cve/CVE-2026-85403
vuldb.comvuldb.com/submit/894881
vuldb.comvuldb.com/vuln/398546
vuldb.comvuldb.com/vuln/398546/cti

Frequently asked

questions

Yes, the reported issue is associated with a remotely reachable web endpoint. Exploitability still depends on network exposure, request routing, and any access controls applied by the deployment.

An attacker generally needs the ability to send requests to /contactus.php. Whether authentication is required depends on how the application is configured and exposed.

Use parameterized queries or prepared statements, validate inputs on the server, and ensure database accounts operate with least privilege.

Standardize safe data-access APIs, prohibit dynamic SQL construction from request data, review database calls during code review, and monitor application and database activity for anomalous behavior.

Find out what's already
exploitable in your codebase.