GIVE YOUR AGENT THE EVIDENCE

Set up in your agent.

One prompt to get started. Paste it into your coding agent to connect cve.new through MCP and bring vulnerability context into your workflow.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GIVE YOUR AGENT THE EVIDENCE

Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

Check your stack
GHSA-xh2j-q4mc-v522high8.8

Moodle calculated question type allows remote code execution by Question authors

Impact

An issue was discovered in Moodle 3.x. A Teacher creating a Calculated question can intentionally cause remote code execution on the server, aka eval injection.

Source excerpt · OSV

Affected packages

Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.

Affected rangeRecorded fix
From 3.1 before 3.1.12Ecosystem versions3.1.12
From 3.2 before 3.2.9Ecosystem versions3.2.9
From 3.3 before 3.3.6Ecosystem versions3.3.6
From 3.4 before 3.4.3Ecosystem versions3.4.3

Version evidence: OSV · GHSA-xh2j-q4mc-v522

View original version evidence (47 explicit versions)

Original source description

An issue was discovered in Moodle 3.x. A Teacher creating a Calculated question can intentionally cause remote code execution on the server, aka eval injection.

References