CVE-2021-40691: Shibboleth Authentication Plugin Session Hijack Risk in Moodle

moodle Updated 02 Oct 2025

Summary

06/03/2024
Yes i
Medium
Not published

CVE-2021-40691: A session hijack risk was identified in the Shibboleth authentication plugin. Affects moodle across 3 version ranges.

< 3.9.10 >= 3.10.0, < 3.10.7 >= 3.11.0, < 3.11.3

Fixed in 3.9.10, 3.10.7 or 3.11.3, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2021-40691 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Moodle is an open-source learning management system widely used for online education. It provides a platform for educators to create and deliver courses, manage student enrollment, and facilitate communication and collaboration. The Shibboleth authentication plugin is a popular choice for integrating Moodle with Shibboleth-based identity providers, allowing users to authenticate using their institutional credentials. However, a session hijack risk has been identified in the Shibboleth authentication plugin, potentially compromising the security and privacy of user sessions.

Vulnerability Detail

The session hijack risk in the Shibboleth authentication plugin allows an attacker to hijack a user's session and impersonate them, gaining unauthorized access to their account and sensitive information. This vulnerability arises due to improper session management, which can be exploited by an attacker with network access to the affected Moodle instance. By intercepting and manipulating session cookies or session identifiers, the attacker can take control of a user's session and perform actions on their behalf. This could lead to unauthorized access, data leakage, and other malicious activities.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 3.9.10 3.9.10
  • >= 3.10.0, < 3.10.7 3.10.7
  • >= 3.11.0, < 3.11.3 3.11.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. It is crucial to apply the recommended fix by upgrading Moodle and the Shibboleth authentication plugin to the patched versions.

Conclusion

The session hijack risk in the Shibboleth authentication plugin for Moodle poses a significant security threat, potentially allowing unauthorized access to user accounts and sensitive information. It is crucial for administrators to promptly upgrade Moodle to the patched versions and ensure the Shibboleth authentication plugin is up to date. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for moodle →

Share this vulnerability

FAQ

Moodle is an open-source learning management system used for online education. It provides a platform for educators to create and deliver courses, manage student enrollment, and facilitate communication and collaboration.

The Shibboleth authentication plugin is a popular choice for integrating Moodle with Shibboleth-based identity providers. It allows users to authenticate using their institutional credentials.

Session hijacking is a security attack where an attacker intercepts and takes control of a user's session. This allows the attacker to impersonate the user and perform actions on their behalf.

The session hijack risk in the Shibboleth authentication plugin can be exploited by an attacker with network access to the affected Moodle instance. By intercepting and manipulating session cookies or session identifiers, the attacker can take control of a user's session and perform unauthorized actions.

To fix the session hijack risk, it is recommended to upgrade Moodle to the latest version that includes the necessary security patches. Specifically, versions 3.9.10, 3.10.7, and 3.11.3 have addressed this vulnerability. Additionally, ensure that the Shibboleth authentication plugin is up to date.

Related vulnerabilities

Recent vulnerabilities recorded for moodle.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 3.9.10 3.9.10
  • >= 3.10.0, < 3.10.7 3.10.7
  • >= 3.11.0, < 3.11.3 3.11.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback