/

CVE-2026-91004

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Online Faculty Clearance

CVE-2026-91004

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database compromise and unauthorized data access or 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 SQL injection vulnerability in the Online Faculty Clearance System allows attacker-controlled input in the faculty deletion request to alter database queries. Because the vulnerable endpoint is remotely reachable, an unauthenticated or otherwise unauthorized user may be able to access or manipulate database information, depending on deployment controls.

Affected context

The issue occurs in the /delete_faculty1.php endpoint of SourceCodester Online Faculty Clearance System 1.0 when the ID argument is incorporated into a database operation without sufficient separation between data and SQL syntax. Risk is higher where the endpoint is publicly reachable and does not enforce strong authentication, authorization, and input-handling controls.

Exploit preconditions

  • Attack surface: The remotely accessible /delete_faculty1.php web endpoint
  • Required access: Ability to send requests to the endpoint; authentication requirements depend on deployment configuration
  • Trigger point: Processing of the ID argument during the faculty deletion workflow
  • Why exploitation is possible: The argument may influence a database query without reliable parameterization or context-aware validation

Why this happens

The underlying bug is an injection flaw in which externally supplied input is combined with a database command as executable query syntax. 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 data is trusted during query construction instead of being treated strictly as a bound value.

Potential impact

  • An attacker may read unauthorized database records.
  • An attacker could alter or delete application data.
  • The application may experience integrity loss or service disruption.
  • Sensitive information could be exposed through database query results.
  • Compromise of database credentials or connected systems could increase the broader impact.

General mitigation guidance

Mitigation generally focuses on removing SQL syntax interpretation from user-controlled values and reducing the trust placed in request parameters.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for every database operation.
  • Apply allowlist validation for identifiers, such as requiring the expected numeric format for record IDs.
  • Enforce authentication and object-level authorization before destructive operations.
  • Use a database account with only the permissions required by the application.
  • Avoid returning detailed database errors to clients.
  • Treat input validation as a supplementary control rather than a replacement for query parameterization.

How teams detect issues like this

Organizations can identify similar weaknesses through:

  • Static analysis rules that flag string concatenation or interpolation in SQL statements.
  • Code review checks for database calls that receive raw request parameters.
  • Dynamic security testing of endpoint parameters using non-destructive injection indicators.
  • Web application firewall policies that monitor suspicious query patterns while recognizing that filtering is not a primary fix.
  • Automated review tools that identify missing parameter binding and weak authorization around data-changing endpoints.

Sources

SourceLink
github.comgithub.com/zzjzzzj389/cve/issues/2
vuldb.comvuldb.com/cve/CVE-2026-91004
vuldb.comvuldb.com/submit/932333
vuldb.comvuldb.com/vuln/403587
vuldb.comvuldb.com/vuln/403587/cti
sourcecodester.comsourcecodester.com/

Frequently asked

questions

Yes. The affected web endpoint is remotely reachable, although practical exploitability depends on network exposure, authentication, authorization, and other deployment controls.

The attacker needs the ability to submit requests to /delete_faculty1.php. Whether a valid account is required depends on how the application is deployed and protected.

Use parameterized database queries, validate the expected type and range of the ID value, and enforce authorization for the targeted faculty record.

Combine parameterized queries with least-privilege database accounts, secure code review, automated static analysis, and testing of all request parameters that reach database operations.

Find out what's already
exploitable in your codebase.