{"id":"CVE-2024-52293","state":"PUBLISHED","title":"Craft has a Potential Remote Code Execution via missing path normalization & Twig SSTI","description":"Craft is a content management system (CMS). Prior to 4.12.2 and 5.4.3, Craft is missing normalizePath in the function FileHelper::absolutePath could lead to Remote Code Execution on the server via twig SSTI. This is a sequel to CVE-2023-40035. This vulnerability is fixed in 4.12.2 and 5.4.3.","publishedAt":"2024-11-13T16:04:52.005Z","updatedAt":"2024-11-13T18:56:00.590Z","severity":{"score":7.2,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["craftcms cms"],"affected":[{"vendor":"craftcms","product":"cms","versions":[{"version":">= 4.0.0-RC1, < 4.12.2","status":"affected"},{"version":">= 5.0.0-RC1, < 5.4.3","status":"affected"}]}],"references":["https://github.com/craftcms/cms/security/advisories/GHSA-f3cw-hg6r-chfv","https://github.com/craftcms/cms/commit/123e48a696de1e2f63ab519d4730eb3b87beaa58"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:08:04.920Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/52xxx/CVE-2024-52293.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-52293","state":"PUBLISHED","datePublished":"2024-11-13T16:04:52.005Z","dateUpdated":"2024-11-13T18:56:00.590Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-11-06T19:00:26.394Z"},"containers":{"cna":{"title":"Craft has a Potential Remote Code Execution via missing path normalization & Twig SSTI","descriptions":[{"lang":"en","value":"Craft is a content management system (CMS). Prior to 4.12.2 and 5.4.3, Craft is missing normalizePath in the function FileHelper::absolutePath could lead to Remote Code Execution on the server via twig SSTI. This is a sequel to CVE-2023-40035. This vulnerability is fixed in 4.12.2 and 5.4.3."}],"affected":[{"vendor":"craftcms","product":"cms","versions":[{"version":">= 4.0.0-RC1, < 4.12.2","status":"affected"},{"version":">= 5.0.0-RC1, < 5.4.3","status":"affected"}]}],"references":[{"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_CONFIRM"]},{"url":"https://github.com/craftcms/cms/commit/123e48a696de1e2f63ab519d4730eb3b87beaa58","name":"https://github.com/craftcms/cms/commit/123e48a696de1e2f63ab519d4730eb3b87beaa58","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.2,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-11-13T16:04:52.005Z"},"source":{"advisory":"GHSA-f3cw-hg6r-chfv","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"craftcms","product":"craft_cms","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"4.0.0-RC1","versionType":"custom"},{"version":"0","status":"affected","lessThan":"4.12.2","versionType":"custom"},{"version":"0","status":"affected","lessThanOrEqual":"5.0.0-RC1","versionType":"custom"},{"version":"0","status":"affected","lessThan":"5.4.3","versionType":"custom"}],"cpes":["cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-11-13T18:54:41.908235Z","id":"CVE-2024-52293","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":"2024-11-13T18:56:00.590Z"}}]}}}