{"schemaVersion":3,"id":"CVE-2025-34031","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-06-24T00:58:57.345Z","modified":"2026-05-14T02:07:24.308Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.7,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":8.7,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":8.7,"severity":"high","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.03057,"percentile":0.87406,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.050000000000000044,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.03007},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03057,"percentile":0.87406}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.03007,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.03057,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.03057,"percentile":0.87406}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"46881","name":"Moodle Jmol Filter 6.1 - Directory Traversal / Cross-Site Scripting","source":"exploit-database","url":"https://www.exploit-db.com/exploits/46881","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["php"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"php","file":"exploits/php/webapps/46881.txt","codes":[]},"metasploit":null},{"id":"REF_AC384F3EB02039BE","name":"Exploit Reference (dionach.com)","source":"reference","url":"https://www.dionach.com/moodle-jmol-plugin-multiple-vulnerabilities/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"geoffrowland","product":"jmol","name":"jmol","label":"jmol","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 6.1","eol":null,"hubHref":"/vendor/geoffrowland/jmol"},{"vendor":"moodle","product":"jmol plugin","name":"Jmol Plugin","label":"jmol plugin","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 6.1","eol":null,"hubHref":"/vendor/moodle/jmol_plugin"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.dionach.com/moodle-jmol-plugin-multiple-vulnerabilities/","label":"www.dionach.com/moodle-jmol-plugin-multiple-vulnerabilities/","hostname":"www.dionach.com","tags":["Exploit","Technical Description","Third Party Advisory"]},{"url":"https://www.exploit-db.com/exploits/46881","label":"www.exploit-db.com/exploits/46881","hostname":"www.exploit-db.com","tags":["Third Party Advisory","Exploit"]},{"url":"https://vulncheck.com/advisories/moodle-lms-jmol-plugin-path-traversal","label":"vulncheck.com/advisories/moodle-lms-jmol-plugin-path-traversal","hostname":"vulncheck.com","tags":["Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-06-24T00:58:57.345Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-05-14T02:07:24.308Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":45,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T05:02:39.302Z","stale":false,"partial":false}}