#VU67469 Deserialization of Untrusted Data in Moodle - CVE-2022-40314


Vulnerability identifier: #VU67469

Vulnerability risk: Medium

CVSSv4.0: 4.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2022-40314

CWE-ID: CWE-502

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Moodle
Web applications / Other software

Vendor: moodle.org

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to insecure input validation when restoring backup files originating from Moodle. A remote attacker can trick the victim into restoring the website from a malformed backup and execute arbitrary code on the target system.


Mitigation
Install updates from vendor's website.

Vulnerable software versions

Moodle: 3.9.0 - 3.9.16, 3.10.0 - 3.11.9, 4.0.0 - 4.0.3


External links
https://moodle.org/mod/forum/discuss.php?d=438393
https://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-75405


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability