← Vulnerability feed

Vulnerability record · CVE-2022-35650 · published 25 July 2022

CVE-2022-35650: Moodle lesson question import path traversal allows arbitrary file read

Moodle · Moodle

Moodle fails to properly validate input paths when importing lesson questions, allowing directory traversal. A remote attacker who can reach that import feature can read files outside the intended directory. The flaw is a path traversal rooted in insufficient input validation.

7.5 CVSS 3.1 High EPSS 49% · top 1.2% CWE-22 · Path traversalCWE-20 · Improper input validation
7.5CVSS 3.1 base score
49%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
10References
17 Jun 2026Last modified by NVD

Description

The vulnerability was found in Moodle, occurs due to input validation error when importing lesson questions. This insufficient path checks results in arbitrary file read risk. This vulnerability allows a remote attacker to perform directory traversal attacks. The capability to access this feature is only available to teachers, managers and admins by default.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: medium.

high priorityHigh CVSS (7.5) and very high EPSS with a patch available, though exploitation requires an account with teacher-level or higher access.

What it is

Moodle fails to properly validate input paths when importing lesson questions, allowing directory traversal. A remote attacker who can reach that import feature can read files outside the intended directory. The flaw is a path traversal rooted in insufficient input validation.

Impact

An attacker gains read access to arbitrary files on the Moodle server, which can expose configuration, credentials and other sensitive data. There is no integrity or availability impact per the CVSS vector.

Attack surface

Reached over the network through the lesson question import functionality; the CVSS vector shows no privileges or user interaction required, but the description states the feature is by default limited to teachers, managers and admins, so practical access depends on holding one of those roles.

Exploitation

Not listed in CISA KEV and no ransomware usage is documented; EPSS is high at roughly 0.49 (98.8th percentile), and references include patch and vendor advisory tags but no public exploit tag.

What to do

  • Apply the Moodle fix referenced by MDL-72029 and update to a patched Moodle release.
  • Update Fedora packages per the Fedora package-announce advisories.
  • Restrict teacher, manager and admin roles to trusted accounts and review who holds them.
  • Limit filesystem permissions so the web server user cannot read sensitive files outside the Moodle data and code directories.

Detection

  • Review web server and Moodle logs for lesson question import requests containing traversal sequences such as ../ or encoded variants.
  • Alert on file read activity by the web server user outside expected Moodle directories.
  • Monitor for unusual access to configuration files such as config.php from web processes.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-35650 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2021-44026Roundcube Webmail SQL injection via search parametersRoundcube Webmail before 1.3.17 and 1.4.x before 1.4.12 is prone to SQL injection through the search or search_params input. The flaw is remotely rea…KEVEPSS 70%analysed9.8CVE-2021-42013Apache HTTP Server path traversal and RCE via incomplete fixThe fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient, leaving a path traversal flaw that lets attackers map URLs to files outside…KEVEPSS 100%analysed9.8CVE-2021-41773Apache HTTP Server 2.4.49 path traversal and RCEA path normalization flaw introduced in Apache HTTP Server 2.4.49 lets attackers map URLs to files outside directories configured by Alias-like direc…KEVEPSS 100%analysed9.8CVE-2021-1870Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions, affecting macOS Big Sur, Catalina, Mojave, iOS and iPadOS, plus WebKitGTK a…KEVEPSS 7.7%analysed9.8CVE-2021-1871Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions. It affects macOS Big Sur, Catalina, Mojave, iOS and iPadOS, and a remote at…KEVEPSS 7.0%analysed9.8CVE-2020-16846SaltStack Salt API shell injection via crafted web requestsSaltStack Salt through 3002 is vulnerable to OS command injection when the SSH client is enabled and crafted web requests are sent to the Salt API. T…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2022-35650), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.