Skip to main content

Moodle Mod Customcert CVE-2026-30884

| EUVDEUVD-2026-12745 CRITICAL
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-03-18 GitHub_M
9.6
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Teacher obtains mod/customcert:manage in one course
  2. Exploit
    Craft API call with elementid from different course
  3. Execution
    Bypass context verification in editelement callback
  4. Impact
    Read or overwrite certificate elements across courses

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Requires Moodle with mod_customcert plugin versions prior to 4.4.9 or 5.0.3. Attacker must be authenticated as a teacher holding mod/customcert:manage capability in at least one course. No victim interaction needed. Exploits missing authorization checks in core_get_fragment callback and mod_customcert_save_element web service to access certificate elements across courses.

Impact

The real-world risk is high due to multiple converging factors. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C) indicates network-exploitable attacks with low complexity requiring only low privileges (teacher role) and no user interaction, with scope change indicating impact beyond the vulnerable component's security context. The Changed scope (S:C) is particularly significant as it allows cross-course boundary violations in multi-tenant Moodle installations. While no EPSS score or KEV status is provided in the intelligence data, the combination of low attack complexity, readily available teacher accounts in educational institutions, and confirmed patch commits (a1494a80fb and ddc8f01f1e) demonstrating the fix implementation suggest this is exploitable by moderately skilled attackers. The GitHub Security Advisory (GHSA-8pjr-j7r4-ccjx) provides detailed disclosure, potentially enabling proof-of-concept development. Organizations running Moodle with multiple courses and the customcert plugin should prioritize this as a critical remediation item, particularly in multi-tenant educational environments where course isolation is a fundamental security boundary.

Exploit ScenarioDerived

A malicious teacher with the mod/customcert:manage permission in Course A discovers certificate element IDs used in Course B through parameter enumeration or social engineering. They craft requests to the editelement callback or mod_customcert_save_element web service with the Course B element IDs, successfully reading sensitive certificate template information (such as organizational signatures, seals, or credential formats) and silently modifying certificate elements to insert fraudulent information, alter grading criteria visibility, or sabotage another instructor's course certificates. Since the attack vector is network-based with low complexity and no user interaction required, the attacker can automate cross-course reconnaissance and modification at scale across the entire Moodle installation.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 18, 2026

Cross-course privilege escalation in Moodle Mod Customcert allows authenticated teachers with certificate management rights in any course to read and modify certificate data across the entire Moodle installation due to missing context validation in the editelement callback and save_element web service. An attacker with mod/customcert:manage permissions in a single course can exploit this to disclose sensitive certificate information from other courses or tamper with their certificate elements. Versions 4.4.9 and 5.0.3 patch the vulnerability, but no patch is currently available for affected versions.

Earlier versions of this analysis (1)
v1 Mar 18, 2026 - 03:30 CVSS 9.6

A privilege escalation and information disclosure vulnerability exists in the mdjnelson/moodle-mod_customcert plugin for Moodle, allowing teachers with mod/customcert:manage permission in any single course to read and silently overwrite certificate elements belonging to any other course in the entire Moodle installation. The vulnerability affects versions prior to 4.4.9 and versions 5.0.0 through 5.0.2. With a CVSS score of 9.6 (Critical), this represents a serious cross-context authorization bypass that enables both high confidentiality and integrity impact across course boundaries.

RemediationAI

Upgrade the mdjnelson/moodle-mod_customcert plugin to version 4.4.9 or later for the 4.x branch, or to version 5.0.3 or later for the 5.x branch. The fixes are documented in commits a1494a80fb953f187f7888a7394cbf9d13c28468 and ddc8f01f1e19fb61202f6013a38ef757486d3ba0 available at https://github.com/mdjnelson/moodle-mod_customcert/commit/a1494a80fb953f187f7888a7394cbf9d13c28468 and https://github.com/mdjnelson/moodle-mod_customcert/commit/ddc8f01f1e19fb61202f6013a38ef757486d3ba0. If immediate patching is not possible, consider temporarily disabling the customcert module or restricting the mod/customcert:manage capability to only highly trusted users while conducting an audit of certificate elements for unauthorized modifications. Review the full security advisory at https://github.com/mdjnelson/moodle-mod_customcert/security/advisories/GHSA-8pjr-j7r4-ccjx for additional context.

Affected VersionsENISA

moodle-mod_customcert < 4.4.9
moodle-mod_customcert 5.0.0, < 5.0.3

Affected Packages

euvd moodle_mod_customcert fix: 4.4.9, 5.0.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects the mdjnelson/moodle-mod_customcert plugin (CPE: cpe:2.3:a:mdjnelson:moodle-mod_customcert), a Moodle module written in PHP that enables dynamic certificate generation with web-based customization. The root cause is CWE-639 (Authorization Bypass Through User-Controlled Key), where the core_get_fragment callback 'editelement' and the mod_customcert_save_element web service fail to verify that a supplied elementid parameter belongs to the authorized context. This allows an attacker to manipulate the elementid parameter to reference certificate elements from courses they should not have access to, breaking Moodle's context-based permission model. The vulnerability demonstrates a classic Insecure Direct Object Reference (IDOR) pattern where user-supplied identifiers are trusted without proper authorization checks against the current security context.

Know when Moodle Mod Customcert gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 9.6 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

3
Analysis Updated
Apr 16, 2026 - 05:50 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
4.4.9,5.0.3
CVE Published
Mar 18, 2026 - 02:26 nvd
CRITICAL 9.6

DescriptionGitHub Advisory

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.

Executive ViewAI

Why It Matters

CVE-2026-30884 is a critical privilege escalation flaw in Moodle's Custom Certificate module that allows authenticated teachers to access and modify certificate data across the entire installation, bypassing course-level access controls. Any educator with certificate management rights in a single course can exploit this to steal sensitive certificate information from other courses or alter their contents, directly compromising institutional data governance and certificate integrity.

Business Impact: Severe
Compensating Controls

Until patching: restrict mod/customcert:manage role assignment to designated admins only; disable the Custom Certificate module if not operationally critical; implement database-level audit logging on certificate tables to detect unauthorized access; segregate certificate management to a separate, air-gapped administrative interface. Apply vendor patch (versions 4.4.9 or 5.0.3) as primary remediation.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +48
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Related Vulnerabilities in Sentry Access Control Vulnerabilities

View all 2

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy