Unauthenticated file read via unvalidated JSmol query
Published Jun 24, 2025 · Updated May 14, 2026
Path traversal in Moodle Jmol Plugin 6.1 and earlier allows remote attackers to read arbitrary server files without authentication. The jsmol.php proxy passes the query parameter directly to file_get_contents() without validating or restricting the requested path. Any network client that can reach the standalone PHP script can read files accessible to the web-server process, including configuration data and database credentials.
Summary
What happened
Path traversal in Moodle Jmol Plugin 6.1 and earlier allows remote attackers to read arbitrary server files without authentication. The jsmol.php proxy passes the query parameter directly to file_get_contents() without validating or restricting the requested path. Any network client that can reach the standalone PHP script can read files accessible to the web-server process, including configuration data and database credentials.
The record
- CVE
- CVE-2025-34031
- Published
- Jun 24, 2025
- Updated
- May 14, 2026
- Vendor
- Moodle
- Product
- Jmol Plugin
- Classifications
- CWE-22, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 2, 2025Exploitation reportedShadowserver JSmol honeypot exploitation activity
- Jun 24, 2025CVE publishedPublication date reported by the CVE source.
- May 14, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <=6.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Moodle Jmol Filter 6.1 directory-traversal proof of conceptfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo