---
title: "moodle/moodle: functions and files changed by CVE fixes"
url: https://radicalnotion.ai/fixes/moodle/moodle
type: fixes-repository
description: "276 CVE fixes in moodle/moodle changed 622 functions across 523 files."
updated: 2026-11-19
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# moodle/moodle: patched functions

- **CVEs with a located fix:** 276
- **Functions patched:** 622
- **Files patched:** 523
- **Diff hunks:** 2,456
- **Languages:** php, javascript, html, template
- **Rank by CVE fixes:** 6 of 12,313
- **First fix:** 2010-04-29
- **Latest fix:** 2026-11-19
- **Repository:** [https://github.com/moodle/moodle](https://github.com/moodle/moodle)

## Typical fix size

- Median lines changed per fix: 18
- Fixes touching a single function: 38%
- Fixes under 20 changed lines: 53%

## Most-patched functions

| Function | File | CVEs | Patches | Last fixed |
| --- | --- | --- | --- | --- |
| [forum\_print\_discussion\_header](https://radicalnotion.ai/fixes/moodle/moodle/forum_print_discussion_header) | mod/forum/lib.php | 2 | 12 | 2017-04-20 |
| [display\_instances\_list](https://radicalnotion.ai/fixes/moodle/moodle/display_instances_list) | repository/lib.php | 1 | 8 | 2014-07-29 |
| [setTypes](https://radicalnotion.ai/fixes/moodle/moodle/setTypes) | lib/formslib.php | 1 | 8 | 2013-05-25 |
| [blog\_comment\_validate](https://radicalnotion.ai/fixes/moodle/moodle/blog_comment_validate) | blog/lib.php | 1 | 6 | 2013-05-25 |
| [require\_login](https://radicalnotion.ai/fixes/moodle/moodle/require_login) | lib/moodlelib.php | 2 | 5 | 2019-03-27 |
| [forum\_print\_latest\_discussions](https://radicalnotion.ai/fixes/moodle/moodle/forum_print_latest_discussions) | mod/forum/lib.php | 1 | 5 | 2017-04-20 |
| [choice\_get\_availability\_status](https://radicalnotion.ai/fixes/moodle/moodle/choice_get_availability_status) | mod/choice/lib.php | 1 | 5 | 2016-02-22 |
| [get\_exception\_info](https://radicalnotion.ai/fixes/moodle/moodle/get_exception_info) | lib/setuplib.php | 3 | 4 | 2015-06-01 |
| [get\_calendar\_events](https://radicalnotion.ai/fixes/moodle/moodle/get_calendar_events) | calendar/externallib.php | 2 | 4 | 2016-05-22 |
| [clean\_param](https://radicalnotion.ai/fixes/moodle/moodle/clean_param) | lib/moodlelib.php | 2 | 4 | 2016-02-22 |
| [get\_qrlogin\_key](https://radicalnotion.ai/fixes/moodle/moodle/get_qrlogin_key) | admin/tool/mobile/classes/api.php | 1 | 4 | 2024-06-18 |
| [view\_fix\_rescaled\_null\_grades](https://radicalnotion.ai/fixes/moodle/moodle/view_fix_rescaled_null_grades) | mod/assign/locallib.php | 1 | 4 | 2024-06-18 |
| [data\_print\_preference\_form](https://radicalnotion.ai/fixes/moodle/moodle/data_print_preference_form) | mod/data/lib.php | 1 | 4 | 2016-05-22 |
| [purify\_html](https://radicalnotion.ai/fixes/moodle/moodle/purify_html) | lib/weblib.php | 1 | 4 | 2016-05-22 |
| [random\_string](https://radicalnotion.ai/fixes/moodle/moodle/random_string) | lib/moodlelib.php | 1 | 4 | 2016-02-22 |

## Most-patched files

| File | CVEs | Functions |
| --- | --- | --- |
| mod/forum/lib.php | 6 | 13 |
| lib/moodlelib.php | 6 | 5 |
| message/externallib.php | 4 | 12 |
| enrol/locallib.php | 4 | 5 |
| mod/lesson/locallib.php | 4 | 5 |
| lib/weblib.php | 4 | 4 |
| backup/moodle2/restore\_stepslib.php | 4 | 3 |
| repository/lib.php | 3 | 13 |
| repository/equella/lib.php | 3 | 8 |
| enrol/externallib.php | 3 | 6 |

## Latest CVE fixes

| CVE | Title | Severity | CVSS | CISA KEV | Functions changed | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-133075 | Moodle: idor in quiz random question filter web service | medium | 4.3 | No | execute | 2026-11-19 |
| CVE-2026-133074 | Moodle: idor in quiz overrides web service | medium | 4.3 | No | validate\_against\_existing\_record | 2026-11-19 |
| CVE-2026-133073 | Moodle: missing capability check in single view grade report web service | medium | 4.3 | No | get\_grade\_items\_for\_search\_widget | 2026-11-19 |
| CVE-2026-133072 | Moodle: idor in quiz editing allows modification of other quizzes' sections | medium | 5.4 | No | remove\_section\_heading, set\_section\_heading, set\_section\_shuffle | 2026-11-19 |
| CVE-2026-133071 | Moodle: idor in lesson page editing allows moving pages from other courses | medium | 5.4 | No | load | 2026-11-19 |
| CVE-2026-133070 | Moodle: idor allows viewing of wiki page versions from other courses | medium | 4.3 | No | set\_versionid | 2026-11-19 |
| CVE-2026-133069 | Moodle: idor in forum discussion lock and subscription web services | medium | 5.4 | No | set\_lock\_state, set\_subscription\_state | 2026-11-19 |
| CVE-2026-133068 | Moodle: idor allows viewing of glossary entries from other courses | medium | 4.3 | No | - | 2026-11-19 |
| CVE-2026-133067 | Moodle: idor in badge alignments | medium | 5.4 | No | definition, save\_alignment | 2026-11-19 |
| CVE-2026-133066 | Moodle: idor in feedback activity templates | medium | 5.4 | No | get\_template\_record\_if\_accessible, process\_dynamic\_submission | 2026-11-19 |
| CVE-2026-133065 | Moodle: missing access checks in quiz question bank fragment callback | medium | 4.3 | No | mod\_quiz\_output\_fragment\_question\_data, \_\_construct, get\_column\_type | 2026-11-19 |
| CVE-2026-133064 | Moodle: stored xss in scorm objectives report | medium | 4.6 | No | get\_scorm\_objectives, display | 2026-11-19 |

## Frequently asked questions

### How many CVEs have a located fix in moodle/moodle?

276 published CVEs have a fix traced to functions in moodle/moodle, touching 622 functions across 523 files.

### Which function in moodle/moodle has been patched most often?

forum\_print\_discussion\_header in mod/forum/lib.php has been changed by 12 distinct patches, fixing 2 CVEs, from 2014 to 2017.

### How large is a typical CVE fix in moodle/moodle?

The median fix changes 18 lines. 53% of fixes change 20 lines or fewer, and 38% change a single function.

### How is a fix located to a function?

The upstream fix commit for each CVE is fetched and its diff is split into hunks. Each hunk is attributed to the function, method or type it changes, using the definition the diff itself names. Backports of the same fix to stable branches are counted once.

## Similar repositories

- [gpac/gpac](https://radicalnotion.ai/fixes/gpac/gpac) (262 CVEs)
- [zephyrproject-rtos/zephyr](https://radicalnotion.ai/fixes/zephyrproject-rtos/zephyr) (256 CVEs)
- [FFmpeg/FFmpeg](https://radicalnotion.ai/fixes/ffmpeg/ffmpeg) (245 CVEs)
- [apache/airflow](https://radicalnotion.ai/fixes/apache/airflow) (225 CVEs)
- [chakra-core/ChakraCore](https://radicalnotion.ai/fixes/chakra-core/chakracore) (225 CVEs)
- [vim/vim](https://radicalnotion.ai/fixes/vim/vim) (222 CVEs)
- [go-gitea/gitea](https://radicalnotion.ai/fixes/go-gitea/gitea) (217 CVEs)
- [ImageMagick/ImageMagick](https://radicalnotion.ai/fixes/imagemagick/imagemagick) (344 CVEs)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/fixes/moodle/moodle). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
