CVE-2025-53021 Moodle Session Fixation allows unauthenticated users to hijack sessions via sesskey parameter

Medium 4.2 Published Updated

Unauthenticated attackers can hijack user sessions via sesskey reuse in Moodle's OAuth2 flow, leading to full account takeover.

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-2025-53021?

CVE-2025-53021 is a medium-severity authentication bypass vulnerability in Moodle Moodle, published on 24 Jun 2025. 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 session fixation vulnerability in Moodle 3.x through 3.11.18 allows unauthenticated attackers to hijack user sessions via the sesskey parameter. The sesskey can be obtained without authentication and reused within the OAuth2 login flow, resulting in the victim's session being linked to the attacker's. Successful exploitation results in full account takeover. According to the Moodle Releases page, "Bug fixes for security issues in 3.11.x ended 11 December 2023." NOTE: This vulnerability only affects products that are no longer supported by the maintainer.

Weakness: CWE-384

Which versions are affected by CVE-2025-53021?

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

PackageAffectedFixed in
moodle/moodle PackagistFrom 3.0.04.0.0
moodle/moodle PackagistFrom 3.0.04.0.0
moodle BitnamiFrom 3.0.04.1.10

Products include Moodle Moodle.

How do I fix CVE-2025-53021?

Upgrade moodle/moodle to 4.0.0 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2025-53021 being exploited?

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

All Moodle Moodle vulnerabilities

Sources

Also known as BIT-moodle-2025-53021, GHSA-cgvv-3455-824j, UBUNTU-CVE-2025-53021.

Is CVE-2025-53021 in your software?

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

Check your SBOMs for free