{"schemaVersion":3,"id":"CVE-2025-35939","aliases":[],"status":"published","duplicateOf":null,"title":"Craft CMS External Control of Assumed-Immutable Web Parameter Vulnerability","description":"Craft CMS stores arbitrary content provided by unauthenticated users in session files. This content could be accessed and executed, possibly using an independent vulnerability. Craft CMS redirects requests that require authentication to the login page and generates a session file on the server at '/var/lib/php/sessions'. Such session files are named 'sess_[session_value]', where '[session_value]' is provided to the client in a 'Set-Cookie' response header. Craft CMS stores the return URL requested by the client without sanitizing parameters. Consequently, an unauthenticated client can introduce arbitrary values, such as PHP code, to a known local file location on the server. Craft CMS versions 5.7.5 and 4.15.3 have been released to address this issue.","dates":{"published":"2025-05-07T22:41:29.728Z","modified":"2026-02-26T18:28:42.701Z","reserved":null,"kevAdded":["2025-06-02T00:00:00.000Z"],"kevDue":["2025-06-23T00:00:00.000Z"]},"cvss":{"headline":{"score":6.9,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/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":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01349,"percentile":0.71231,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0.032000000000000084,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.01317},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01349,"percentile":0.71231}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01317,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01349,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01349,"percentile":0.71231}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2025-06-02T00:00:00.000Z","dueDate":"2025-06-23T00:00:00.000Z","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","name":"Craft CMS External Control of Assumed-Immutable Web Parameter Vulnerability","description":"Craft CMS contains an external control of assumed-immutable web parameter vulnerability. This vulnerability could allow an unauthenticated client to introduce arbitrary values, such as PHP code, to a known local file location on the server. This vulnerability could be chained with CVE-2024-58136 as represented by CVE-2025-32432.","notes":[{"type":"url","href":"https://github.com/craftcms/cms/pull/17220","label":"github.com/craftcms/cms/pull/17220"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2025-35939","label":"nvd.nist.gov/vuln/detail/CVE-2025-35939"}],"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-06-02T00:00:00.000Z","dueDate":"2025-06-23T00:00:00.000Z","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","name":"Craft CMS External Control of Assumed-Immutable Web Parameter Vulnerability","description":"Craft CMS contains an external control of assumed-immutable web parameter vulnerability. This vulnerability could allow an unauthenticated client to introduce arbitrary values, such as PHP code, to a known local file location on the server. This vulnerability could be chained with CVE-2024-58136 as represented by CVE-2025-32432.","notes":[{"type":"url","href":"https://github.com/craftcms/cms/pull/17220","label":"github.com/craftcms/cms/pull/17220"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2025-35939","label":"nvd.nist.gov/vuln/detail/CVE-2025-35939"}],"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-472","name":"External Control of Assumed-Immutable Web Parameter","description":"The web application does not sufficiently verify inputs that are assumed to be immutable but are actually externally controllable, such as hidden form fields.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/472.html"}],"affected":[{"vendor":"craft","product":"cms","name":"CMS","label":"cms","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.7.5","noFixRecorded":false,"fixedIn":null},{"text":"< 4.15.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.7.5 | < 4.15.3","eol":null,"hubHref":"/vendor/craft/cms"},{"vendor":"craftcms","product":"craft_cms","name":"craft cms","label":"craft_cms","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.15.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.7.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.15.3 | ≥ 5.0.0, < 5.7.5","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"craft-cms","label":"Craft CMS","category":"server-app"}},"hubHref":"/vendor/craftcms/craft_cms"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/craftcms/cms/pull/17220","label":"github.com/craftcms/cms/pull/17220","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/craftcms/cms/releases/tag/4.15.3","label":"github.com/craftcms/cms/releases/tag/4.15.3","hostname":"github.com","tags":["Release Notes"]},{"url":"https://github.com/craftcms/cms/releases/tag/5.7.5","label":"github.com/craftcms/cms/releases/tag/5.7.5","hostname":"github.com","tags":["Release Notes"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-35939","label":"www.cve.org/CVERecord?id=CVE-2025-35939","hostname":"www.cve.org","tags":["VDB Entry"]},{"url":"https://raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2025/va-25-147-01.json","label":"raw.githubusercontent.com/cisagov/CSAF/develop/csaf_files/IT/white/2025/va-25-147-01.json","hostname":"raw.githubusercontent.com","tags":["Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-35939","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-35939","hostname":"www.cisa.gov","tags":["Government Resource","US Government Resource"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-05-07T22:41:29.728Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2025-06-02T00:00:00.000Z","label":"Added to CISA KEV","detail":"Craft CMS External Control of Assumed-Immutable Web Parameter Vulnerability","source":"cisa"},{"kind":"kev-due","date":"2025-06-23T00:00:00.000Z","label":"CISA remediation due","detail":"Apply mitigations per vendor instructions.","source":"cisa"},{"kind":"modified","date":"2026-02-26T18:28:42.701Z","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-21T19:25:48.878Z","stale":false,"partial":false}}