CVE-2025-34031: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Moodle Jmol Plugin
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.
AI Analysis
Technical Summary
This vulnerability in the Moodle Jmol plugin (version 6.1 and prior) involves improper limitation of a pathname to a restricted directory (CWE-22). Specifically, the jsmol.php script accepts a query parameter that is passed directly to PHP's file_get_contents() function without sanitization or validation. This flaw enables attackers to perform path traversal attacks to read arbitrary files on the server filesystem. The vulnerability can be exploited remotely without authentication, increasing its risk. The CVSS 4.0 base score is 8.7, reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and high impact on confidentiality. Exploitation evidence was observed by Shadowserver Foundation on 2025-02-02 UTC. There is no indication of an official patch or vendor advisory at this time.
Potential Impact
Successful exploitation allows unauthenticated attackers to read arbitrary files on the affected server. This can lead to disclosure of sensitive information such as configuration files and database credentials, potentially compromising the confidentiality of the Moodle LMS environment. The vulnerability does not require user interaction or privileges, making it highly accessible to attackers. No evidence of active widespread exploitation is reported beyond the Shadowserver observation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, administrators should consider restricting access to the vulnerable jsmol.php script, for example by network-level controls or web server configuration, to prevent unauthorized requests. Monitoring for unusual access patterns to this script may also help detect exploitation attempts. Avoid exposing the Moodle Jmol plugin to untrusted networks if possible.
CVE-2025-34031: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Moodle Jmol Plugin
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in the Moodle Jmol plugin (version 6.1 and prior) involves improper limitation of a pathname to a restricted directory (CWE-22). Specifically, the jsmol.php script accepts a query parameter that is passed directly to PHP's file_get_contents() function without sanitization or validation. This flaw enables attackers to perform path traversal attacks to read arbitrary files on the server filesystem. The vulnerability can be exploited remotely without authentication, increasing its risk. The CVSS 4.0 base score is 8.7, reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and high impact on confidentiality. Exploitation evidence was observed by Shadowserver Foundation on 2025-02-02 UTC. There is no indication of an official patch or vendor advisory at this time.
Potential Impact
Successful exploitation allows unauthenticated attackers to read arbitrary files on the affected server. This can lead to disclosure of sensitive information such as configuration files and database credentials, potentially compromising the confidentiality of the Moodle LMS environment. The vulnerability does not require user interaction or privileges, making it highly accessible to attackers. No evidence of active widespread exploitation is reported beyond the Shadowserver observation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, administrators should consider restricting access to the vulnerable jsmol.php script, for example by network-level controls or web server configuration, to prevent unauthorized requests. Monitoring for unusual access patterns to this script may also help detect exploitation attempts. Avoid exposing the Moodle Jmol plugin to untrusted networks if possible.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2025-04-15T19:15:22.546Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6859fad3dec26fc862d8c367
Added to database: 6/24/2025, 1:09:39 AM
Last enriched: 4/7/2026, 10:56:51 PM
Last updated: 5/9/2026, 6:34:05 PM
Views: 79
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.