# What is CVE-2022-35650?

> CVE-2022-35650 is a high-severity flaw (CVSS 7.5) in Moodle, published on 25 July 2022. It is not on the list of flaws known to be exploited today. The latest forecast puts its chance of use in the next 30 days at 54%. If you run an affected version, plan in the vendor’s fix.

Canonical page: https://www.precursorintelligence.com/what-is/cve-2022-35650

## At a glance

- **Verdict:** Fix this soon. Not confirmed as exploited yet, but serious or likely enough that it should not wait for a quiet month.
- **Precursor Intelligence risk score:** 52 out of 100 (Medium); action: Plan remediation. Kept up to date as the evidence changes.
- **Severity:** High (CVSS 7.5 out of 10)
- **Known to be exploited:** No, not on the list of flaws known to be exploited today
- **Chance of use in the next 30 days:** 54% (latest exploit-likelihood forecast)
- **Published:** 25 July 2022
- **Record last updated:** 7 November 2023
- **Main product:** Moodle
- **Affected products:** 2

## What is CVE-2022-35650? In plain terms

It can be attacked from anywhere on the internet without logging in, and nobody has to click anything. If it works, the attacker can read data.

### The official 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.

### What kind of flaw is it?

- CWE-20: Improper Input Validation
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

### How an attack on it works

- Where an attacker can be: Anywhere on the internet
- How hard it is to pull off: Easy: no special conditions
- Login needed first: No login needed
- Does someone have to click: No, nobody has to do anything
- What an attacker gets: Can read data

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

## Is CVE-2022-35650 being exploited? Not that we know of

It is not on the list of flaws known to be exploited today. The latest forecast puts the chance of it being used in the next 30 days at 54%. That can change at any time, which is why we keep watching.

Exploit likelihood over the last 7 days: 51%, 54%, 54%, 54%, 54%, 54%, 54%.

### Timeline

- 25 July 2022: Published
- 7 November 2023: Record last updated
- 16 June 2026: Exploit likelihood jumped

### How Precursor Intelligence ranks it

CVE-2022-35650 scores **52 out of 100 (Medium)**, with the action "Plan remediation".

Every published flaw gets a risk score from 0 to 100, kept up to date as the evidence changes. Four things go into the score, from the one that counts most to the ones that count less:

- Evidence it is being exploited: biggest factor
- How severe it is: strong factor
- How widely exposed it is: smaller factor
- Threat activity around it: smaller factor

85 and above is Critical. Anything confirmed as exploited is always marked for an emergency patch, whatever its score. When this flaw matches software you track, it lands in your list with its score and the reasons behind it.

## Who is affected by CVE-2022-35650?

The published record lists 2 products. Versions are as published: "3.9.0 to before 3.9.15" means from 3.9.0 up to, but not including, 3.9.15.

- [Moodle](https://www.precursorintelligence.com/product/moodle/moodle) by [Moodle](https://www.precursorintelligence.com/vendors/moodle) (Application): 3.9.0 to before 3.9.15, 3.11.0 to before 3.11.8, 4.0.0 to before 4.0.2
- [Fedora](https://www.precursorintelligence.com/product/fedoraproject/fedora) by [Fedoraproject](https://www.precursorintelligence.com/vendors/fedoraproject) (Operating system): 35, 36

## How do I fix CVE-2022-35650?

1. **Check whether you run it.** Compare your versions with the affected products above. Not sure what you run? Precursor Intelligence can work it out from your public website, or you can pick it from a list.
2. **Apply the vendor’s fix.** Install the update named in the vendor’s advisory. We’ve put the advisories and patch notes first in the list.
3. **If you can’t patch today.** Follow any mitigation the vendor publishes, and limit who can reach the affected system from the internet until the update is in.
4. **Keep an eye on it.** Track the product and we tell you as soon as we spot this flaw on the list of exploited flaws, or a jump in its exploit likelihood.

### References

- [git.moodle.org](http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-72029) (Patch, Vendor advisory)
- [moodle.org](https://moodle.org/mod/forum/discuss.php?d=436457) (Vendor advisory)
- [bugzilla.redhat.com](https://bugzilla.redhat.com/show_bug.cgi?id=2106274) (Issue tracking, Third-party advisory)
- [lists.fedoraproject.org](https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6MOKYVRNFNAODP2XSMGJ5CRDUZCZKAR3/)
- [lists.fedoraproject.org](https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MTKUSFPSYFINSQFSOHDQIDVE6FWBEU6V/)

## Questions

### What is CVE-2022-35650?

CVE-2022-35650 is a high-severity flaw in Moodle, published on 25 July 2022. It can be attacked from anywhere on the internet without logging in, and nobody has to click anything. If it works, the attacker can read data.

### How serious is CVE-2022-35650?

It scores 7.5 out of 10 on the CVSS severity scale, which is high. Our risk score for CVE-2022-35650 is 52 out of 100, which is Medium. Its action is "Plan remediation". Not confirmed as exploited yet, but serious or likely enough that it should not wait for a quiet month.

### Is CVE-2022-35650 being exploited?

It is not on the list of flaws known to be exploited today. The latest forecast puts the chance of it being used in the next 30 days at 54%. That can change at any time, which is why we keep watching.

### Which versions does CVE-2022-35650 affect?

For Moodle: 3.9.0 to before 3.9.15, 3.11.0 to before 3.11.8, 4.0.0 to before 4.0.2. The record lists 2 products in all, each with its versions, under "Who is affected" on this page.

### How do I fix CVE-2022-35650?

Install the update the vendor names in its advisory, linked first under "How do I fix" on this page. If you can't patch today, follow the vendor's mitigation and limit who can reach the affected system from the internet.

## Does CVE-2022-35650 affect you?

Precursor Intelligence keeps checking for you:

- **Tell us what you run.** Pick your software from a list, or let us work it out from your website.
- **We match it to every flaw.** Over 400,000 published flaws, checked against your list.
- **Ranked by real-world risk.** Every flaw gets a 0 to 100 risk score, kept up to date, led by evidence criminals are using it.
- **Told as soon as we know.** An alert by email, in the app or by webhook to your own tools.

Start free (no card, nothing to install): https://www.precursorintelligence.com/register
Book a demo: https://www.precursorintelligence.com/contact

