CVE-2015-3181
Moodle allows attackers to bypass file-management restrictions
Also known as GHSA-622h-cjgg-5mx6
Mitigation
- Upgrade moodle/moodle to one of 2.6.11, 2.7.8, 2.8.6 (or later in the same release line).
Who should check
- Projects that depend on Packagist package moodle/moodle (< 2.6.11)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- moodle/moodle < 2.6.11
- Fixed in
- 2.6.11, 2.7.8, 2.8.6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 4.0 (v2.0, NVD)AV:N/AC:L/Au:S/C:N/I:P/A:N
Show all 6 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Authentication: Single
- Confidentiality impact: None
- Integrity impact: Partial
- Availability impact: None
- EPSS
- 1.70% chance of exploitation in 30 days (percentile 78, 2026-11-26)
- CWE
- CWE-264
- Modified
Description
files/externallib.php in Moodle through 2.5.9, 2.6.x before 2.6.11, 2.7.x before 2.7.8, and 2.8.x before 2.8.6 does not consider the moodle/user:manageownfiles capability before approving a private-file upload, which allows remote authenticated users to bypass intended file-management restrictions by using web services to perform uploads after this capability has been revoked.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist moodle/moodle | < 2.6.11 | 2.6.11, 2.7.8, 2.8.6 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2015-3181. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2015-3181.md Affected: moodle/moodle < 2.6.11 Fixed in: 2.6.11, 2.7.8, 2.8.6 Steps: 1. Search this machine and project for moodle/moodle (Packagist), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/moodle/moodle/commit/350397da93c557f577e7d62e7fc3e233792ad171
- https://github.com/moodle/moodle/commit/4b6b64685affa66784fd238c1bbc1eb0651492a0
- https://github.com/moodle/moodle/commit/57d9a750e3da6708dba13513e9b05e84a895ad9f
- https://github.com/moodle/moodle/commit/8e8ee7530427a10e409386657484e9fd5effc438
Other
- http://www.securityfocus.com/bid/74728
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-49994
- http://www.securitytracker.com/id/1032358
- http://openwall.com/lists/oss-security/2015/05/18/1
- https://github.com/moodle/moodle
- https://web.archive.org/web/20200228054133/http://www.securityfocus.com/bid/74728
- https://web.archive.org/web/20201030042703/http://www.securitytracker.com/id/1032358
FAQ
Is CVE-2015-3181 being exploited?
There is no confirmed exploitation: CVE-2015-3181 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.70% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2015-3181?
Medium: CVSS 4.0 (v2.0, scored by NVD). Remote, login needed.
Which versions are affected by CVE-2015-3181?
moodle/moodle < 2.6.11.
Is there a fix for CVE-2015-3181?
Yes. Fixed in 2.6.11, 2.7.8, 2.8.6. Upgrade moodle/moodle to one of 2.6.11, 2.7.8, 2.8.6 (or later in the same release line).
How do I check if I'm affected by CVE-2015-3181?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.