CVE-2025-34031 Details
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.
A path traversal vulnerability has been identified in the Jmol plugin for Moodle LMS, affecting versions through 6.1. The vulnerability arises in the jsmol.php file, where user input is directly passed to the file_get_contents() function without adequate validation. This flaw allows attackers to read arbitrary files from the server's filesystem by crafting a malicious query. The vulnerability can be exploited without authentication, potentially exposing sensitive configuration data such as database credentials.
Users are advised to uninstall the Jmol plugin from the Moodle Site Administration interface. Ensure that the uninstallation removes the plugin directory from the web server's filesystem, as simply disabling the plugin does not stop the vulnerable PHP scripts from being accessed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 25, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.exploit-db.com/exploits/46881 | CISA-ADP | ExploitThird Party Advisory |
| https://vulncheck.com/advisories/moodle-lms-jmol-plugin-path-traversal | [email protected] | Third Party Advisory |
| https://www.dionach.com/moodle-jmol-plugin-multiple-vulnerabilities/ | [email protected] | ExploitThird Party Advisory |
| https://www.exploit-db.com/exploits/46881 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| geoffrowland jmol | <= 6.1 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 20, 2025 | CVE Modified | [email protected] |
| Nov 19, 2025 | CVE Modified | [email protected] |
| Jul 9, 2025 | Initial Analysis | [email protected] |
| Jun 25, 2025 | CVE Modified | CISA-ADP |
| Jun 24, 2025 | CVE Modified | [email protected] |
| Jun 24, 2025 | New CVE Received | [email protected] |