CVE-2025-46731
HIGH 7.3CVSS 4.0Craft CMS Contains a Potential Remote Code Execution Vulnerability via Twig SSTI
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.
- Published
- 5 May 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1336
- Also known as
- GHSA-7c58-g782-9j38
- Sources
- NVDJSONOSV GHSA-7c58-g782-9j38JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* |
>= 4.1.0, < 4.14.13 | 4.14.13 |
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* |
>= 5.1.0, < 5.6.15 | 5.6.15 |
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:4.0.0:rc1:*:*:*:*:*:* |
= 4.0.0 | |
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:4.0.0:rc2:*:*:*:*:*:* |
= 4.0.0 | |
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:4.0.0:rc3:*:*:*:*:*:* |
= 4.0.0 | |
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:5.0.0:rc1:*:*:*:*:*:* |
= 5.0.0 | |
| OSV | Packagist | craftcms/cms | >= 4.0.0-RC1, < 4.14.13 | 4.14.13 |
| OSV | Packagist | craftcms/cms | >= 5.0.0-RC1, < 5.6.15 | 5.6.15 |
References
- http://github.com/craftcms/cms/pull/17026 · Patch, WEB
- https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production · Product, WEB
- https://github.com/craftcms/cms/security/advisories/GHSA-7c58-g782-9j38 · Third Party Advisory, WEB
- https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv · Not Applicable, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-46731 · ADVISORY
- https://github.com/craftcms/cms · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 5 May 2025)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 5 May 2025)