CVE-2016-7038
Moodle Weak Password Recovery Mechanism for Forgotten Password
In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
NVD Score used
7.3
In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.
- Record
CVE-2016-7038- CVSS 3.0
- 7.3 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:P/I:N/A:N - Weakness
- CWE-640
- Updated
- 2026-11-02
CVE List No score
In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.
- Record
CVE-2016-7038- Updated
- 2026-11-02
EUVDEUVD-2022-2024 No score
In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.
- Record
EUVD-2022-2024- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-2phx-w35g-x9vm
7.3
Moodle Weak Password Recovery Mechanism for Forgotten Password
In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.
- Record
GHSA-2phx-w35g-x9vm- CVSS 3.0
- 7.3 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-640
- Updated
- 2026-11-02
OSV
7.3
In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.
- Record
CVE-2016-7038- CVSS 3.0
- 7.3 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
OSVGHSA-2phx-w35g-x9vm
7.3
Moodle Weak Password Recovery Mechanism for Forgotten Password
In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.
- Record
GHSA-2phx-w35g-x9vm- CVSS 3.0
- 7.3 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Weakness
- CWE-640
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-7038
7.3
In Moodle 2.x and 3.x, web service tokens are not invalidated when the user password is changed or forced to be changed.
- Record
UBUNTU-CVE-2016-7038- CVSS 3.0
- 7.3 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
moodle/moodlePackagist |
2.7 up to 2.7.16 | 2.7.16 |
moodle/moodlePackagist |
2.9 up to 2.9.8 | 2.9.8 |
moodle/moodlePackagist |
3.0 up to 3.0.6 | 3.0.6 |
moodle/moodlePackagist |
3.1 up to 3.1.2 | 3.1.2 |
moodle/moodlePackagist |
2.7 up to 2.7.16, plus listed versions v2.7.0v2.7.0-betav2.7.0-rc1v2.7.0-rc2v2.7.1 Show 14 moreShow lessv2.7.10v2.7.11v2.7.12v2.7.13v2.7.14v2.7.15v2.7.2v2.7.3v2.7.4v2.7.5v2.7.6v2.7.7v2.7.8v2.7.9 |
2.7.16 |
moodle/moodlePackagist |
2.9 up to 2.9.8, plus listed versions v2.9.0v2.9.0-betav2.9.0-rc1v2.9.0-rc2v2.9.1 Show 6 moreShow lessv2.9.2v2.9.3v2.9.4v2.9.5v2.9.6v2.9.7 |
2.9.8 |
moodle/moodlePackagist |
3.0 up to 3.0.6, plus listed versions v3.0.0v3.0.0-betav3.0.0-rc1v3.0.0-rc2v3.0.0-rc3 Show 6 moreShow lessv3.0.0-rc4v3.0.1v3.0.2v3.0.3v3.0.4v3.0.5 |
3.0.6 |
moodle/moodlePackagist |
3.1 up to 3.1.2, plus listed versions v3.1.0v3.1.0-betav3.1.0-rc1v3.1.0-rc2v3.1.1 |
3.1.2 |
moodleUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 2.7.9+dfsg-12.7.10+dfsg-12.7.11+dfsg-12.7.11+dfsg-22.7.12+dfsg-13.0.3+dfsg-0ubuntu13.0.3+dfsg-0ubuntu1+esm1 |
None known |
moodleUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 3.0.3+dfsg-0ubuntu13.0.3+dfsg-0ubuntu1+esm1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-7038 is a high vulnerability (CVSS 7.3) in Moodle, published January 20, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.97%, the 62nd percentile. Fixed in moodle/moodle 2.7.16.