CVE-2014-7831: Moodle exposes hidden grades to students

moodle/moodle Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Moderate
Not published

CVE-2014-7831: Moodle exposes hidden grades to students. Affects moodle/moodle versions >= 2.7.0, < 2.7.3. Fixed in 2.7.3. How to fix ↓

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

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 (LMS) used by educational institutions worldwide. It provides a platform for creating and managing online courses, allowing teachers to deliver content, interact with students, and assess their progress. Moodle offers various features, including a grading system that allows instructors to assign and track grades for students. However, a vulnerability in Moodle versions 2.7.x before 2.7.3 exposes hidden grades to students, compromising the confidentiality of sensitive information.

Vulnerability Detail

The vulnerability resides in the 'grades_external.php' file in Moodle. The system fails to consider the 'moodle/grade:viewhidden' capability before displaying hidden grades. As a result, remote authenticated users with the student role can exploit this flaw to access the 'get_grades' web service and obtain sensitive information. This vulnerability has a moderate severity rating and is assigned the CVE identifier CVE-2014-7831. It was published on May 13, 2022, and its details can be found in the GitHub Security Advisory GHSA-59j6-8g7w-prf7.

How To Fix

Minimum fixed version

2.7.3

This is the first release that contains the fix.

composer require moodle/moodle:2.7.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, users can mitigate the risk by ensuring that only authorized users have the student role and restricting access to the 'get_grades' web service. Additionally, implementing proper access controls and regularly reviewing user roles and permissions can help prevent unauthorized access to sensitive information.

Conclusion

In conclusion, Moodle versions 2.7.x before 2.7.3 are vulnerable to exposing hidden grades to students. This can be exploited by remote authenticated users with the student role, compromising the confidentiality of sensitive information. To mitigate this risk, it is recommended to upgrade Moodle to version 2.7.3 or later. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

Moodle is an open-source learning management system (LMS) used by educational institutions to create and manage online courses.

This vulnerability allows remote authenticated users with the student role to access hidden grades, compromising the confidentiality of sensitive information.

To fix this vulnerability, upgrade Moodle to version 2.7.3 or later, which includes the necessary fix to properly consider the 'moodle/grade:viewhidden' capability.

While no specific workaround is mentioned, users can mitigate the risk by ensuring proper access controls and restricting access to the 'get_grades' web service.

This vulnerability has a moderate severity rating, indicating a potential impact on the confidentiality of sensitive information.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

How To Fix

Minimum fixed version

2.7.3

This is the first release that contains the fix.

composer require moodle/moodle:2.7.3

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.