CVE-2016-8642: Moodle/moodle Moodle Unauthenticated Access Vulnerability
MODERATECVE-2016-8642 is a MODERATE (CVSS 5.3) moodle unauthenticated access vulnerability (CWE-284: Improper Access Control) affecting Moodle/moodle libraries in the Packagist ecosystem. The issue involves moodle unauthenticated access. Remediation is available by upgrading affected packages to version 3.1.3, 3.0.7, 2.9.9, 2.7.17.
CVE-2016-8642 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2016-8642
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 3.1.3
Upgrade moodle/moodle to 3.0.7
Upgrade moodle/moodle to 2.9.9
Upgrade moodle/moodle to Latest secure release
Upgrade moodle/moodle to 2.7.17
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-2016-8642, 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 3.1.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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. 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-2016-8642 Affected Moodle/moodle Versions
5 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
moodle/moodle
|
Packagist |
≥ 3.1.0
< 3.1.3
|
3.1.3
|
|
moodle/moodle
|
Packagist |
≥ 3.0.0
< 3.0.7
|
3.0.7
|
|
moodle/moodle
|
Packagist |
≥ 2.9.0
< 2.9.9
|
2.9.9
|
|
moodle/moodle
|
Packagist |
≥ 2.8.0
≤ 2.8.12
|
|
|
moodle/moodle
|
Packagist |
≥ 2.7.0
< 2.7.17
|
2.7.17
|
References
Frequently Asked Questions
What is CVE-2016-8642?
Which Moodle/moodle versions are affected?
What version fixes CVE-2016-8642?
Is moodle/moodle affected?
What is the CVSS score of CVE-2016-8642?
What CWE is associated with CVE-2016-8642?
How can I check Packagist dependencies for CVE-2016-8642?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x32v-7qw8-cpq8",
"modified" : "2023-11-02T13:25:12Z",
"published" : "2022-05-13T01:12:40Z",
"aliases" : [ "CVE-2016-8642" ],
"summary" : "Moodle Unauthenticated Access",
"details" : "In Moodle 2.x and 3.x, the question engine allows access to files that should not be available.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.1.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.1.2"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.0.7"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.0.6"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.9.0"
}, {
"fixed" : "2.9.9"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.9.8"
}
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.8.0"
}, {
"last_affected" : "2.8.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.7.0"
}, {
"fixed" : "2.7.17"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.7.16"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-8642"
}, {
"type" : "WEB",
"url" : "https://github.com/moodle/moodle/commit/cf0b9432d81ba9d5763e4894f82c95ca9fbf548f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/moodle/moodle"
}, {
"type" : "WEB",
"url" : "https://moodle.org/mod/forum/discuss.php?d=343275"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20210123193602/http://www.securityfocus.com/bid/94441"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-28T23:17:40Z",
"nvd_published_at" : "2017-01-20T08:59:00Z"
}
}