Read the docs

Moodle SQL Injection via enrol_database Course idnumber

Priority LOW 26CWE-89Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
SQL injection
Confidentiality · integrity · availability
High · Low · None
Fix status
No fix listed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-89.

Summary

Moodle versions 5.3.0, 5.2.0 through 5.2.4, 5.1.0 through 5.1.8, 5.0.0 through 5.0.11, and through 4.5.15 contain an SQL injection flaw (CWE-89) in the External database enrolment plugin, triggered by the course idnumber. Editing teachers can store a backslash-quote payload in idnumber, which runs during scheduled sync against MySQL or MariaDB external databases. An attacker can read data and manipulate enrolment results.

Written with Claude Haiku 5.5 from the sources below · 2026-11-05

Description from the CNA

Moodle 5.3.0, 5.2.0 through 5.2.4, 5.1.0 through 5.1.8, 5.0.0 through 5.0.11, and through 4.5.15 contain an sql injection vulnerability in the External database enrolment plugin via course idnumber. Editing teachers can store a backslash-quote payload in idnumber that executes during scheduled sync on MySQL/MariaDB external databases, reading data and manipulating enrolment results.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00215 12th percentileScored 2026-11-07
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Moodlemoodle5.3.0; 5.2.0 – 5.2.4; 5.1.0 – 5.1.8; 5.0.0 – 5.0.11; up to 4.5.15—No fix listedCNA
  • moodle VendorMoodle Affected 5.3.0; 5.2.0 – 5.2.4; 5.1.0 – 5.1.8; 5.0.0 – 5.0.11; up to 4.5.15 Fixed in — No fix listed CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*——Moodle
  • cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* Versions — — ·Moodle

Remediation

No fixed version is listed for the affected Moodle ranges. Red Hat reports one product as not affected.

Written with Claude Haiku 5.5 from the sources below · 2026-11-05

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-30 Threatist record created from CVE-2026-119554
  2. 2026-10-30 Alias added: GHSA-53qh-jc6r-4vvr
  3. 2026-10-30 Affected versions changed · Red Hat
  4. 2026-10-30 CVSS score added · Red Hat
  5. 2026-11-01 Priority changed: MEDIUM → LOW
  6. 2026-11-04 CISA SSVC decision points changed

References

  • TI-2024-22468 moodle: unsafe direct use of $_SERVER['HTTP_REFERER'] in admin/tool/mfa/index.php CVSS 3.1CRITICAL 9.8
  • TI-2021-14741 In Moodle, an SQL injection risk was identified in the library fetching a user's recent courses. CVSS 3.1CRITICAL 9.8
  • TI-2024-29071 Moodle: remote code execution via calculated question types CVSS 3.1HIGH 8.1
  • TI-2025-24200 Moodle LMS Jmol Plugin Path Traversal CVSS 4.0HIGH 8.7
  • TI-2016-06653 Moodle 3.1.2 allows remote attackers to obtain sensitive information via unspecified… CVSS 3.1HIGH 7.5
  • TI-2022-00259 SQL injection in moodle CVSS 3.1CRITICAL 9.8
See all 644 →

Sources