{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "3.5.0"
              },
              {
                "last_affected": "3.5.8"
              },
              {
                "introduced": "3.6.0"
              },
              {
                "last_affected": "3.6.6"
              },
              {
                "introduced": "3.7.0"
              },
              {
                "last_affected": "3.7.2"
              }
            ]
          },
          "events": [
            {
              "introduced": "46574904afd39578fa4146bf1fc5c401ac680aa6"
            },
            {
              "last_affected": "4a852e846705b7a396895cba7b2da348af170a50"
            },
            {
              "introduced": "cb628a9a08933c2a9f1eae2f3be70ea5d343b419"
            },
            {
              "last_affected": "7de0c0f1ad6452b2562bdb7ea0349ab84e81e35f"
            },
            {
              "introduced": "89457b26d192c06325bb6782b85d1025dafbefe9"
            },
            {
              "last_affected": "6a30269d98d8e939930f5fea71fc82da6824806e"
            }
          ],
          "repo": "https://github.com/moodle/moodle",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "A vulnerability was found in Moodle versions 3.7.x before 3.7.3, 3.6.x before 3.6.7 and 3.5.x before 3.5.9. When a cohort role assignment was removed, the associated capabilities were not being revoked (where applicable).",
  "id": "CVE-2019-14879",
  "modified": "2026-03-13T21:49:59.627974005Z",
  "published": "2020-01-07T17:15:11.517Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-14879"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}