Moodle: unauthenticated rest api user data exposure
A flaw has been identified in Moodle where, on certain sites, unauthenticated users could retrieve sensitive user data—including names, contact information, and hashed passwords—via stack traces returned by specific API calls. Sites with PHP configured with zend.exception_ignore_args = 1 in the php.ini file are not affected by this vulnerability.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 4.5.0, <= 4.5.2
- >= 4.5.0-beta, < 4.5.3
Fixed in 4.5.3
from GitHub Security Advisory GHSA-345q-9jmq-g9q4
Mitigation
Upgrade moodle/moodle to 4.5.3 or later.
Timeline
Days relative to CVE publicationFirst public PoC 1.2 years after publication; not in CISA KEV. First PoC: shinthink/CVE-2025-32044 (created 15 Jul 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| shinthink/CVE-2025-32044 | 15 Jul 2026 +1.2 y | 0 | 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 /lib/upgrade.txt
- Seen in
- 1 repo: shinthink/CVE-2025-32044
- Evidence
- shinthink/CVE-2025-32044/cve_2025_32044.py:114
GET /login/index.php
GET /login/token.php
- Query
username=guestpassword=guestservice=moodle_mobile_appusername=USERpassword=PASSusername=password=service=- Seen in
- 1 repo: shinthink/CVE-2025-32044
- Evidence
- shinthink/CVE-2025-32044/README.md:183 shinthink/CVE-2025-32044/README.md:190 shinthink/CVE-2025-32044/cve_2025_32044.py:120 shinthink/CVE-2025-32044/cve_2025_32044.py:131 shinthink/CVE-2025-32044/cve_2025_32044.py:152
GET /webservice/rest/server.php
- Query
wsfunction=core_user_get_users_by_fieldmoodlewsrestformat=jsonfield=id- Seen in
- 1 repo: shinthink/CVE-2025-32044
- Evidence
- shinthink/CVE-2025-32044/README.md:195 shinthink/CVE-2025-32044/cve_2025_32044.py:167
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/lib/upgrade\.txt(?:[?#].*)?$
(?i)^/login/index\.php(?:[?#].*)?$
(?i)^/login/token\.php\?(?:.*&)?username=guest.*password=guest.*service=moodle_mobile_app.*username=USER.*password=PASS.*username=.*password=.*service=
(?i)^/webservice/rest/server\.php\?(?:.*&)?wsfunction=core_user_get_users_by_field.*moodlewsrestformat=json.*field=id
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-32044 CVE-2025-32044 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/lib/upgrade.txt"; reference:url,poc.griffinguard.io/cve/CVE-2025-32044; classtype:web-application-attack; sid:9614448; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-32044 CVE-2025-32044 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/login/index.php"; reference:url,poc.griffinguard.io/cve/CVE-2025-32044; classtype:web-application-attack; sid:9748510; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-32044 CVE-2025-32044 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/login/token.php"; http.uri; content:"username=guest"; http.uri; content:"password=guest"; http.uri; content:"service=moodle_mobile_app"; http.uri; content:"username=USER"; http.uri; content:"password=PASS"; http.uri; content:"username="; http.uri; content:"password="; http.uri; content:"service="; reference:url,poc.griffinguard.io/cve/CVE-2025-32044; classtype:web-application-attack; sid:9883519; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2025-32044 CVE-2025-32044 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/webservice/rest/server.php"; http.uri; content:"wsfunction=core_user_get_users_by_field"; http.uri; content:"moodlewsrestformat=json"; http.uri; content:"field=id"; reference:url,poc.griffinguard.io/cve/CVE-2025-32044; classtype:web-application-attack; sid:9095170; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: CVE-2025-32044 exploit attempt (CVE-2025-32044)
id: gg-pocmon-cve-2025-32044-9614448
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-32044. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-32044
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/lib/upgrade.txt'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.32044
title: CVE-2025-32044 exploit attempt (CVE-2025-32044)
id: gg-pocmon-cve-2025-32044-9748510
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-32044. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-32044
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.2025.32044
title: CVE-2025-32044 exploit attempt (CVE-2025-32044)
id: gg-pocmon-cve-2025-32044-9883519
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-32044. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-32044
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/login/token.php'
cs-uri-query|contains|all:
- 'username=guest'
- 'password=guest'
- 'service=moodle_mobile_app'
- 'username=USER'
- 'password=PASS'
- 'username='
- 'password='
- 'service='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.32044
title: CVE-2025-32044 exploit attempt (CVE-2025-32044)
id: gg-pocmon-cve-2025-32044-9095170
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-32044. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-32044
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/webservice/rest/server.php'
cs-uri-query|contains|all:
- 'wsfunction=core_user_get_users_by_field'
- 'moodlewsrestformat=json'
- 'field=id'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.32044