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-114389 Overview
CVE-2026-114389 is a missing authorization vulnerability [CWE-639] in Chamilo LMS affecting versions from 2.0.0-alpha.4 before 2.0.0-RC.3. The flaw resides in the AiController::openAnswerGrade method, which fails to verify that the authenticated requester owns the exam attempt being graded. Any authenticated user can enumerate exeId and questionId parameters sent to the open_answer_grade endpoint to retrieve AI-generated grading feedback for other students' exam answers. The vulnerability also allows attackers to consume the platform's AI quota at the expense of legitimate users.
Critical Impact
Authenticated users can read other students' open-answer submissions and AI feedback, breaching exam confidentiality and exhausting AI service quotas.
Affected Products
- Chamilo LMS 2.0.0-alpha.4 through versions prior to 2.0.0-RC.3
- Deployments exposing the open_answer_grade AJAX endpoint
- Instances with AI grading features enabled for open-answer questions
Discovery Timeline
- 2026-10-21 - CVE-2026-114389 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-114389
Vulnerability Analysis
The AiController component in Chamilo LMS exposes the openAnswerGrade action to generate AI-assisted grading for open-ended exam responses. The handler accepts an exeId (exam attempt identifier) and questionId from the authenticated request and returns the AI-produced feedback. The handler does not validate whether the requesting user owns the exam attempt or is an authorized teacher for the related course.
Any authenticated student can therefore substitute arbitrary identifier values and retrieve grading output tied to other learners. The response includes the AI feedback, which typically contains the student's answer text or clear references to it. Each unauthorized request also consumes the tenant's paid AI grading quota, creating a secondary resource-abuse impact.
Root Cause
The root cause is an insecure direct object reference [CWE-639]. The controller trusts the client-supplied exeId and questionId without enforcing an ownership or role check that ties the identifiers to the current session user. Related AJAX services in course.ajax.php and gradebook.ajax.php exhibited the same missing authorization pattern, which the maintainers remediated in the same fix commit.
Attack Vector
Exploitation requires only valid, low-privilege authenticated credentials over the network. An attacker enumerates sequential exeId and questionId values and issues requests to the open_answer_grade endpoint. Each successful call returns another student's AI grading feedback. See the GitHub AiController Code Review for the pre-patch handler.
// Patch snippet - public/main/inc/ajax/course.ajax.php
case 'display_sessions_courses':
+ if (!$isPlatformAdmin && !api_is_session_admin() && !api_is_teacher()) {
+ echo json_encode([]);
+ break;
+ }
// Close the session as we don't need it any further
session_write_close();
// Patch snippet - public/main/inc/ajax/gradebook.ajax.php
case 'export_all_certificates':
+ if (!api_is_allowed_to_edit(null, true) && !api_is_student_boss()) {
+ echo '';
+ break;
+ }
$categoryId = (int) $_GET['cat_id'];
Source: GitHub Commit 2861afd4. The patch introduces role checks using api_is_platform_admin, api_is_teacher, api_is_allowed_to_edit, and api_is_student_boss before executing sensitive AJAX branches.
Detection Methods for CVE-2026-114389
Indicators of Compromise
- Repeated authenticated requests to open_answer_grade from a single session that reference many distinct exeId or questionId values.
- Spikes in AI grading quota consumption that do not correlate with legitimate teacher grading activity.
- Access log entries where the authenticated user id does not match the owner of the referenced exam attempt.
Detection Strategies
- Correlate web access logs for /ajax/ endpoints with the Chamilo user session table to flag mismatches between requester and resource owner.
- Alert on sequential or high-cardinality enumeration of numeric identifiers submitted to the AI grading endpoint.
- Review audit records from the AI provider for grading calls that reference exam attempts outside the authenticated user's course enrollment.
Monitoring Recommendations
- Enable verbose logging on AiController and other AJAX services patched in commit 2861afd4.
- Ship web server and application logs to a centralized SIEM and build detections for enumeration patterns on exeId parameters.
- Track per-user AI quota consumption and alert when non-teacher accounts invoke the grading endpoint.
How to Mitigate CVE-2026-114389
Immediate Actions Required
- Upgrade Chamilo LMS to v2.0.0-RC.3 or later.
- Audit AI grading quota usage and web access logs for enumeration against open_answer_grade since deployment of 2.0.0-alpha.4.
- Rotate any AI provider API keys that may have been abused to inflate quota consumption.
Patch Information
The fix is delivered in commit 2861afd4896ff898a950302f2c00f44726fa6f0a and shipped in release v2.0.0-RC.3. Additional context is available in the VulnCheck Security Advisory and GitHub Issue #7671.
Workarounds
- Disable the AI open-answer grading feature until the patched release is deployed.
- Restrict network access to the open_answer_grade endpoint via a reverse proxy ACL that permits only teacher and administrator roles.
- Apply a short-term quota cap on the configured AI provider to limit financial impact if abuse continues.
# Example nginx rule to block the vulnerable endpoint until patched
location ~* /main/inc/ajax/.*open_answer_grade {
deny all;
return 403;
}
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

