{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "4.1.0"
              },
              {
                "fixed": "4.1.16"
              },
              {
                "introduced": "4.3.0"
              },
              {
                "fixed": "4.3.10"
              },
              {
                "introduced": "4.4.0"
              },
              {
                "fixed": "4.4.6"
              },
              {
                "introduced": "4.5.0"
              },
              {
                "fixed": "4.5.2"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0ea3d45e04c3d54a3a472ddcb11606b30e227c50"
            },
            {
              "fixed": "4ab2ebfd5274abebc4b9b1527d13a5af70c6585d"
            },
            {
              "introduced": "fe7aff8093240cc373f1ddaa66ecb91c4bc0a09f"
            },
            {
              "fixed": "f4f9dd8eac286f1880738100afd71c585215f31f"
            },
            {
              "introduced": "ee91c6536f99e1633e2245780c4fe7f47340ed66"
            },
            {
              "fixed": "56a037e76606514584136e3c13e7ed4f53f34597"
            },
            {
              "introduced": "52c0da7c647bd6ba8c5f61882d88959821a1fb41"
            },
            {
              "fixed": "cd6600da14290f2ab097aba8ce9d107e21c21fff"
            }
          ],
          "repo": "https://github.com/moodle/moodle",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "fedora",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/26xxx/CVE-2025-26531.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "4.5.0"
          },
          {
            "fixed": "4.5.2"
          },
          {
            "introduced": "4.4.0"
          },
          {
            "fixed": "4.4.6"
          },
          {
            "introduced": "4.3.0"
          },
          {
            "fixed": "4.3.10"
          },
          {
            "introduced": "4.1.0"
          },
          {
            "fixed": "4.1.16"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "Insufficient capability checks made it possible to disable badges a user does not have permission to access.",
  "id": "CVE-2025-26531",
  "modified": "2026-07-15T01:48:50.442374687Z",
  "published": "2025-02-24T20:02:57.732Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/26xxx/CVE-2025-26531.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://moodle.org/mod/forum/discuss.php?d=466148"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-26531"
    },
    {
      "type": "FIX",
      "url": "http://git.moodle.org/gw?p=moodle.git\u0026a=search\u0026h=HEAD\u0026st=commit\u0026s=MDL-84239"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "IDOR in badges allows disabling of arbitrary badges"
}