CVE-2022-35653 Moodle LTI module reflected XSS risk

Medium 6.1 Published Updated

Reflected XSS in Moodle LTI module allows attackers to execute scripts in victim browsers via crafted links, enabling data theft and 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-35653?

CVE-2022-35653 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 reflected XSS issue was identified in the LTI module of Moodle. The vulnerability exists due to insufficient sanitization of user-supplied data in the LTI module. 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. This vulnerability does not impact authenticated users.

Weakness: CWE-79

Which versions are affected by CVE-2022-35653?

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.1, 4.0.2

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

How do I fix CVE-2022-35653?

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-35653 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-35653 exists.

Public exploit code: 1 Nuclei template.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-moodle-2022-35653, GHSA-62wh-m4jr-233r, UBUNTU-CVE-2022-35653.

Is CVE-2022-35653 in your software?

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

Check your SBOMs for free