Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
6.3

CVE-2023-28329: Moodle lets logged‑in teachers execute database commands

CVE-2023-28329 · published 3 years ago
Summary

When a teacher or manager checks whether a profile field is available, Moodle does not properly verify the input. This can let an attacker run unauthorized database queries, potentially exposing or altering data. Apply the latest Moodle update or patch that corrects the input validation.

What to do
  • Update moodle moodle to version 4.1.2.
  • Update moodle moodle to version 4.0.7.
  • Update moodle moodle to version 3.11.13.
  • Update moodle moodle to version 3.9.20.
Affected software
Ecosystem VendorProductAffected versions
composer moodle moodle >= 4.1.0, < 4.1.2
>= 4.0.0, < 4.0.7
>= 3.11.0, < 3.11.13
< 3.9.20
Fix: upgrade to 4.1.2
– moodle moodle > 3.9.0, < 3.9.20
3.9.0
3.11.0
4.0.0
4.1.0
4.1.1
cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*
Ubuntu:16.04:LTS canonical moodle All versions
Original advisory text
Moodle: authenticated sql injection via availability check
Insufficient validation of profile field availability condition resulted in an SQL injection risk (by default only available to teachers and managers).
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
6.3 Medium
Exploitation
1% chance of attack within 30 days
Type
CWE-89SQL Injection
Timeline
Published23 Mar 2023
Updated4 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta