CVE-2022-35651 Moodle Stored XSS and blind SSRF possible via SCORM track details

Medium 6.1 Published Updated

Remote attackers can execute arbitrary scripts in victims' browsers via stored XSS in SCORM track details, potentially stealing data or performing phishing.

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-2022-35651?

CVE-2022-35651 is a medium-severity cross-site scripting vulnerability in Fedoraproject Fedora, published on 25 Jul 2022. 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

A stored XSS and blind SSRF vulnerability was found in Moodle, occurs due to insufficient sanitization of user-supplied data in the SCORM track details. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website to steal potentially sensitive information, change appearance of the web page, can perform phishing and drive-by-download attacks.

Weakness: CWE-79

Which versions are affected by CVE-2022-35651?

7 open source packages ship an affected version, including moodle/moodle and moodle. It affects 3 products.

PackageAffectedFixed in
moodle/moodle PackagistFrom 3.113.11.8
moodle/moodle PackagistFrom 3.113.11.8
moodle/moodle PackagistFrom 3.93.9.15
moodle/moodle PackagistFrom 3.93.9.15
moodle/moodle PackagistFrom 4.04.0.2
moodle/moodle PackagistFrom 4.04.0.2
1 more packages
moodle BitnamiFrom 3.9.03.9.15, 3.11.8, 4.0.2

Products include Fedoraproject Fedora, Moodle Moodle, Redhat Enterprise Linux.

How do I fix CVE-2022-35651?

Upgrade moodle/moodle to a fixed version for your release line: 3.11.8, 3.9.15 or 4.0.2.

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-2022-35651 being exploited?

There is no known exploitation of CVE-2022-35651 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-moodle-2022-35651, GHSA-wwv7-h477-wrv7, UBUNTU-CVE-2022-35651.

Is CVE-2022-35651 in your software?

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

Check your SBOMs for free