CVE-2024-52291Craftcms Craft Cms
High 7.2
Follow: this CVE · Craftcms · Craftcms Craft Cms We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Craft Cms.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| craftcms | craft_cms | > 4.0.0 < 4.12.5 |
| craftcms | craft_cms | > 5.0.0 < 5.4.6 |
| craftcms | craft_cms | 4.0.0 |
| craftcms | craft_cms | 4.0.0 |
| craftcms | craft_cms | 4.0.0 |
| craftcms | craft_cms | 5.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Vendor Advisory