VDB
Sign up
HIGH7.5

GHSA-xxp4-mf4h-6cwm

Moodle vulnerable to Server Side Request Forgery

Quick fix

GHSA-xxp4-mf4h-6cwm — moodle/moodle: upgrade to the fixed version with the command below.

composer require moodle/moodle:^4.2.1

Details

An issue in the logic used to check 0.0.0.0 against the cURL blocked hosts lists resulted in an SSRF risk. This flaw affects Moodle versions 4.2, 4.1 to 4.1.3, 4.0 to 4.0.8, 3.11 to 3.11.14, 3.9 to 3.9.21 and earlier unsupported versions.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/moodle/moodle
Introduced in: 4.2.0Fixed in: 4.2.1
Fixcomposer require moodle/moodle:^4.2.1
Packagist/moodle/moodle
Introduced in: 4.1.0Fixed in: 4.1.4
Fixcomposer require moodle/moodle:^4.1.4
Packagist/moodle/moodle
Introduced in: 4.0.0Fixed in: 4.0.9
Fixcomposer require moodle/moodle:^4.0.9
Packagist/moodle/moodle
Introduced in: 3.10.0Fixed in: 3.11.15
Fixcomposer require moodle/moodle:^3.11.15
Packagist/moodle/moodle
Introduced in: 0Fixed in: 3.9.22
Fixcomposer require moodle/moodle:^3.9.22

References