CVE-2024-34006
Moodle ≤ 4.1.10
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NCVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.
Summary
CVE-2024-34006 is a medium-severity Inappropriate Encoding for Output Context (CWE-838) vulnerability in Moodle. Its CVSS base score is 4.3 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 30th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified map to SI-15 (Information Output Filtering) and SA-8 (Security and Privacy Engineering Principles) — see the control section below for these in your framework.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-1818
Vulnerability Data
The site log report required additional encoding of event descriptions to ensure any HTML in the content is displayed in plaintext instead of being rendered.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise Techniques
MITRE ATT&CK v20.0
CVEs Like This One
Affected Assets
Mitigating Controls
Control response
—
—
—
V1.2.1V1.2.2V1.2.3V1.2.5
Mitigating Controls (NIST 800-53 r5)
Our mappings, made for this CVE.
Validates output data representations to ensure consistency with expected formats, directly stopping encoding mismatches for downstream contexts.
Requires application of secure engineering principles during development that include correct output encoding for context.
Mitigating Controls (NIST CSF 2.0)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.
Secure SDLC practices directly require correct output encoding to match downstream context, but eliminating only this flaw covers a narrow slice of the broader control.
Mitigating Controls (ISO/IEC 27001:2022 Annex A)
Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.
Security testing can detect encoding mismatches, but testing alone does not prevent the weakness at source.
Training can teach developers about output encoding contexts and the need to match encoding to the downstream component, but CWE-838 is a nuanced technical choice (e.g., HTML entity vs attribute encoding) where the wrong but closely-related encoding is selected; education raises awareness but does not fully prevent the specific context-dependent mistake, leaving a nameable remainder of instances where developers still pick the wrong encoding.
Secure coding directly addresses proper output encoding for context, covering most of the weakness and the control's intent.
A.8.30 carries its effect through the secure-coding practices (8.25–8.29) its contract requires of the supplier, which include proper output encoding; this reduces instances of CWE-838 in delivered code the way those practices do, but the clause depends on those other controls and its ceiling on this verb is partial.