Moodle: sql injection in question bank web service
A flaw was found in Moodle. An authenticated attacker with access to the question bank web service can submit unsanitized input directly into database queries, resulting in a SQL (Structured Query Language) injection vulnerability. This issue could allow an attacker to view, alter, or delete sensitive data stored in the underlying database.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5.2.0, < 5.2.2
- >= 5.1.0, < 5.1.6
- >= 5.0.0, < 5.0.9
- < 4.5.13
Fixed in 5.2.2, 5.1.6, 5.0.9, 4.5.13
Mitigation
Upgrade the affected product to 5.2.2 or 5.1.6 or 5.0.9 or 4.5.13 or later.
Timeline
Days relative to CVE publicationFirst public PoC 20 days after publication; not in CISA KEV. First PoC: caveeroo/CVE-2026-102578 (created 20 Oct 2026, found by us: 14 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| caveeroo/CVE-2026-102578 | 20 Oct 2026 +20 d | 14 Nov 2026 | 10 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /login/index.php
- Seen in
- 1 repo: caveeroo/CVE-2026-102578
- Evidence
- caveeroo/CVE-2026-102578/poc.py:1168
POST /lib/ajax/service.php
- Query
{var}=- Key headers
X-Requested-With: XMLHttpRequest- Content-Type
application/json- Seen in
- 1 repo: caveeroo/CVE-2026-102578
- Evidence
- caveeroo/CVE-2026-102578/poc.py:1262
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/login/index\.php(?:[?#].*)?$
(?i)^/lib/ajax/service\.php\?(?:.*&)?\{var\}=
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-102578 CVE-2026-102578 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/login/index.php"; reference:url,poc.griffinguard.io/cve/CVE-2026-102578; classtype:web-application-attack; sid:9807963; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-102578 CVE-2026-102578 exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/lib/ajax/service.php"; http.uri; content:"{var}="; http.header; content:"X-Requested-With: XMLHttpRequest"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-102578; classtype:web-application-attack; sid:9015043; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: CVE-2026-102578 exploit attempt (CVE-2026-102578)
id: gg-pocmon-cve-2026-102578-9807963
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-102578. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-102578
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/login/index.php'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.102578
title: CVE-2026-102578 exploit attempt (CVE-2026-102578)
id: gg-pocmon-cve-2026-102578-9015043
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-102578. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-102578
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/lib/ajax/service.php'
cs-uri-query|contains|all:
- '{var}='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.102578