CVE-2023-30944
Moodle: minor sql injection risk in external wiki method for listing pages
Also known as BIT-moodle-2023-30944, GHSA-7mmc-22g7-3xq2
Mitigation
- Upgrade moodle/moodle to 4.2.0-rc2 or later.
Who should check
- Projects that depend on Packagist package moodle/moodle (< 4.2.0-rc2)
- Anyone running moodle >= 4.1.0, < 4.1.3; >= 4.0.0, < 4.0.8; >= 3.11.0, < 3.11.14; < 3.9.21
Vulnerability facts
- Affected
- moodle/moodle < 4.2.0-rc2
- Fixed in
- 4.2.0-rc2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.6 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: Low
- EPSS
- 1.16% chance of exploitation in 30 days (percentile 67, 2026-11-26)
- CWE
- CWE-89
- Modified
Description
The vulnerability was found Moodle which exists due to insufficient sanitization of user-supplied data in external Wiki method for listing pages. A remote attacker can send a specially crafted request to the affected application and execute limited SQL commands within the application database.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist moodle/moodle | < 4.2.0-rc2 | 4.2.0-rc2 | osv |
| moodle | >= 4.1.0, < 4.1.3; >= 4.0.0, < 4.0.8; >= 3.11.0, < 3.11.14; < 3.9.21 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-30944. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-30944.md Affected: moodle/moodle < 4.2.0-rc2 Fixed in: 4.2.0-rc2 Steps: 1. Search this machine and project for moodle/moodle (Packagist), moodle: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/54TM5H5PDUDYXOQ7X7PPYWP4AJDAE73I/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MZBWRVUJF7HI53XCJPJ3YJZPOV5HBRUY/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PBFSXRYLT4ICKJVQSRBAOUDMDRVSVBLS/
- https://nvd.nist.gov/vuln/detail/CVE-2023-30944
Patches
Other
- https://github.com/moodle/moodle
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/54TM5H5PDUDYXOQ7X7PPYWP4AJDAE73I
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MZBWRVUJF7HI53XCJPJ3YJZPOV5HBRUY
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PBFSXRYLT4ICKJVQSRBAOUDMDRVSVBLS
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/54TM5H5PDUDYXOQ7X7PPYWP4AJDAE73I
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MZBWRVUJF7HI53XCJPJ3YJZPOV5HBRUY
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PBFSXRYLT4ICKJVQSRBAOUDMDRVSVBLS
FAQ
Is CVE-2023-30944 being exploited?
There is no confirmed exploitation: CVE-2023-30944 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.16% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-30944?
Medium: CVSS 5.6 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2023-30944?
moodle/moodle < 4.2.0-rc2.
Is there a fix for CVE-2023-30944?
Yes. Fixed in 4.2.0-rc2. Upgrade moodle/moodle to 4.2.0-rc2 or later.
How do I check if I'm affected by CVE-2023-30944?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.