/

CVE-2026-86180

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in PHP Task Management Login

CVE-2026-86180

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Unauthorized database access or 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 login functionality of code-projects Task Management System In PHP 1.0 allows remotely supplied email input to influence database queries. An attacker may exploit the issue without modifying the application if the vulnerable endpoint is reachable and input is processed without adequate query separation.

Affected context

The vulnerability occurs in the Login component of the PHP-based Task Management System, specifically in functionality associated with /index.php. It becomes risky when the remotely supplied email argument is incorporated into database operations without sufficient parameterization or equivalent query-boundary protections.

Exploit preconditions

  • Attack surface: The remotely reachable login functionality exposed through /index.php
  • Required access: Network access to the affected application; valid credentials may not be required
  • Trigger point: Processing of the email argument during login handling
  • Why exploitation is possible: User-controlled input may influence a database query when it is not safely separated from SQL syntax

Why this happens

The underlying bug is an injection flaw in which externally controlled login input is interpreted as part of a database command. 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 is constructing or executing SQL statements with untrusted values instead of using parameterized query interfaces and controlled data handling.

Potential impact

  • An attacker may retrieve unauthorized application or database records
  • An attacker could alter, insert, or delete database data, depending on database permissions
  • Login-related data may be exposed or manipulated
  • The application may experience service disruption
  • Compromise could extend to connected systems if excessive database privileges are available

General mitigation guidance

Mitigation generally centers on preserving a strict separation between SQL code and user-supplied data.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for every database operation
  • Avoid dynamically concatenating request parameters into SQL statements
  • Apply allowlist-based validation appropriate to the expected email format as a supplementary control
  • Use database accounts with only the privileges required by the application
  • Return generic authentication errors and avoid exposing database details
  • Apply centralized data-access policies so secure query handling is consistent across endpoints

How teams detect issues like this

Organizations can look for SQL injection risks through:

  • Static analysis rules identifying string concatenation or interpolation in database queries
  • Code review checks for request parameters passed directly to query-building logic
  • Dynamic testing of authentication and input-handling endpoints using authorized security test cases
  • Web application firewall or gateway policies that flag suspicious database-oriented input patterns
  • Database audit logs showing unusual query structure, repeated authentication probing, or unexpected data access

Automated code review and application security testing tools may help identify unsafe query construction before deployment.

Sources

SourceLink
code-projects.orgcode-projects.org/
github.comgithub.com/ahmadmarz10-hub/CVEsMarz/blob/main/Task%20Management%20System%20in%20PHP%20%E2%80%93%20SQL%20Injection%20in%20%60email%60%20Parameter.md
vuldb.comvuldb.com/cve/CVE-2026-86180
vuldb.comvuldb.com/submit/896122
vuldb.comvuldb.com/vuln/399312
vuldb.comvuldb.com/vuln/399312/cti

Frequently asked

questions

Yes. The description indicates that the vulnerable login functionality can be reached remotely, although exploitation still depends on network exposure and the application's handling of the email parameter.

Not necessarily. The login endpoint itself is the attack surface, so valid credentials may not be required; deployment controls and routing may limit access.

Use parameterized queries or prepared statements throughout the affected data-access path, supplemented by context-appropriate input validation and least-privilege database permissions.

Standardize secure database-access APIs, review all request-to-query data flows, test authentication endpoints during security assessments, and enforce static analysis and code-review policies that prohibit query construction from untrusted strings.

Find out what's already
exploitable in your codebase.