Quick answers
- Is CVE-2017-2578 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2017-2578 being exploited in the wild.
- How severe is CVE-2017-2578?
- Medium severity, with a CVSS score of 6.1, published 20 January 2017.
- Which products and versions are affected?
- Moodle 3.1.0 to 3.1.3, 3.2.0; moodle/moodle (Packagist) ECOSYSTEM:introduced=3.1,fixed=3.1.4.
- Is there a fix for CVE-2017-2578?
- Yes. moodle/moodle (Packagist): upgrade to 3.1.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2017-2578 attacked?
- It is attacked over the network, in a web application.
- Am I affected by CVE-2017-2578?
- Check whether you run Moodle or moodle/moodle (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- moodle/moodle (Packagist): upgrade to 3.1.4 or later
composer require moodle/moodle:^3.1.4
Technical details
A reflected cross-site scripting (XSS) vulnerability exists in Moodle versions 3.1.x (up to 3.1.3) and 3.2.0 within the assignment submission component. The flaw stems from improper neutralization of user-supplied input before it is rendered on the page (CWE-79). An attacker can exploit this by tricking a user into visiting a specially crafted URL or interacting with malicious content on the submission page. If successful, the attacker can execute arbitrary JavaScript in the context of the victim's session, potentially leading to session hijacking or unauthorized data access. Moodle has released patches to address this issue.
Affected products
- Moodle Moodle 3.1.0 to 3.1.3, 3.2.0
Identifiers
- CVE-2017-2578
- GHSA-6r76-f8c8-fh7p
Timeline
- 2017-01-20: disclosed
- 2017-01-20: advisory