VDB
Sign up
HIGH8.6

GHSA-4484-8v2f-5748

Craft CMS vulnerable to behavior injection RCE ElementIndexesController and FieldsController

Quick fix

GHSA-4484-8v2f-5748 — craftcms/cms: upgrade to the fixed version with the command below.

composer require craftcms/cms:^4.17.5

Details

The fix for https://github.com/advisories/GHSA-7jx7-3846-m7w7 (commit https://github.com/craftcms/cms/commit/395c64f0b80b507be1c862a2ec942eaacb353748) only patched `src/services/Fields.php`, but the same vulnerable pattern exists in `ElementIndexesController` and `FieldsController`.

You need Craft control panel administrator permissions, and allowAdminChanges must be enabled for this to work.

An attacker can use the same gadget chain from the original advisory to achieve RCE.

Users should update to Craft 4.17.5 and 5.9.11 to mitigate the issue.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/craftcms/cms
Introduced in: 4.0.0-RC1Fixed in: 4.17.5
Fixcomposer require craftcms/cms:^4.17.5
Packagist/craftcms/cms
Introduced in: 5.0.0-RC1Fixed in: 5.9.11
Fixcomposer require craftcms/cms:^5.9.11

References