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.
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Wed, 16 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.05247}

epss

{'score': 0.02358}


Wed, 09 Jul 2025 19:30:00 +0000

Type Values Removed Values Added
First Time appeared Geoffrowland
Geoffrowland jmol
CPEs cpe:2.3:a:geoffrowland:jmol:*:*:*:*:*:moodle:*:*
Vendors & Products Geoffrowland
Geoffrowland jmol
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}


Wed, 25 Jun 2025 13:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 24 Jun 2025 04:45:00 +0000


Tue, 24 Jun 2025 02:30:00 +0000


Tue, 24 Jun 2025 01:15:00 +0000

Type Values Removed Values Added
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.
Title Moodle LMS Jmol Plugin Path Traversal
Weaknesses CWE-20
CWE-200
CWE-22
References
Metrics cvssV4_0

{'score': 8.7, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2025-06-25T12:43:16.632Z

Reserved: 2025-04-15T19:15:22.546Z

Link: CVE-2025-34031

cve-icon Vulnrichment

Updated: 2025-06-25T12:38:10.995Z

cve-icon NVD

Status : Analyzed

Published: 2025-06-24T01:15:23.340

Modified: 2025-07-09T19:09:45.097

Link: CVE-2025-34031

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.