{"schemaVersion":3,"id":"CVE-2025-46731","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-05-05T19:35:31.347Z","modified":"2025-05-05T20:03:42.802Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.3,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.3,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.3,"severity":"high","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/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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.2,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01518,"percentile":0.742,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.10400000000000009,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.01414},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01518,"percentile":0.742}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01414,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01518,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01518,"percentile":0.742}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine","description":"The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1336.html"}],"affected":[{"vendor":"craftcms","product":"cms","name":"cms","label":"cms","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0.0-RC1, < 4.14.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0-RC1, < 5.6.15","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0-RC1, < 4.14.13 | ≥ 5.0.0-RC1, < 5.6.15","eol":null,"hubHref":"/vendor/craftcms/cms"},{"vendor":"craftcms","product":"craft_cms","name":"craft cms","label":"craft_cms","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.1.0, < 4.14.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.1.0, < 5.6.15","noFixRecorded":false,"fixedIn":null},{"text":"4.0.0:rc1","noFixRecorded":false,"fixedIn":null},{"text":"4.0.0:rc2","noFixRecorded":false,"fixedIn":null},{"text":"4.0.0:rc3","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:rc1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.1.0, < 4.14.13 | ≥ 5.1.0, < 5.6.15 | 4.0.0:rc1 | 4.0.0:rc2 | 4.0.0:rc3 | 5.0.0:rc1","eol":{"isEol":true,"eolDate":"2026-04-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"4","label":"4","eolFrom":"2026-04-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"4.18.9"},"product":{"name":"craft-cms","label":"Craft CMS","category":"server-app"}},"hubHref":"/vendor/craftcms/craft_cms"}],"affectedCount":2,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-7c58-g782-9j38","label":"github.com/craftcms/cms/security/advisories/GHSA-7c58-g782-9j38","hostname":"github.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv","label":"github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv","hostname":"github.com","tags":["X Refsource MISC","Not Applicable"]},{"url":"https://craftcms.com/knowledge-base/securing-craft#set-allowAdminChanges-to-false-in-production","label":"craftcms.com/knowledge-base/securing-craft","hostname":"craftcms.com","tags":["X Refsource MISC","Product"]},{"url":"http://github.com/craftcms/cms/pull/17026","label":"github.com/craftcms/cms/pull/17026","hostname":"github.com","tags":["X Refsource MISC","Patch"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-05-05T19:35:31.347Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-05-05T20:03:42.802Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:48:59.513Z","stale":false,"partial":false}}