-
CVSS Score
-The vulnerability stems from the original implementation of the filter method in filter.php, which directly applied a complex regex to the entire input via preg_replace_callback. The regex's structure (with nested quantifiers and ambiguous anchors) made it susceptible to ReDoS when processing maliciously crafted <a> tags. The commit explicitly addresses this by introducing input splitting and size checks, confirming the function's role in the vulnerability.
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| moodle/moodle | composer | < 2.6.7 | 2.6.7 |
| moodle/moodle | composer | >= 2.7.0, < 2.7.4 | 2.7.4 |
| moodle/moodle | composer | >= 2.8.0, < 2.8.2 | 2.8.2 |