CVE-2024-43427
Low · 3.7Moodle admin presets export tool includes some secrets that should not be exported
CVSS
3.7
EPSS
0.3%
Published
Nov 11, 2024
CISA due date
—
Cloudanix analysis
A configuration export feature in this learning platform can accidentally include passwords and keys when files are shared with outsiders.
- Exploitation
- Other
- Attacker needs
- Low Privilege
- Complexity
- Theoretical
- Impact
- Data Exposure
- Component
- Application
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Sensitive secrets and keys are not excluded from exported site administration presets, allowing them to be included in the export file.
Why it matters to the business
Organizations risk accidental exposure of credentials or keys when sharing configuration presets with external parties, potentially leading to unauthorized access or compliance issues.
How an attack unfolds
An attacker convinces an administrator to generate and share a site preset export; the exported file inadvertently contains secrets that the attacker can then extract and use.
How to fix it
Upgrade moodle/moodle to the fixed commit aea9770cfc7d003a737f4899489d1e3982efe9ac; ensure presets are reviewed before sharing.
How to confirm the fix worked
Confirm the commit aea9770cfc7d003a737f4899489d1e3982efe9ac is present in the codebase and test that new preset exports exclude secrets.
Typical attack path
- Identify Moodle instance and persuade administrator to export site presets
- Receive the exported preset file
- Parse the file to extract any included secrets or keys
- Use extracted credentials for further access or attacks
How to detect it
Review exported preset files for unexpected credential patterns; monitor for unusual sharing of preset files containing configuration data.
What your security team should do
- Apply the fix commit immediately to prevent future leaks
- Audit any previously shared presets for accidental secret exposure
- Implement policies requiring secret review before preset sharing
The record
A flaw was found in moodle. When creating an export of site administration presets, some sensitive secrets and keys are not being excluded from the export, which could result in them unintentionally being leaked if the presets are shared with a third party.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Packagist | moodle/moodle | 0 | 4.1.12 |
| Packagist | moodle/moodle | 4.2.0 | 4.2.9 |
| Packagist | moodle/moodle | 4.3.0 | 4.3.6 |
| Packagist | moodle/moodle | 4.4.0 | 4.4.2 |
| Bitnami | moodle | 0 | 4.1.12 |
| Ubuntu:16.04:LTS | moodle | 0 | No fix |
| Ubuntu:18.04:LTS | moodle | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | moodle | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | moodle | 0 | No fix |
| packagist | moodle/moodle | 4.2.0 | 4.2.9 |
| packagist | moodle/moodle | 4.3.0 | 4.3.6 |
| packagist | moodle/moodle | 4.4.0 | 4.4.2 |
Related vulnerabilities
- GHSA-ggxq-2mg9-8966 Moodle has a Remote Code Execution risk via file restore Also affects moodle/moodle
- GHSA-cg8j-5cr2-568q Moodle TeX formula editor is vulnerable to DoS through lack of execution time limits Also affects moodle/moodle
- CVE-2026-26047 A denial-of-service vulnerability was identified in Moodle’s TeX formula editor. Also affects moodle/moodle
- CVE-2026-26045 A flaw was identified in Moodle’s backup restore functionality where specially crafted… Also affects moodle/moodle
- GHSA-5cx4-w4fh-fr57 Moodle Affected by Improper Restriction of Excessive Authentication Attempts Also affects moodle/moodle
- GHSA-8jrv-wx83-w3xj Moodle Inserts Sensitive Information Into Sent Data Also affects moodle/moodle
- GHSA-hcm6-q6pc-xfhm Moodle has an authorization logic flaw Also affects moodle/moodle
- GHSA-qv78-6gpp-hm68 Moodle Open Redirect vulnerability Also affects moodle/moodle