Skip to content
OpenAdvisories
High · 7.3 Public exploit CVE-2025-46731 EUVD-2025-13408GHSA-7c58-g782-9j38

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

Published May 5, 2025 · Updated May 5, 2025 · Assigned by GitHub_M

Description

Craft is a content management system. Versions of Craft CMS on the 4.x branch prior to 4.14.13 and on the 5.x branch prior to 5.6.16 contains a potential remote code execution vulnerability via Twig SSTI. One must have administrator access and `ALLOW_ADMIN_CHANGES` must be enabled for this to work. Users should update to the patched versions 4.14.13 or 5.6.15 to mitigate the issue.

Affected products

VendorProductAffectedFixed
craftcms cms >= 4.0.0-RC1, < 4.14.13, >= 5.0.0-RC1, < 5.6.15 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist craftcms/cms >= 4.0.0-RC1, < 4.14.13 4.14.13 GHSA-7c58-g782-9j38
Packagist craftcms/cms >= 5.0.0-RC1, < 5.6.15 5.6.15 GHSA-7c58-g782-9j38

References