{
  "id": "CVE-2026-30884",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-30884",
  "published_at": "2026-03-18T02:26:30.42Z",
  "title": "mdjnelson/moodle-mod_customcert Vulnerable to Authorization Bypass Through User-Controlled Key",
  "vendor": "mdjnelson",
  "product": "moodle-mod_customcert",
  "cvss": {
    "score": 9.6,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "mdjnelson/moodle-mod_customcert is a Moodle plugin for creating dynamically generated certificates with complete customization via the web browser. Prior to versions 4.4.9 and 5.0.3, a teacher who holds `mod/customcert:manage` in any single course can read and silently overwrite certificate elements belonging to any other course in the Moodle installation. The `core_get_fragment` callback `editelement` and the `mod_customcert_save_element` web service both fail to verify that the supplied `elementid` belongs to the authorized context, enabling cross-course information disclosure and data tampering. Versions 4.4.9 and 5.0.3 fix the issue.",
  "cwe": "CWE-639",
  "cvss_by_source": {
    "cna": 9.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "mdjnelson",
        "product": "moodle-mod_customcert",
        "ranges": [
          "\u003c 4.4.9",
          "\u003e= 5.0.0, \u003c 5.0.3"
        ],
        "fixed_in": [
          "4.4.9",
          "5.0.3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade moodle-mod_customcert to 4.4.9 or 5.0.3 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/mdjnelson/moodle-mod_customcert/security/advisories/GHSA-8pjr-j7r4-ccjx"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mdjnelson/moodle-mod_customcert/commit/a1494a80fb953f187f7888a7394cbf9d13c28468"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/mdjnelson/moodle-mod_customcert/commit/ddc8f01f1e19fb61202f6013a38ef757486d3ba0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
