{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "4.1.0"
              },
              {
                "fixed": "4.1.9"
              },
              {
                "introduced": "4.2.0"
              },
              {
                "fixed": "4.2.6"
              },
              {
                "introduced": "4.3.0"
              },
              {
                "fixed": "4.3.3"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0ea3d45e04c3d54a3a472ddcb11606b30e227c50"
            },
            {
              "fixed": "8a38a37f1ff5075c6f46d726c1457172c2fccac3"
            },
            {
              "introduced": "ae4efa96ee8169a848c141ad21690165ea791552"
            },
            {
              "fixed": "6acc0648d89d134e3cb7332bbc3236b68b45f268"
            },
            {
              "introduced": "fe7aff8093240cc373f1ddaa66ecb91c4bc0a09f"
            },
            {
              "fixed": "0f84dd778b20ba0f456a0562c98c2a020c9b1403"
            }
          ],
          "repo": "https://github.com/moodle/moodle",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "fedora",
    "cwe_ids": [
      "CWE-284"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/25xxx/CVE-2024-25981.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "4.3.0"
          },
          {
            "fixed": "4.3.3"
          },
          {
            "introduced": "4.2.0"
          },
          {
            "fixed": "4.2.6"
          },
          {
            "fixed": "4.1.9"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "Separate Groups mode restrictions were not honored when performing a forum export, which would export forum data for all groups. By default this only provided additional access to non-editing teachers.",
  "id": "CVE-2024-25981",
  "modified": "2026-07-15T01:48:59.389854359Z",
  "published": "2024-02-19T16:32:28.338Z",
  "references": [
    {
      "type": "WEB",
      "url": "http://git.moodle.org/gw?p=moodle.git\u0026a=search\u0026h=HEAD\u0026st=commit\u0026s=MDL-80504"
    },
    {
      "type": "WEB",
      "url": "https://git.moodle.org"
    },
    {
      "type": "WEB",
      "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KXGBYJ43BUEBUAQZU3DT5I5A3YLF47CB/"
    },
    {
      "type": "WEB",
      "url": "https://moodle.org/mod/forum/discuss.php?d=455637"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/25xxx/CVE-2024-25981.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-25981"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2264097"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Msa-24-0004: forum export did not respect activity group settings"
}