Advisory

GHSA-7c58-g782-9j38

Also known as: CVE-2025-46731

Summary

Craft CMS Contains a Potential Remote Code Execution Vulnerability via Twig SSTI

Details

Craft CMS contains a potential remote code execution vulnerability via Twig SSTI. You must have administrator access and ALLOW_ADMIN_CHANGES must be enabled for this to work.

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

Note: This is a follow-up to https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv

Users should update to the patched versions (4.14.13 and 5.6.15) to mitigate the issue.

References
https://github.com/craftcms/cms/pull/17026

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-05-05 19:35 UTC
Modified
2026-02-04 02:50 UTC

Affected packages and fixes

craftcms/cms

Packagist · All systems

Affected

  • introduced 4.0.0-RC1, fixed 4.14.13 (ecosystem)

Fixed versions

4.14.13

Fix

The export has no generic command for this ecosystem.

craftcms/cms

Packagist · All systems

Affected

  • introduced 5.0.0-RC1, fixed 5.6.15 (ecosystem)

Fixed versions

5.6.15

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