CVE-2022-40208: Moodle/moodle Moodle May Allow Students To Vulnerability
MODERATECVE-2022-40208 is a MODERATE (CVSS 4.3) moodle may allow students to vulnerability (CWE-285: Improper Authorization) affecting Moodle/moodle libraries in the Packagist ecosystem. The issue involves moodle may allow students to bypass sequential navigation during a quiz attempt. Remediation is available by upgrading affected packages to version 4.0.3, 3.11.9, 3.9.16.
CVE-2022-40208 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2022-40208
To remediate this vulnerability, upgrade all affected Moodle/moodle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade moodle/moodle to 4.0.3
Upgrade moodle/moodle to 3.11.9
Upgrade moodle/moodle to 3.9.16
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for moodle/moodle
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-40208, inspect your project dependencies for Moodle/moodle:
inspect dependencies for moodle/moodle
Analyze the terminal output to locate any version of Moodle/moodle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.3), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Moodle/moodle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-40208 Affected Moodle/moodle Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
moodle/moodle
|
Packagist |
≥ 4.0.0
< 4.0.3
|
4.0.3
|
|
moodle/moodle
|
Packagist |
≥ 3.11.0
< 3.11.9
|
3.11.9
|
|
moodle/moodle
|
Packagist |
< 3.9.16
|
3.9.16
|
References
Frequently Asked Questions
What is CVE-2022-40208?
Which Moodle/moodle versions are affected?
What version fixes CVE-2022-40208?
Is moodle/moodle affected?
What is the CVSS score of CVE-2022-40208?
What CWE is associated with CVE-2022-40208?
How can I check Packagist dependencies for CVE-2022-40208?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-948f-j464-rfj2",
"modified" : "2023-03-30T16:58:35Z",
"published" : "2023-03-24T21:30:49Z",
"aliases" : [ "CVE-2022-40208" ],
"summary" : "Moodle may allow students to bypass sequential navigation during a quiz attempt",
"details" : "In Moodle, insufficient limitations in some quiz web services made it possible for students to bypass sequential navigation during a quiz attempt.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.0.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.11.0"
}, {
"fixed" : "3.11.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.9.16"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-40208"
}, {
"type" : "WEB",
"url" : "https://github.com/moodle/moodle/commit/025e0297b65e6a8bd61efad0fdf36168c613f918"
}, {
"type" : "WEB",
"url" : "https://git.moodle.org/gw?p=moodle.git;a=commitdiff;h=025e0297b65e6a8bd61efad0fdf36168c613f918"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/moodle/moodle"
}, {
"type" : "WEB",
"url" : "https://moodle.org/mod/forum/discuss.php?d=438761"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-285" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-03-24T21:59:29Z",
"nvd_published_at" : "2023-03-24T20:15:00Z"
}
}