CVE-2013-1831
Moodle reveals absolute path in exception message
lib/setuplib.php in Moodle through 2.1.10, 2.2.x before 2.2.8, 2.3.x before 2.3.5, and 2.4.x before 2.4.2 allows remote attackers to obtain sensitive information via an invalid request, which reveals the absolute path in an exception message.
Exploit likelihood
What each source reports
NVD Score used
5.0
lib/setuplib.php in Moodle through 2.1.10, 2.2.x before 2.2.8, 2.3.x before 2.3.5, and 2.4.x before 2.4.2 allows remote attackers to obtain sensitive information via an invalid request, which reveals the absolute path in an exception message.
- Record
CVE-2013-1831- CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:P/I:N/A:N - Weakness
- CWE-200
- Updated
- 2026-11-02
CVE List No score
lib/setuplib.php in Moodle through 2.1.10, 2.2.x before 2.2.8, 2.3.x before 2.3.5, and 2.4.x before 2.4.2 allows remote attackers to obtain sensitive information via an invalid request, which reveals the absolute path in an exception message.
- Record
CVE-2013-1831- Updated
- 2026-11-02
EUVDEUVD-2022-5846 No score
lib/setuplib.php in Moodle through 2.1.10, 2.2.x before 2.2.8, 2.3.x before 2.3.5, and 2.4.x before 2.4.2 allows remote attackers to obtain sensitive information via an invalid request, which reveals the absolute path in an exception message.
- Record
EUVD-2022-5846- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-xr24-jp5c-6c4v No score
Moodle reveals absolute path in exception message
lib/setuplib.php in Moodle through 2.1.10, 2.2.x before 2.2.8, 2.3.x before 2.3.5, and 2.4.x before 2.4.2 allows remote attackers to obtain sensitive information via an invalid request, which reveals the absolute path in an exception message.
- Record
GHSA-xr24-jp5c-6c4v- Weakness
- CWE-200
- Updated
- 2026-11-02
OSVGHSA-xr24-jp5c-6c4v No score
Moodle reveals absolute path in exception message
lib/setuplib.php in Moodle through 2.1.10, 2.2.x before 2.2.8, 2.3.x before 2.3.5, and 2.4.x before 2.4.2 allows remote attackers to obtain sensitive information via an invalid request, which reveals the absolute path in an exception message.
- Record
GHSA-xr24-jp5c-6c4v- Weakness
- CWE-200
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2013-1831 No score
lib/setuplib.php in Moodle through 2.1.10, 2.2.x before 2.2.8, 2.3.x before 2.3.5, and 2.4.x before 2.4.2 allows remote attackers to obtain sensitive information via an invalid request, which reveals the absolute path in an exception message.
- Record
UBUNTU-CVE-2013-1831- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
moodle/moodlePackagist |
through 2.1.10 | None known |
moodle/moodlePackagist |
2.2.0 up to 2.2.8 | 2.2.8 |
moodle/moodlePackagist |
2.3.0 up to 2.3.5 | 2.3.5 |
moodle/moodlePackagist |
2.4.0 up to 2.4.2 | 2.4.2 |
moodle/moodlePackagist |
2.3.0 up to 2.3.5, plus listed versions v2.3.4 |
2.3.5 |
moodle/moodlePackagist |
2.4.0 up to 2.4.2, plus listed versions v2.4.0v2.4.1 |
2.4.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-2013-1831 is a medium vulnerability (CVSS 5.0) in Moodle, published March 11, 2013. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.60%, the 76th percentile. Fixed in moodle/moodle 2.2.8.
References
lists.fedoraproject.org/pipermail/package-announce/2013-April/101358.html
lists.fedoraproject.org/pipermail/package-announce/2013-April/101310.html
openwall.com/lists/oss-security/2013/03/25/2
git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-36901
moodle.org/mod/forum/discuss.php?d=225342
nvd.nist.gov/vuln/detail/CVE-2013-1831
Show 8 moreShow less
github.com/moodle/moodle/commit/2c7cdbb3b0b6ba4dd64297463d37a5acbd730216
github.com/moodle/moodle/commit/53c66110a878f4f4644728138ea97c22990263e3
github.com/moodle/moodle/commit/8d220cb552d9c55b98aef70e2f40ef560efeb79b
github.com/moodle/moodle/commit/b3daaada49a2dd83a4f1e832465d5c318f9f275c
github.com/advisories/GHSA-xr24-jp5c-6c4v
github.com/moodle/moodle
ubuntu.com/security/CVE-2013-1831
cve.org/CVERecord?id=CVE-2013-1831