/

CVE-2026-90841

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in PHPGurukul Report Endpoint

CVE-2026-90841

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 affects the Report Endpoint in PHPGurukul Blood Donor Management System 1.0. An attacker who can reach the endpoint may manipulate the fromdate or todate parameters to alter database queries and potentially access or modify backend data.

Affected context

The vulnerability occurs in the administrative reporting functionality implemented by /application/controllers/admin/Report.php. It may affect deployments where the Report Endpoint is remotely reachable and date parameters are incorporated into database queries without sufficient validation, parameterization, or contextual escaping. The practical exposure depends on authentication controls, endpoint access, and the privileges of the database account used by the application.

Exploit preconditions

  • Attack surface: The remotely reachable Report Endpoint
  • Required access: Network access to the endpoint; authentication requirements depend on deployment configuration
  • Trigger point: Processing of the fromdate and todate request parameters
  • Why exploitation is possible: User-controlled date values may influence SQL query construction without adequate separation between data and executable query syntax

Why this happens

The underlying bug is an injection flaw in which externally supplied date parameters are used in database operations without reliably binding them as data. This behavior 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 concatenated into SQL statements or otherwise reaches a database interpreter without prepared statements and strict input handling.

Potential impact

  • An attacker may read unauthorized application or donor data
  • An attacker could alter, delete, or corrupt records
  • The application may disclose database structure or operational information
  • Database availability could be affected through resource-intensive queries
  • Compromised data may enable privacy violations or further attacks

General mitigation guidance

Mitigation generally focuses on ensuring that request parameters are treated strictly as data and cannot change SQL command structure.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Apply allowlisted date parsing and canonical validation before database access
  • Reject malformed, unexpected, or out-of-range date values
  • Avoid constructing SQL statements through string concatenation
  • Run the application with a database account limited to the required operations and tables
  • Reduce unnecessary exposure of administrative endpoints and enforce authentication and authorization
  • Use secure-by-default data-access abstractions that bind values automatically

How teams detect issues like this

Detection approaches may include:

  • Static analysis rules for SQL string concatenation involving request parameters
  • Code review checks for direct use of controller input in database queries
  • Dynamic application testing that verifies date parameters remain data rather than query syntax
  • Web application firewall or gateway policies that identify anomalous injection patterns
  • Database monitoring for unexpected query shapes, excessive errors, unusual access patterns, or access to unrelated tables
  • Automated security review tools that flag unsanitized input flows into SQL execution APIs

Sources

SourceLink
github.comgithub.com/usernamevnq/CVEs/issues/2
phpgurukul.comphpgurukul.com/
vuldb.comvuldb.com/cve/CVE-2026-90841
vuldb.comvuldb.com/submit/925627
vuldb.comvuldb.com/vuln/403393
vuldb.comvuldb.com/vuln/403393/cti

Frequently asked

questions

The vulnerability is described as remotely exploitable because the affected reporting endpoint processes attacker-controlled request parameters. The actual scope depends on network reachability and any authentication or authorization controls.

Not necessarily. The required access depends on how the Report Endpoint is deployed and protected. If administrative authentication is enforced, an attacker would generally need valid access or another way to reach the endpoint.

Use parameterized database queries or prepared statements, validate dates with an allowlist-based parser, and keep database privileges limited to the application's legitimate needs.

Treat all request data as untrusted, use secure data-access APIs by default, review input-to-query data flows, and combine code analysis with runtime monitoring and endpoint access controls.

Find out what's already
exploitable in your codebase.