Security Resilience

CVE-2024-34006

Moodle ≤ 4.1.10

Published
31 May 2024
Modified
30 May 2025
Patch / advisory
CVSS Score v3.1 4.3
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
EPSS Score 0.0036 30th percentile
Risk Priority 37 floored blend · peak EPSS

CVSS 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

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

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1056.003 Web Portal Capture Collection
Adversaries may install code on externally facing portals, such as a VPN login page, to capture and transmit credentials of users who attempt to log into the service.
T1189 Drive-by Compromise Initial Access
Adversaries may gain access to a system through a user visiting a website over the normal course of browsing.
T1608.004 Drive-by Target Resource Development
Adversaries may prepare an operational environment to infect systems that visit a website over the normal course of browsing.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-3640Same product: Moodle Moodle
CVE-2024-48899Same product: Moodle Moodle
CVE-2025-3636Same product: Moodle Moodle
CVE-2024-43438Same product: Moodle Moodle
CVE-2023-28334Same product: Moodle Moodle
CVE-2025-3625Same product: Moodle Moodle
CVE-2025-3643Same product: Moodle Moodle
CVE-2023-23921Same product: Moodle Moodle
CVE-2024-37674Same product: Moodle Moodle
CVE-2023-35131Same product: Moodle Moodle

Affected Assets

moodle
moodle
≤ 4.1.10 · 4.2.0 — 4.2.7 · 4.3.0 — 4.3.4

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V1.2.1
  • V1.2.2
  • V1.2.3
  • V1.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.

PR.PS-06 mostly match
blocks

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.

finds

Security testing can detect encoding mismatches, but testing alone does not prevent the weakness at source.

prevents

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.

prevents

Secure coding directly addresses proper output encoding for context, covering most of the weakness and the control's intent.

prevents

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.

References