CVE-2013-1831
Moodle reveals absolute path in exception message
Reported by redhat · Published March 25, 2013
moodle/moodle is fixed in 2.4.2, 2.3.5, 2.2.8 and 1 more (Packagist)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| moodle/moodle | Packagist | 2.4.2, 2.3.5, 2.2.8, 2.1.10 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| moodle | moodle | 0, 2.2.0, 2.3.0 |
Timeline
- Mar 11, 2013 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Oct 24, 2025 CVE Updated
- Mar 17, 2026 Security Advisory
- Oct 24, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2013-1831
vulnetix vdb fixes CVE-2013-1831
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2013-1831/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2013-4387 vendor-advisoryx_refsource_FEDORA
- FEDORA-2013-4404 vendor-advisoryx_refsource_FEDORA
- [oss-security] 20130325 Moodle security notifications public mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- https://github.com/moodle/moodle/commit/2c7cdbb3b0b6ba4dd64297463d37a5acbd730216 fix
- https://github.com/moodle/moodle/commit/53c66110a878f4f4644728138ea97c22990263e3 fix
- https://github.com/moodle/moodle/commit/8d220cb552d9c55b98aef70e2f40ef560efeb79b fix
- https://github.com/moodle/moodle/commit/b3daaada49a2dd83a4f1e832465d5c318f9f275c fix
- https://nvd.nist.gov/vuln/detail/CVE-2013-1831 advisory
- https://github.com/advisories/GHSA-xr24-jp5c-6c4v advisory