Authorization Bypass Through User-Controlled Key Affecting moodle/moodle package, versions >=4.1.0-beta, <4.1.18>=4.3.0-beta, <4.3.12>=4.4.0-beta, <4.4.8>=4.5.0-beta, <4.5.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Authorization Bypass Through User-Controlled Key vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-MOODLEMOODLE-10188811
  • published21 May 2025
  • disclosed25 Apr 2025
  • creditKhikhi

Introduced: 25 Apr 2025

CVE-2025-3640  (opens in a new tab)
CWE-639  (opens in a new tab)

How to fix?

Upgrade moodle/moodle to version 4.1.18, 4.3.12, 4.4.8, 4.5.4 or higher.

Overview

moodle/moodle is a learning platform.

Affected versions of this package are vulnerable to Authorization Bypass Through User-Controlled Key due to insufficient capability checks in the web service. An attacker can access sensitive user details such as full names and profile images by exploiting the permissions granted to users enrolled in a course.

CVSS Base Scores

version 4.0
version 3.1