Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. CVE-2025-46731

CVE-2025-46731: Craft CMS Contains a Potential Remote Code Execution Vulnerability via Twig SSTI

May 5, 2025 (updated October 31, 2025)

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

  • craftcms.com/knowledge-base/securing-craft
  • github.com/advisories/GHSA-7c58-g782-9j38
  • github.com/craftcms/cms
  • github.com/craftcms/cms/security/advisories/GHSA-7c58-g782-9j38
  • github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv
  • nvd.nist.gov/vuln/detail/CVE-2025-46731

Code Behaviors & Features

Detect and mitigate CVE-2025-46731 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 4.0.0-RC1 before 4.14.13, all versions starting from 5.0.0-RC1 before 5.6.15

Fixed versions

  • 4.14.13
  • 5.6.15

Solution

Upgrade to versions 4.14.13, 5.6.15 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine

Source file

packagist/craftcms/cms/CVE-2025-46731.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:46 +0000.