/

CVE-2026-75079

Severity:

HIGH RISK

(7.3)

SQL Injection (CWE-89) in Class Exam Timetabling System

CVE-2026-75079

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-74, CWE-89

Impact:

Unauthorized Database Access

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 ID parameter of /edit_subject2.php may allow remote attackers to influence database queries. The issue becomes risky when user-controlled input is incorporated into SQL statements without effective parameterization or validation.

Affected context

The weakness occurs in SourceCodester Class and Exam Timetabling System 1.0, specifically around processing the ID argument on /edit_subject2.php. Deployments may be exposed when the endpoint is remotely reachable and request values are used in database operations without adequate query isolation.

Exploit preconditions

  • Attack surface: HTTP request handling for /edit_subject2.php
  • Required access: Network access to the affected application endpoint; authentication requirements may depend on deployment configuration
  • Trigger point: Processing of the ID parameter
  • Why exploitation is possible: User-controlled input may reach a database query without sufficient separation between data and SQL instructions

Why this happens

The underlying bug is an injection flaw in which externally supplied input is treated as part of a database command rather than strictly as data. 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, which covers improper neutralization in command or expression contexts. The insecure pattern generally involves constructing SQL statements through string concatenation or otherwise failing to use parameterized query interfaces.

Potential impact

  • An attacker may read unauthorized database records.
  • An attacker could alter, insert, or delete application data.
  • The application may disclose sensitive information through database responses or errors.
  • Database availability and application functionality could be disrupted.
  • Compromised data could support further attacks against users or administrative workflows.

General mitigation guidance

Mitigation generally focuses on ensuring that database commands treat request values strictly as data.

Common defensive patterns include:

  • Use parameterized queries or prepared statements for all database operations.
  • Apply allowlist validation and appropriate type checking to identifier parameters such as ID.
  • Avoid building SQL statements through string concatenation or interpolated input.
  • Use database accounts with only the privileges required by the application.
  • Suppress detailed database errors from user-facing responses while retaining secure internal logging.
  • Reduce unnecessary network exposure of administrative or record-management endpoints.

How teams detect issues like this

Organizations commonly look for SQL injection risks through:

  • Static analysis rules identifying SQL construction with request parameters.
  • Code review checks for concatenated or interpolated query strings.
  • Dynamic testing of identifier and filter parameters using safe, authorized test cases.
  • Web application firewall or API policy rules that monitor anomalous database-oriented input.
  • Database audit logs showing unexpected query patterns, access volumes, or authorization failures.

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

Sources

SourceLink
github.comgithub.com/i-QvQ-i/first-OvO/issues/6
vuldb.comvuldb.com/cve/CVE-2026-75079
vuldb.comvuldb.com/submit/876545
vuldb.comvuldb.com/vuln/391307
vuldb.comvuldb.com/vuln/391307/cti
sourcecodester.comsourcecodester.com/

Frequently asked

questions

The reported issue can be triggered through a remotely reachable application endpoint when the affected functionality is exposed over the network.

The description does not establish a specific authentication requirement. Access depends on the application's deployment, endpoint permissions, and session controls.

Use parameterized queries or prepared statements, validate identifier values according to their expected type, and avoid placing request data directly into SQL text.

Combine secure database APIs with code review, static analysis, authorized dynamic testing, least-privilege database accounts, and monitoring of anomalous query behavior.

Find out what's already
exploitable in your codebase.