moodle: stored XSS risk when editing another user's equation in equation editor (CVE-2024-33997)
A stored cross-site scripting (XSS) vulnerability exists in Moodle's equation editor when editing another user's equation. This occurs due to insufficient sanitization when opening the equation editor, allowing malicious scripts to be stored and potentially executed. The issue affects multiple Moodle versions prior to specific patched releases. A patch is available to address this vulnerability.
AI Analysis
Technical Summary
CVE-2024-33997 is a stored XSS vulnerability in Moodle that arises from inadequate sanitization when users open the equation editor to edit equations created by other users. This flaw allows malicious scripts to be stored within the equation content, which could be executed in the context of users viewing or editing the affected equations. The vulnerability affects Moodle versions prior to 4.1.10, versions from 4.2.0 up to but not including 4.2.7, and versions from 4.3.0 up to but not including 4.3.4. The vulnerability has been assigned a medium severity rating, and a patch is available to mitigate the risk.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary scripts in the context of users interacting with the equation editor, potentially leading to session hijacking, unauthorized actions, or data exposure within the Moodle environment. However, there are no known exploits in the wild at this time.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade Moodle to versions 4.1.10 or later, 4.2.7 or later, or 4.3.4 or later to remediate the issue. Applying these updates will ensure that the additional sanitization required to prevent stored XSS when editing another user's equation is in place.
moodle: stored XSS risk when editing another user's equation in equation editor (CVE-2024-33997)
Description
A stored cross-site scripting (XSS) vulnerability exists in Moodle's equation editor when editing another user's equation. This occurs due to insufficient sanitization when opening the equation editor, allowing malicious scripts to be stored and potentially executed. The issue affects multiple Moodle versions prior to specific patched releases. A patch is available to address this vulnerability.
Affected software
pkg:bitnami/moodleRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-33997 is a stored XSS vulnerability in Moodle that arises from inadequate sanitization when users open the equation editor to edit equations created by other users. This flaw allows malicious scripts to be stored within the equation content, which could be executed in the context of users viewing or editing the affected equations. The vulnerability affects Moodle versions prior to 4.1.10, versions from 4.2.0 up to but not including 4.2.7, and versions from 4.3.0 up to but not including 4.3.4. The vulnerability has been assigned a medium severity rating, and a patch is available to mitigate the risk.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary scripts in the context of users interacting with the equation editor, potentially leading to session hijacking, unauthorized actions, or data exposure within the Moodle environment. However, there are no known exploits in the wild at this time.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade Moodle to versions 4.1.10 or later, 4.2.7 or later, or 4.3.4 or later to remediate the issue. Applying these updates will ensure that the additional sanitization required to prevent stored XSS when editing another user's equation is in place.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-moodle-2024-33997
- Osv Schema Version
- 1.6.2
- Aliases
- ["CVE-2024-33997"]
- Ecosystems
- ["Bitnami"]
- Database Specific Severity
- Medium
- Cvss Version
- null
Threat ID: 6aa00618acd9273b49ab77b7
Added to database: 09/08/2026, 12:56:56 UTC
Last enriched: 09/08/2026, 13:45:04 UTC
Last updated: 09/09/2026, 02:39:20 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.