Improper Input Validation Affecting moodle/moodle package, versions >=2.1.0, <=2.1.19>=2.2.0, <=2.2.7>=2.3.0, <=2.3.4>=2.4, <2.4.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.12% (47th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-MOODLEMOODLE-6141131
  • published1 Jan 2024
  • disclosed13 May 2022
  • creditUnknown

Introduced: 13 May 2022

CVE-2012-6099  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade moodle/moodle to version 2.4.1 or higher.

Overview

moodle/moodle is a learning platform.

Affected versions of this package are vulnerable to Improper Input Validation due to improper validation of pathnames in the backup/converter/moodle1/lib.php script. An attacker can read arbitrary files by leveraging the backup-restoration feature. This is only exploitable if the attacker has the ability to restore backups.

CVSS Scores

version 3.1