Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-34031: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Moodle Jmol Plugin

0
High
VulnerabilityCVE-2025-34031cvecve-2025-34031cwe-22
Published: Tue Jun 24 2025 (06/24/2025, 00:58:57 UTC)
Source: CVE Database V5
Vendor/Project: Moodle
Product: 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

AILast updated: 04/07/2026, 22:56:51 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses