CVE-2024-38274 moodle: stored XSS via calendar's event title when deleting the event
Attackers can inject malicious scripts into calendar event titles, leading to stored XSS when deleting events, affecting Moodle users.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-38274?
CVE-2024-38274 is a medium-severity cross-site scripting vulnerability in Fedoraproject Fedora, published on 18 Jun 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Insufficient escaping of calendar event titles resulted in a stored XSS risk in the event deletion prompt.
Weakness: CWE-79
Which versions are affected by CVE-2024-38274?
9 open source packages ship an affected version, including moodle/moodle and moodle. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
moodle/moodle Packagist | All versions | 4.1.11 |
moodle/moodle Packagist | All versions | 4.1.11 |
moodle/moodle Packagist | From 4.2.0-beta | 4.2.8 |
moodle/moodle Packagist | From 4.2.0-beta | 4.2.8 |
moodle/moodle Packagist | From 4.3.0-beta | 4.3.5 |
moodle/moodle Packagist | From 4.3.0-beta | 4.3.5 |
3 more packages
moodle/moodle Packagist | From 4.4.0-beta | 4.4.1 |
moodle/moodle Packagist | From 4.4.0-beta | 4.4.1 |
moodle Bitnami | From 4.1.0 | 4.1.11, 4.2.8, 4.3.5, 4.4.1 |
Products include Fedoraproject Fedora, Moodle Moodle.
How do I fix CVE-2024-38274?
Upgrade moodle/moodle to a fixed version for your release line: 4.1.11, 4.2.8, 4.3.5 or 4.4.1.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-38274 being exploited?
There is no known exploitation of CVE-2024-38274 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as BIT-moodle-2024-38274, GHSA-p5cg-6rfr-6mx8, UBUNTU-CVE-2024-38274.