Advisory

GHSA-crcq-738g-pqvc

Also known as: CVE-2025-57811

Summary

Craft CMS Potential Remote Code Execution via Twig SSTI

Details

Note that users must have administrator access to the Craft Control Panel, and allowAdminChanges must be enabled for this to work, which is against Craft CMS' recommendations for any non-dev environment.

https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production

Note: This is a follow-up to GHSA-f3cw-hg6r-chfv

Users should update to the patched versions (4.16.6 and 5.8.7) to mitigate the issue.

Resources: https://github.com/craftcms/cms/pull/17612

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-08-25 20:42 UTC
Modified
2025-11-27 08:05 UTC

Affected packages and fixes

craftcms/cms

Packagist · All systems

Affected

  • introduced 4.0.0-RC1, fixed 4.16.6 (ecosystem)

Fixed versions

4.16.6

Fix

The export has no generic command for this ecosystem.

craftcms/cms

Packagist · All systems

Affected

  • introduced 5.0.0-RC1, fixed 5.8.7 (ecosystem)

Fixed versions

5.8.7

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences