/

CVE-2026-95819

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in College-Notes-Gallery Login

CVE-2026-95819

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database access, authentication bypass, and potential data modification

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 remotely exploitable SQL injection vulnerability affects the login functionality of College-Notes-Gallery when processing the user and pass arguments. An attacker may be able to interfere with database queries, potentially bypass authentication or access and modify data, when the application incorporates these values without adequate query protections.

Affected context

The vulnerability occurs in the application's login.php functionality in affected College-Notes-Gallery deployments. Risk is present when remotely supplied user or pass parameters reach database operations without reliable separation between SQL structure and data values. Because the product uses a rolling-release model, affected deployments should be evaluated based on their code state and deployed controls rather than a conventional version range.

Exploit preconditions

  • Attack surface: Remote login endpoint exposed through the application
  • Required access: Network access to submit login requests; an existing account is not necessarily required
  • Trigger point: Processing of the user or pass arguments by login.php
  • Why exploitation is possible: User-controlled input may influence SQL query structure when parameterization or equivalent query boundary controls are absent

Why this happens

The underlying bug is an injection flaw in which externally controlled authentication parameters are treated as part of a database query rather than exclusively as data. This behavior maps primarily to CWE-89, SQL Injection, and broadly relates to CWE-74, Improper Neutralization of Special Elements in Output Used by a Downstream Component. The insecure pattern is direct or inadequately constrained construction of SQL statements from request values.

Potential impact

  • An attacker may bypass application authentication
  • Unauthorized database records could be read
  • Database contents could be altered or deleted
  • Application availability could be affected
  • Sensitive information could be exposed

General mitigation guidance

Mitigation generally focuses on preserving a strict boundary between query

code and untrusted input.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations
  • Apply allowlist validation appropriate to each input's expected format
  • Avoid dynamically assembled SQL wherever a fixed query structure is sufficient
  • Restrict the database account to the minimum required privileges
  • Return generic authentication errors and avoid exposing database details
  • Apply secure-by-default data-access abstractions and centralize query handling
  • Treat all client-supplied values as untrusted, including login parameters

How teams detect issues like this

Organizations can look for SQL injection risks through:

  • Static analysis rules identifying string concatenation or interpolation in SQL calls
  • Code review checks for request parameters passed directly to database APIs
  • Dynamic testing of authentication endpoints using safe, non-destructive injection probes
  • Database and application logging for anomalous query errors, authentication patterns, or unusual access
  • Policy enforcement requiring prepared statements and approved data-access libraries
  • Neutral automated code-review tools that flag unparameterized query construction

Sources

SourceLink
github.comgithub.com/yingxiujie/cve/issues/9
vuldb.comvuldb.com/cve/CVE-2026-95819
vuldb.comvuldb.com/submit/897167
vuldb.comvuldb.com/vuln/408519
vuldb.comvuldb.com/vuln/408519/cti

Frequently asked

questions

Yes. The affected login functionality is reachable remotely, although

successful exploitation depends on the endpoint being exposed and the

application processing the supplied parameters unsafely.

Not necessarily. Because the vulnerable parameters are part of the login

request, the primary requirement is network access to the endpoint; deployment

controls may further restrict who can reach it.

Use parameterized queries or prepared statements so user and password values

cannot alter SQL structure, combined with appropriate input validation and

least-privilege database access.

Enforce secure data-access patterns in shared libraries and code review,

scan for query construction from request data, test authentication flows

safely, and monitor database activity for anomalous behavior.

Find out what's already
exploitable in your codebase.