/

CVE-2026-121731

Severity:

HIGH RISK

(8.8)

SQL Injection (CWE-89) in RosarioSIS StudentSummary.php

CVE-2026-121731

Deferred

Vulnerability type

Category:

SQL Injection

CWE:

CWE-89

Impact:

Unauthorized data access and database modification

Severity:

HIGH RISK

(8.8)

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

RosarioSIS has a SQL injection vulnerability in StudentSummary.php involving the unquoted period_id parameter. An authenticated non-student user, including a parent, may be able to use it to retrieve sensitive records or modify database data.

RosarioSIS has a SQL injection vulnerability in StudentSummary.php involving the unquoted period_id parameter. An authenticated non-student user, including a parent, may be able to use it to retrieve sensitive records or modify database data.

Affected context

The issue occurs in RosarioSIS's student summary functionality, where the period_id parameter is used in SQL IN() clauses without adequate protection. The risk applies when an authenticated non-student user can reach the relevant functionality and influence this parameter.

The issue occurs in RosarioSIS's student summary functionality, where the period_id parameter is used in SQL IN() clauses without adequate protection. The risk applies when an authenticated non-student user can reach the relevant functionality and influence this parameter.

Exploit preconditions

  • Attack surface: The web-accessible student summary functionality.
  • Required access: An authenticated non-student account, such as a parent account.
  • Trigger point: Processing of the period_id parameter in StudentSummary.php.
  • Why exploitation is possible: The parameter is incorporated into SQL clauses without appropriate quoting or parameterization, allowing crafted input to affect query behavior.
  • Attack surface: The web-accessible student summary functionality.
  • Required access: An authenticated non-student account, such as a parent account.
  • Trigger point: Processing of the period_id parameter in StudentSummary.php.
  • Why exploitation is possible: The parameter is incorporated into SQL clauses without appropriate quoting or parameterization, allowing crafted input to affect query behavior.

Why this happens

The application constructs SQL using an input parameter without safely separating data from query syntax. This is CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'). Because the value is used in an IN() clause without adequate parameterization, attacker-controlled input may alter database operations.

The application constructs SQL using an input parameter without safely separating data from query syntax. This is CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'). Because the value is used in an IN() clause without adequate parameterization, attacker-controlled input may alter database operations.

Potential impact

  • An attacker may be able to retrieve administrator password hashes or student records.
  • Time-based queries could allow information to be inferred from database responses.
  • Stacked statements could allow unauthorized modification of database data.
  • Exposed records or altered data could affect student privacy and system integrity.
  • An attacker may be able to retrieve administrator password hashes or student records.
  • Time-based queries could allow information to be inferred from database responses.
  • Stacked statements could allow unauthorized modification of database data.
  • Exposed records or altered data could affect student privacy and system integrity.

General mitigation guidance

Mitigations generally focus on keeping user-controlled values separate from SQL syntax.

Common defensive patterns include:

  • Using parameterized queries or prepared statements for database access.
  • Validating period_id against an expected type, format, and authorized set of values.
  • Applying least-privilege database permissions so application queries cannot perform unnecessary operations.
  • Limiting access to sensitive student and administrator data according to user roles.
  • Avoiding reliance on input filtering alone as the primary SQL injection defense.

Mitigations generally focus on keeping user-controlled values separate from SQL syntax.

Common defensive patterns include:

  • Using parameterized queries or prepared statements for database access.
  • Validating period_id against an expected type, format, and authorized set of values.
  • Applying least-privilege database permissions so application queries cannot perform unnecessary operations.
  • Limiting access to sensitive student and administrator data according to user roles.
  • Avoiding reliance on input filtering alone as the primary SQL injection defense.

How teams detect issues like this

High-level detection approaches include:

  • Static analysis rules that identify SQL statements built through string concatenation or interpolation.
  • Code review checks for unparameterized input in IN() clauses and other query conditions.
  • Testing and monitoring policies that flag unusual database errors, query delays, or unexpected data access.
  • Automated code review tools that can help identify potentially unsafe database query patterns.

High-level detection approaches include:

  • Static analysis rules that identify SQL statements built through string concatenation or interpolation.
  • Code review checks for unparameterized input in IN() clauses and other query conditions.
  • Testing and monitoring policies that flag unusual database errors, query delays, or unexpected data access.
  • Automated code review tools that can help identify potentially unsafe database query patterns.

Sources

SourceLink
github.comgithub.com/francoisjacquet/rosariosis
github.comgithub.com/francoisjacquet/rosariosis/blob/v12.8.1/modules/Attendance/includes/StudentSummary.php#L119
github.comgithub.com/francoisjacquet/rosariosis/commit/1b809f9761b50c3f6faf9e1b2b5f5e74d63509c1
github.comgithub.com/francoisjacquet/rosariosis/releases/tag/v12.9
gitlab.comgitlab.com/francoisjacquet/rosariosis/-/issues/375
vulncheck.comvulncheck.com/advisories/rosariosis-before-12.9-sql-injection-via-period-id-in-attendance-absence-report

Frequently asked

questions

The described issue affects authenticated non-student users, including parents, who can access the relevant student summary functionality.

It may allow access to administrator password hashes or student records, and could permit database modifications.

Use parameterized queries so the period_id value is handled as data rather than SQL syntax, and validate it against expected values.

Apply secure query APIs consistently, review database access code for unsafe string construction, and limit database privileges and data access by role.

The described issue affects authenticated non-student users, including parents, who can access the relevant student summary functionality.

It may allow access to administrator password hashes or student records, and could permit database modifications.

Use parameterized queries so the period_id value is handled as data rather than SQL syntax, and validate it against expected values.

Apply secure query APIs consistently, review database access code for unsafe string construction, and limit database privileges and data access by role.

Find out what's already
exploitable in your codebase.