CVE-2025-34031
JSON

8.7high

Moodle LMS Jmol Plugin Path Traversal

Severity
8.7high CVSS:4.0 by VulnCheck
Exploit likelihood
6.62% (higher than 94% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

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.

Affected

Product or packageVersionsReported by
Moodle Jmol Pluginup to 6.1CVE List
geoffrowland jmolup to 6.1NVD

All scores

VulnCheck8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Existe una vulnerabilidad de path traversal en el complemento Moodle LMS Jmol versión 6.1 y anteriores mediante el parámetro de consulta en jsmol.php. El script pasa directamente la entrada del usuario a la función file_get_contents() sin la validación adecuada, lo que permite a los atacantes leer archivos arbitrarios del sistema de archivos del servidor mediante la manipulación de un valor de consulta malicioso. Esta vulnerabilidad puede explotarse sin autenticación y puede exponer datos de configuración confidenciales, incluidas las credenciales de la base de datos.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-34031 changed 2026-05-14CVE Terms of Use
NVDCVE-2025-34031 changed 2026-06-17Public domain