Vulnerability · Published Nov 13, 2024 · Assigned by GitHub_M

CVE-2024-52293Craft has a Potential Remote Code Execution via missing path normalization & Twig SSTI

High 7.2

In plain English

A high-severity path traversal in cms from craftcms. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.2High
Exploit odds (30 days)1.4%top 28.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistcraftcms/cms4.12.2GHSA-f3cw-hg6r-chfv
Packagistcraftcms/cms5.4.3GHSA-f3cw-hg6r-chfv

Affected products (as reported)

VendorProductVersions
craftcms cms >= 4.0.0-RC1, < 4.12.2>= 5.0.0-RC1, < 5.4.3

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

References