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

- Severity: Medium 5.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- 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.51%, higher than 45% of CVEs (2026-12-01)
- Published: 2022-11-23T00:00:00.000Z
- Modified: 2026-06-17T05:09:28.363Z
- Also known as: GHSA-8v23-w4w5-w83c, BIT-MOODLE-2022-45149
- Weaknesses: CWE-352
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: fedora

## Description

A vulnerability was found in Moodle which exists due to insufficient validation of the HTTP request origin in course redirect URL. A user's CSRF token was unnecessarily included in the URL when being redirected to a course they have just restored. A remote attacker can trick the victim to visit a specially crafted web page and perform arbitrary actions on behalf of the victim on the vulnerable website. This flaw allows an attacker to perform cross-site request forgery attacks.

(As written by CVE List.)

## Affected

- Moodle: Fixed in moodle 4.0.5, moodle 3.11.11, moodle 3.9.18
- moodle/moodle (Packagist): from 3.9.0 before 3.9.18; from 3.11.0 before 3.11.11; from 4.0.0 before 4.0.5
- moodle moodle: from 3.9.0 before 3.9.18; from 3.11.0 before 3.11.11; from 4.0.0 before 4.0.5
- fedoraproject fedora: 35; 36; 37
- moodle (Bitnami): from 3.9.0 before 3.9.18; from 3.11.0 before 3.11.11; from 4.0.0 before 4.0.5

## Every score

- CISA-ADP: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2142772> (web)
- <https://moodle.org/mod/forum/discuss.php?d=440769> (web)
- <http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-75862> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/74SXNGA5RIWM7QNX7H3G7SYIQLP4UUGV/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NLRJB5JNKK3VVBLV3NH3RI7COEDAXSAB/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2DHYIIAUXUBHMBEDYU7TYNZXEN2W2SA2/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-45149> (advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2DHYIIAUXUBHMBEDYU7TYNZXEN2W2SA2> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/74SXNGA5RIWM7QNX7H3G7SYIQLP4UUGV> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NLRJB5JNKK3VVBLV3NH3RI7COEDAXSAB> (web)

## Sources

- CVE List: [CVE-2022-45149](https://www.cve.org/CVERecord?id=CVE-2022-45149), CVE Terms of Use, modified 2025-04-25
- GitHub Advisory Database: [GHSA-8v23-w4w5-w83c](https://github.com/advisories/GHSA-8v23-w4w5-w83c), CC-BY-4.0, modified 2024-02-18
- NVD: [CVE-2022-45149](https://nvd.nist.gov/vuln/detail/CVE-2022-45149), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2022-45149](https://osv.dev/vulnerability/BIT-MOODLE-2022-45149), Apache-2.0, modified 2025-04-03

---

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