CVE-2024-52293

Craft has a Potential Remote Code Execution via missing path normalization & Twig SSTI

State
Published
Severity
7.2 High
Published
Nov 13, 2024
Updated
Nov 13, 2024
Reserved
Nov 6, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.2 HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HGitHub_M

Weaknesses

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Affected Products

ProductVersions
cmscraftcms
  • >= 4.0.0-RC1, < 4.12.2Affected
  • >= 5.0.0-RC1, < 5.4.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.