{"id":"CVE-2025-46731","state":"PUBLISHED","title":"Craft CMS Contains a Potential Remote Code Execution Vulnerability via Twig SSTI","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.","publishedAt":"2025-05-05T19:35:31.347Z","updatedAt":"2025-05-05T20:03:42.802Z","severity":{"score":7.3,"label":"High","version":"4.0","vector":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["craftcms cms"],"affected":[{"vendor":"craftcms","product":"cms","versions":[{"version":">= 4.0.0-RC1, < 4.14.13","status":"affected"},{"version":">= 5.0.0-RC1, < 5.6.15","status":"affected"}]}],"references":["https://github.com/craftcms/cms/security/advisories/GHSA-7c58-g782-9j38","https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv","https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production","http://github.com/craftcms/cms/pull/17026"],"weaknesses":["CWE-1336"],"ingestedAt":"2026-10-29T20:09:17.366Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/46xxx/CVE-2025-46731.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-46731","state":"PUBLISHED","datePublished":"2025-05-05T19:35:31.347Z","dateUpdated":"2025-05-05T20:03:42.802Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-04-28T20:56:09.085Z"},"containers":{"cna":{"title":"Craft CMS Contains a Potential Remote Code Execution Vulnerability via Twig SSTI","descriptions":[{"lang":"en","value":"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":[{"vendor":"craftcms","product":"cms","versions":[{"version":">= 4.0.0-RC1, < 4.14.13","status":"affected"},{"version":">= 5.0.0-RC1, < 5.6.15","status":"affected"}]}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-7c58-g782-9j38","name":"https://github.com/craftcms/cms/security/advisories/GHSA-7c58-g782-9j38","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv","name":"https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv","tags":["x_refsource_MISC"]},{"url":"https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production","name":"https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production","tags":["x_refsource_MISC"]},{"url":"http://github.com/craftcms/cms/pull/17026","name":"http://github.com/craftcms/cms/pull/17026","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"HIGH","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":7.3,"baseSeverity":"HIGH","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1336","lang":"en","description":"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-05-05T19:35:31.347Z"},"source":{"advisory":"GHSA-7c58-g782-9j38","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-05-05T20:03:33.766996Z","id":"CVE-2025-46731","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-05-05T20:03:42.802Z"}}]}}}