HIGH
GHSA-8wg7-wm29-2rvg
RCE via SSTI for users with permissions to access the Craft CMS Webhooks plugin
Quick fix
GHSA-8wg7-wm29-2rvg — craftcms/webhooks: upgrade to the fixed version with the command below.
composer require craftcms/webhooks:^3.2.0Details
The Webhooks plugin renders user-supplied template content through Twig’s `renderString()` function without sandbox protection. This allows an authenticated user with access to the Craft control panel and permissions to access the Webhooks plugin to inject Twig template code that calls arbitrary PHP functions.
This is possible even if `allowAdminChanges` is set to `false`.
Affected users should update to version 3.2.0 to mitigate the issue.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/craftcms/webhooks
Introduced in:
3.0.0Fixed in: 3.2.0Fix
composer require craftcms/webhooks:^3.2.0