# CVE-2022-0335: Cross Site Request Forgery in Moodle

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-02)
- Published: 2022-01-25T19:11:12.000Z
- Modified: 2026-09-08T08:48:14.846Z
- Also known as: GHSA-xpfv-89vg-r562, BIT-MOODLE-2022-0335
- Weaknesses: CWE-352
- Assigned by: fedora

## Description

A flaw was found in Moodle in versions 3.11 to 3.11.4, 3.10 to 3.10.8, 3.9 to 3.9.11 and earlier unsupported versions. The "delete badge alignment" functionality did not include the necessary token check to prevent a CSRF risk.

(As written by CVE List.)

## Affected

- moodle: moodle 3.11.5, moodle 3.10.9 and moodle 3.9.12
- moodle/moodle (Packagist): from 3.11 before 3.11.5; from 3.10 before 3.10.8; from 3.9 before 3.9.11
- moodle moodle: up to 3.8.9; from 3.9.0 before 3.9.12; from 3.10.0 before 3.10.9; from 3.11.0 before 3.11.5
- moodle (Bitnami): before 3.8.10; from 3.9.0 before 3.9.12; from 3.10.0 before 3.10.9; from 3.11.0 before 3.11.5

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2043666> (advisory, issue-tracking, third-party-advisory, web)
- <https://moodle.org/mod/forum/discuss.php?d=431103> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-0335> (advisory, web)
- <https://github.com/moodle/moodle/commit/d40cc61eba229c6d1f47b9a525022fbc9136b9f6> (web)
- <https://github.com/moodle/moodle> (package)

## Sources

- CVE List: [CVE-2022-0335](https://www.cve.org/CVERecord?id=CVE-2022-0335), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-xpfv-89vg-r562](https://github.com/advisories/GHSA-xpfv-89vg-r562), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2022-0335](https://nvd.nist.gov/vuln/detail/CVE-2022-0335), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2022-0335](https://osv.dev/vulnerability/BIT-MOODLE-2022-0335), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-0335 · Whole record: https://cve.day/CVE-2022-0335.json · Rebuilt by cve.day 2026-11-25T22:58:09.409Z
