Jmol Plugin - Path Traversal (CVE-2025-34031)
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.
psychologyCrowdSec Analysis
CVE-2025-34031 is a high-severity path traversal vulnerability in the Moodle LMS Jmol plugin (version 6.1 and earlier), where improper input validation in jsmol.php allows unauthenticated attackers to read arbitrary files from the server. By exploiting this flaw, threat actors can access sensitive configuration data, such as database credentials, potentially leading to further compromise of the system. Evidence of active exploitation has already been observed, highlighting the urgency of addressing this issue.
CrowdSec has been tracking this vulnerability and its exploits since 8th of April 2026.
According to CrowdSec data, while opportunistic exploitation dominates, a portion of threat actors trying to exploit CVE-2025-34031 apply basic targeting methods such as port or service detection. This indicates emerging patterns of selective targeting. Additionally, according to week-over-week analysis by CrowdSec, exploitation of CVE-2025-34031 is surging. Attack volumes are spiking well above historical norms, indicating widespread and escalating interest from threat actors. CVE-2025-34031 is currently experiencing high visibility and active exploitation across the internet.
Attackers exploit the /filter/jmol/js/jsmol/php/jsmol.php endpoint by supplying a query parameter with a file:// URI, enabling local file inclusion and unauthorized reading of sensitive files from the server.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2025-06-24 |
| Rule Released | 2026-04-08 |
| CrowdSec First Seen | 2026-04-08 |