/

CVE-2026-14772

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Class Timetabling System

CVE-2026-14772

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Database Compromise 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 SQL injection flaw in the Class and Exam Timetabling System allows attackers to manipulate the ID parameter in edit_course1.php to interfere with backend database queries.

When user-controlled data is concatenated directly into SQL statements without proper validation or parameterization, remote attackers may extract, modify, or delete data and potentially escalate their access.

Affected context

The vulnerability occurs in the web-based Class and Exam Timetabling System when requests to /edit_course1.php accept an ID argument that is used in database operations without sufficient sanitization or parameter binding.

It typically manifests in deployments where the application is exposed over HTTP/HTTPS and relies on dynamic SQL queries based on request parameters, especially in course or timetable editing functionality.

Exploit preconditions

  • Attack surface: HTTP(S) endpoint /edit_course1.php handling course editing requests
  • Required access: Ability to send crafted web requests (usually unauthenticated or low-privileged user, depending on deployment)
  • Trigger point: Server-side processing of the ID parameter within an SQL query
  • Why exploitation is possible: The application builds SQL statements by concatenating untrusted ID input directly into the query string, without parameterization or robust input validation, enabling injection of additional SQL syntax

Why this happens

The underlying issue is the construction of SQL queries using string concatenation with user-supplied data, a classic CWE-89: Improper Neutralization of Special Elements used in an SQL Command (SQL Injection) pattern.

Instead of using prepared statements or parameterized queries, the code likely inserts the ID argument directly into the WHERE clause or similar constructs.

This behavior allows crafted input containing SQL control characters and keywords to alter query structure, impacting both data retrieval and modification.

The presence of CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component reflects that the database is treated as a downstream interpreter of improperly neutralized input.

Potential impact

  • Attackers may read sensitive information from the database, including user records and timetable data.
  • Attackers could modify or delete course, exam, or timetable entries, disrupting system integrity.
  • The vulnerability can enable creation of new accounts or modification of existing permissions, leading to privilege escalation.
  • In some configurations, attackers could execute database-specific functions that impact the underlying server or application stability.

General mitigation guidance

Effective mitigation usually centers on eliminating dynamic, concatenated SQL and enforcing strict separation between query structure and data.

Common defensive patterns include:

  • Using prepared statements with bound parameters for all database operations involving user input.
  • Applying centralized validation rules for identifiers like ID, ensuring they conform to expected types (e.g., numeric) before use.
  • Implementing an abstraction layer or ORM that discourages ad-hoc SQL assembly and promotes safe query construction by default.
  • Limiting database privileges of the application account so that compromise of a single query cannot affect the entire schema or server.
  • Adopting secure coding standards and code review checklists that highlight any direct insertion of user input into SQL strings.

How teams detect issues like this

High-level detection approaches for this vulnerability typically include:

  • Static analysis rules that flag string concatenation in SQL query construction, especially involving request parameters like $_GET['ID'] or $_POST['ID'].
  • Code review practices that require inspection of all database access layers for parameterized queries and prohibit direct embedding of user input.
  • Runtime monitoring and logging for unusual SQL patterns, such as queries containing tautologies, UNION clauses, or comment sequences originating from user-controlled fields.
  • Use of application security testing tools (SAST/DAST) configured to probe endpoints like /edit_course1.php with typical SQL injection payloads to reveal unsafe query handling.

Sources

SourceLink
github.comgithub.com/orionyan520/cve_report/issues/1
vuldb.comvuldb.com/cve/CVE-2026-14772
vuldb.comvuldb.com/submit/849108
vuldb.comvuldb.com/vuln/376362
vuldb.comvuldb.com/vuln/376362/cti
sourcecodester.comsourcecodester.com/

Frequently asked

questions

It is remotely exploitable against any deployment exposing the vulnerable endpoint over the network, and attack tools can automate exploitation once the request pattern is known.

Typically only the ability to send HTTP requests to the application is needed; higher privileges might expand impact but are not strictly required if the vulnerable parameter is publicly reachable.

Replace all dynamically concatenated SQL involving the ID parameter with prepared statements using bound parameters, and enforce type-safe input validation for identifiers throughout the application.

Adopt a secure development lifecycle that mandates parameterized queries, establish linting or static analysis checks for unsafe SQL construction, and train developers to never mix user input directly into interpreter-driven commands like SQL.

Find out what's already
exploitable in your codebase.