CVE-2024-38274 moodle: stored XSS via calendar's event title when deleting the event

Medium 6.1 Published Updated

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.

PackageAffectedFixed in
moodle/moodle PackagistAll versions4.1.11
moodle/moodle PackagistAll versions4.1.11
moodle/moodle PackagistFrom 4.2.0-beta4.2.8
moodle/moodle PackagistFrom 4.2.0-beta4.2.8
moodle/moodle PackagistFrom 4.3.0-beta4.3.5
moodle/moodle PackagistFrom 4.3.0-beta4.3.5
3 more packages
moodle/moodle PackagistFrom 4.4.0-beta4.4.1
moodle/moodle PackagistFrom 4.4.0-beta4.4.1
moodle BitnamiFrom 4.1.04.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.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-moodle-2024-38274, GHSA-p5cg-6rfr-6mx8, UBUNTU-CVE-2024-38274.

Is CVE-2024-38274 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free