{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "5.2.0"
                  },
                  {
                    "last_affected": "5.2.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "5.1.0"
                  },
                  {
                    "last_affected": "5.1.8"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "5.0.0"
                  },
                  {
                    "last_affected": "5.0.11"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "4.5.15"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "5.3.0"
                  },
                  {
                    "last_affected": "5.3.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          },
          "events": [
            {
              "introduced": "c197f31fd89bf5dd5ba41661b06660167e419099"
            },
            {
              "last_affected": "2df605b1e093248e8f8d1e2fc081fb3b1f65665f"
            },
            {
              "introduced": "eb47eff0719455a7e1f7a9805bc75dad3f6b3995"
            },
            {
              "last_affected": "cc0bf17da8b5fbd290faf95b2b14a03d64331923"
            },
            {
              "introduced": "78e860178314c45441a21e0b99455400b8283d48"
            },
            {
              "last_affected": "744cc0c19013e7be831dca24fafd6501d7eb8348"
            },
            {
              "introduced": "0"
            },
            {
              "last_affected": "215f44380bdc3ccf852a3a22e34f8423ff64033a"
            },
            {
              "introduced": "42622298fe06f9626d988d60b2bf589bd8f850e8"
            },
            {
              "last_affected": "42622298fe06f9626d988d60b2bf589bd8f850e8"
            }
          ],
          "repo": "https://github.com/moodle/moodle",
          "type": "GIT"
        }
      ],
      "versions": [
        "5.3.0"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119554.json"
  },
  "details": "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.",
  "id": "CVE-2026-119554",
  "modified": "2026-11-05T21:15:47.700538296Z",
  "published": "2026-10-30T11:31:04.811Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.moodle.org"
    },
    {
      "type": "ADVISORY",
      "url": "https://abraxaslabs.tech/research/moodle-enrol-database-sqli"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119554.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-119554"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/moodle-through-5.3.0-5.2.4-5.1.8-5.0.11-and-4.5.15-sql-injection-via-enrol-database-course-idnumber"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/moodle/moodle"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/moodle/moodle/blob/v5.3.0/public/enrol/database/lib.php#L527-L528"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/moodle/moodle/blob/v5.3.0/public/enrol/database/lib.php#L918-L926"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/moodle/moodle/blob/v5.3.0/public/enrol/database/lib.php#L971-L979"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Moodle through 5.3.0, 5.2.4, 5.1.8, 5.0.11 and 4.5.15 SQL Injection via enrol_database Course idnumber"
}