CVE-2024-43428
High · 7.7Moodle vulnerable to cache poisoning via injection into storage
CVSS
7.7
EPSS
0.2%
Published
Nov 7, 2024
CISA due date
—
Cloudanix analysis
A problem in how Moodle stores and reuses certain data could let someone feed the system bad information that then gets shown to other users.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Data Tampering
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Insufficient validation of data stored in local cache allows an attacker to inject crafted entries that are later served to other users without further checks.
Why it matters to the business
Users of the affected learning platform may receive incorrect or attacker-controlled content, eroding trust, disrupting course delivery, and requiring emergency maintenance; the issue affects a widely deployed open-source education system with no ransomware association and low exploitation probability.
How an attack unfolds
An attacker supplies specially formatted data through a local-storage interface that bypasses existing checks; the poisoned entry is persisted in cache and subsequently delivered to legitimate users who request the same resource.
How to fix it
Upgrade Moodle to the commit aea9770cfc7d003a737f4899489d1e3982efe9ac or later; for the listed Ubuntu 16.04 ffmpeg package apply version 7:2.8.3-1 or newer.
How to confirm the fix worked
Confirm the installed codebase contains commit aea9770cfc7d003a737f4899489d1e3982efe9ac; review cache-handling code paths for the added validation logic and re-run any existing cache-poisoning test cases.
Typical attack path
- Locate a publicly reachable Moodle instance
- Identify endpoints or parameters that accept local-storage data
- Submit crafted input designed to survive cache insertion
- Trigger cache population by accessing the affected resource
- Observe or force other users to retrieve the poisoned cache entry
How to detect it
Inspect application and cache logs for unexpected entries or validation failures around local-storage operations; correlate with user activity that precedes cache population events.
What your security team should do
- Apply the listed fixed commit to all Moodle instances within the next maintenance window
- Add cache-entry integrity checks to monitoring dashboards
- Review logs for anomalous cache population events over the past 30 days
- Subscribe to Moodle security announcements to receive future validation-related updates promptly
The record
To address a cache poisoning risk in Moodle, additional validation for local storage was required.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Packagist | moodle/moodle | 0 | 4.1.12 |
| Packagist | moodle/moodle | 4.2.0-beta | 4.2.9 |
| Packagist | moodle/moodle | 4.3.0-beta | 4.3.6 |
| Packagist | moodle/moodle | 4.4.0-beta | 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-beta | 4.2.9 |
| packagist | moodle/moodle | 4.3.0-beta | 4.3.6 |
| packagist | moodle/moodle | 4.4.0-beta | 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