VDB
Sign up
MEDIUM

GHSA-gphj-63h8-r9vq

Moodle directory traversal vulnerability

Quick fix

GHSA-gphj-63h8-r9vq — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^2.6.8

Details

Directory traversal vulnerability in the min_get_slash_argument function in lib/configonlylib.php in Moodle through 2.5.9, 2.6.x before 2.6.8, 2.7.x before 2.7.5, and 2.8.x before 2.8.3 allows remote authenticated users to read arbitrary files via a .. (dot dot) in the file parameter, as demonstrated by reading PHP scripts.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 0Fixed in: 2.6.8
Fixcomposer require moodle/moodle:^2.6.8
Packagist/moodle/moodle
Introduced in: 2.7.0Fixed in: 2.7.5
Fixcomposer require moodle/moodle:^2.7.5
Packagist/moodle/moodle
Introduced in: 2.8.0Fixed in: 2.8.3
Fixcomposer require moodle/moodle:^2.8.3

References