{"schemaVersion":3,"id":"CVE-2025-23209","aliases":[],"status":"published","duplicateOf":null,"title":"Craft CMS Code Injection Vulnerability","description":"Craft is a flexible, user-friendly CMS for creating custom digital experiences on the web and beyond. This is an remote code execution (RCE) vulnerability that affects Craft 4 and 5 installs where your security key has already been compromised. Anyone running an unpatched version of Craft with a compromised security key is affected. This vulnerability has been patched in Craft 5.5.8 and 4.13.8. Users who cannot update to a patched version, should rotate their security keys and ensure their privacy to help migitgate the issue.","dates":{"published":"2025-01-18T00:32:54.954Z","modified":"2026-02-26T19:09:05.707Z","reserved":null,"kevAdded":["2025-02-20T00:00:00.000Z"],"kevDue":["2025-03-13T00:00:00.000Z"]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.21776,"percentile":0.97622,"severity":"high","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.21776},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.21776,"percentile":0.97622}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.21776,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.21776,"percentile":0.97622}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2025-02-20T00:00:00.000Z","dueDate":"2025-03-13T00:00:00.000Z","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","name":"Craft CMS Code Injection Vulnerability","description":"Craft CMS contains a code injection vulnerability caused by improper validation of the database backup path, ultimately enabling remote code execution.","notes":[{"type":"url","href":"https://github.com/craftcms/cms/security/advisories/GHSA-x684-96hh-833x","label":"github.com/craftcms/cms/security/advisories/GHSA-x684-96hh-833x"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2025-23209","label":"nvd.nist.gov/vuln/detail/CVE-2025-23209"}],"vendor":"Craft CMS","product":"Craft CMS","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2025-02-20T00:00:00.000Z","dueDate":"2025-03-13T00:00:00.000Z","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","name":"Craft CMS Code Injection Vulnerability","description":"Craft CMS contains a code injection vulnerability caused by improper validation of the database backup path, ultimately enabling remote code execution.","notes":[{"type":"url","href":"https://github.com/craftcms/cms/security/advisories/GHSA-x684-96hh-833x","label":"github.com/craftcms/cms/security/advisories/GHSA-x684-96hh-833x"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2025-23209","label":"nvd.nist.gov/vuln/detail/CVE-2025-23209"}],"vendor":"Craft CMS","product":"Craft CMS","ransomware":false,"ransomwareUse":"Unknown","exploitationType":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-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"craftcms","product":"cms","name":"cms","label":"cms","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.0.0-RC1, < 5.5.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0-RC1, < 4.13.8","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.0.0-RC1, < 5.5.5 | ≥ 4.0.0-RC1, < 4.13.8","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.0.0, < 4.13.8","noFixRecorded":false,"fixedIn":null},{"text":"> 5.0.0, < 5.5.8","noFixRecorded":false,"fixedIn":null},{"text":"4.0.0","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","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:rc1","noFixRecorded":false,"fixedIn":null}],"versionsText":"> 4.0.0, < 4.13.8 | > 5.0.0, < 5.5.8 | 4.0.0 | 4.0.0:rc1 | 4.0.0:rc2 | 4.0.0:rc3 | 5.0.0 | 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-x684-96hh-833x","label":"github.com/craftcms/cms/security/advisories/GHSA-x684-96hh-833x","hostname":"github.com","tags":["X Refsource CONFIRM","Vendor Advisory"]},{"url":"https://github.com/craftcms/cms/commit/e59e22b30c9dd39e5e2c7fe02c147bcbd004e603","label":"github.com/craftcms/cms/commit/e59e22b30c9dd39e5e2c7fe02c147bcbd004e603","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://craftcms.com/knowledge-base/securing-craft#keep-your-secrets-secret","label":"craftcms.com/knowledge-base/securing-craft","hostname":"craftcms.com","tags":["X Refsource MISC","Product"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-23209","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-23209","hostname":"www.cisa.gov","tags":["Government Resource","US Government Resource"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-01-18T00:32:54.954Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2025-02-20T00:00:00.000Z","label":"Added to CISA KEV","detail":"Craft CMS Code Injection Vulnerability","source":"cisa"},{"kind":"kev-due","date":"2025-03-13T00:00:00.000Z","label":"CISA remediation due","detail":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","source":"cisa"},{"kind":"modified","date":"2026-02-26T19:09:05.707Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":85,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T19:33:40.294Z","stale":false,"partial":false}}