CVE-2012-0797
Moodle Users Can Bypass Deleted Status
Also known as GHSA-72gv-qqrp-h9qg
Mitigation
- Upgrade moodle/moodle to one of 2.2.1, 2.1.4, 2.0.7 (or later in the same release line).
Who should check
- Projects that depend on Packagist package moodle/moodle (>= 2.2, < 2.2.1)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- moodle/moodle >= 2.2, < 2.2.1
- Fixed in
- 2.2.1, 2.1.4, 2.0.7
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.5 (v2.0, NVD)AV:N/AC:L/Au:S/C:P/I:P/A:N
Show all 6 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Authentication: Single
- Confidentiality impact: Partial
- Integrity impact: Partial
- Availability impact: None
- EPSS
- 1.07% chance of exploitation in 30 days (percentile 64, 2026-11-26)
- CWE
- CWE-16
- Modified
Description
The webservices functionality in Moodle 2.0.x before 2.0.7, 2.1.x before 2.1.4, and 2.2.x before 2.2.1 allows remote authenticated users to bypass the deleted status and continue using a server via a token.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist moodle/moodle | >= 2.2, < 2.2.1 | 2.2.1, 2.1.4, 2.0.7 | 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-2012-0797. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2012-0797.md Affected: moodle/moodle >= 2.2, < 2.2.1 Fixed in: 2.2.1, 2.1.4, 2.0.7 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/364622b4662d9f349f3701ed548cda2f31491fea
- https://github.com/moodle/moodle/commit/bbcde38b334ecbfa2a18b01b77a7e995b2c0d9f7
- https://github.com/moodle/moodle/commit/dbfa519ad9e4d33ac3a4cd506d606d56a2f0bbff
- https://github.com/moodle/moodle/commit/e922d9a90bab337b1082fbe28c352c18cae2580e
FAQ
Is CVE-2012-0797 being exploited?
There is no confirmed exploitation: CVE-2012-0797 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.07% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2012-0797?
Medium: CVSS 5.5 (v2.0, scored by NVD). Remote, login needed.
Which versions are affected by CVE-2012-0797?
moodle/moodle >= 2.2, < 2.2.1.
Is there a fix for CVE-2012-0797?
Yes. Fixed in 2.2.1, 2.1.4, 2.0.7. Upgrade moodle/moodle to one of 2.2.1, 2.1.4, 2.0.7 (or later in the same release line).
How do I check if I'm affected by CVE-2012-0797?
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.