CVE-2025-26525:
Moodle has an arbitrary file read risk through pdfTeX
8.6
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.18561%
CWE
Published
2/24/2025
Updated
2/24/2025
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
moodle/moodle | composer | >= 4.5.0-beta, < 4.5.2 | 4.5.2 |
moodle/moodle | composer | >= 4.4.0-beta, < 4.4.6 | 4.4.6 |
moodle/moodle | composer | >= 4.3.0-beta, < 4.3.10 | 4.3.10 |
moodle/moodle | composer | < 4.1.16 | 4.1.16 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient sanitization in the TeX notation filter. The commit reference MDL-84136 and patch context mention improvements to 'filter_tex' sanitization. Moodle's TeX filter (filter_tex::filter in filter/tex/filter.php) handles user-provided TeX content and passes it to pdfTeX. Prior to patching, it likely failed to properly sanitize commands that enable arbitrary file inclusion (e.g., \input{/etc/passwd}). This matches the CWE-552 pattern of exposing files via external command execution. The confidence is high due to the direct correlation between the vulnerability description, CWE type, and the filter_tex component explicitly mentioned in the commit reference.