Live threats

All CVEs / Craftcms

CVE-2024-52291Craftcms Craft Cms

High 7.2

Priority
43
CVSS 3.1
7.2
EPSS
1.7%
probability of exploitation in 30 days · percentile 78
Auth required
Yes
Published
Nov 13, 2024
Updated
Jun 17, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

What happens

Craft is a content management system (CMS). A vulnerability in CraftCMS allows an attacker to bypass local file system validation by utilizing a double file:// scheme (e.g., file://file:////). This enables the attacker to specify sensitive folders as the file system, leading to potential file overwriting through malicious uploads, unauthorized access to sensitive files, and, under certain conditions, remote code execution (RCE) via Server-Side Template Injection (SSTI) payloads. Note that this will only work if you have an authenticated administrator account with allowAdminChanges enabled. This is fixed in 5.4.6 and 4.12.5.

Original NVD text.

What to do

  1. Apply the vendor's security update for Craft Cms.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist craftcms/cms ≥ 5.0.0-RC1 < 5.4.6 5.4.6 composer require "craftcms/cms:^5.4.6"
Packagist craftcms/cms ≥ 4.0.0-RC1 < 4.12.5 4.12.5 composer require "craftcms/cms:^4.12.5"

Per OSV / GitHub Advisories (GHSA-jrh5-vhr9-qh7q). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
craftcmscraft_cms> 4.0.0 < 4.12.5
craftcmscraft_cms> 5.0.0 < 5.4.6
craftcmscraft_cms4.0.0
craftcmscraft_cms4.0.0
craftcmscraft_cms4.0.0
craftcmscraft_cms5.0.0

Official sources

References

Links published by the sources. Open them with care.