Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-105921 Overview
CVE-2026-105921 is a SQL injection vulnerability in the Kusalkasilva Learning-Management-System, an open-source PHP-based LMS distributed through GitHub. The flaw resides in search_class.php, where the school_year parameter is passed to a database query without proper sanitization. An authenticated remote attacker can manipulate this argument to inject arbitrary SQL statements. The project follows a rolling release model, so the vulnerability affects all commits up to ffeb873f8803f1e9664384ff75000c7da45466d2. Public exploit details are referenced through VulDB, and the maintainer has not yet responded to the disclosure.
Critical Impact
Remote authenticated attackers can inject SQL through the school_year parameter in search_class.php, exposing stored learner, class, and credential data.
Affected Products
- Kusalkasilva Learning-Management-System (rolling release)
- All commits up to and including ffeb873f8803f1e9664384ff75000c7da45466d2
- Deployments exposing search_class.php to networked users
Discovery Timeline
- 2026-10-06 - CVE-2026-105921 published to the National Vulnerability Database (NVD)
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-105921
Vulnerability Analysis
The vulnerability is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component. Within search_class.php, the application reads the school_year request parameter and concatenates it directly into a SQL query against the LMS database. Because the value is neither parameterized nor escaped, an attacker can break out of the intended query context and append arbitrary SQL clauses.
Successful exploitation enables data exfiltration from tables holding student records, enrollment data, and account credentials. Depending on the database user's permissions, an attacker may also modify records or enumerate the database schema. The attack is launched remotely over the network and requires only low-privileged authenticated access to the LMS.
Root Cause
The root cause is unsafe handling of user-controlled input inside a SQL statement in search_class.php. The school_year argument is interpolated into the query string rather than bound as a parameter. No input validation, type casting, or allow-list filtering is applied before the value reaches the database driver.
Attack Vector
Exploitation requires network access to the LMS web interface and a valid session with low privileges. The attacker submits a crafted school_year value through the search workflow, embedding SQL metacharacters such as single quotes, UNION SELECT clauses, or boolean payloads. The database executes the attacker-controlled fragment and returns data through the normal search response or through inferred timing and error channels.
See the VulDB entry for CVE-2026-105921 and the public GitHub Issue #4 for additional technical context. No verified exploit code is reproduced here.
Detection Methods for CVE-2026-105921
Indicators of Compromise
- HTTP requests to search_class.php containing SQL metacharacters such as ', --, UNION, SELECT, or SLEEP( in the school_year parameter.
- Web server access logs showing abnormally long or URL-encoded school_year values from a single session.
- Database error entries referencing unterminated string literals or syntax errors originating from the LMS application user.
Detection Strategies
- Deploy web application firewall (WAF) signatures that inspect query and form parameters sent to search_class.php for common SQL injection patterns.
- Correlate authenticated user sessions with high rates of 500 errors or malformed queries to detect blind injection probing.
- Enable database query logging and alert on queries from the LMS service account that contain stacked statements or reference information_schema.
Monitoring Recommendations
- Forward web server, application, and database logs to a central analytics platform for cross-source correlation.
- Baseline normal school_year values (for example, four-digit years) and alert on deviations.
- Track outbound data volumes from the LMS database host to identify bulk exfiltration attempts.
How to Mitigate CVE-2026-105921
Immediate Actions Required
- Restrict network exposure of the LMS to trusted users and internal networks until a patch is published.
- Place the application behind a WAF with SQL injection rules tuned for the school_year parameter.
- Rotate credentials for any LMS database accounts and review database logs for prior suspicious queries.
- Review the project's GitHub repository and Issue #4 for maintainer updates.
Patch Information
At the time of publication, the maintainer of the Kusalkasilva Learning-Management-System has not released a fix or responded to the disclosure. Because the project uses a rolling release model, no fixed version identifier exists. Operators should monitor the upstream repository for commits that replace string concatenation in search_class.php with parameterized queries.
Workarounds
- Apply a local source-code patch replacing the vulnerable query with a prepared statement using PDO or mysqli bound parameters.
- Validate the school_year input server-side with a strict regular expression such as ^[0-9]{4}(-[0-9]{4})?$ before it reaches the database layer.
- Grant the LMS database user the minimum privileges required, removing FILE, DROP, and cross-database access rights.
- Disable or restrict access to search_class.php through web server rules if the search feature is not required.
# Example Apache rule to block obvious SQL metacharacters in school_year
<Location "/search_class.php">
SetEnvIfNoCase Request_URI "school_year=.*(['\"]|--|/\*|union|select|sleep\()" block_sqli
Require all granted
Require not env block_sqli
</Location>
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

