CVE-2024-52292Craftcms Craft Cms
Medium 6.5
Follow: this CVE · Craftcms · Craftcms Craft Cms We alert you by email or Slack (account required).
- Priority
- 39
- CVSS 3.1
- 6.5
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 62
- Auth required
- Yes
- Published
- Nov 13, 2024
- Updated
- Jun 17, 2026
- Category
- Web application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
What happens
Craft is a content management system (CMS). The dataUrl function can be exploited if an attacker has write permissions on system notification templates. This function accepts an absolute file path, reads the file's content, and converts it into a Base64-encoded string. By embedding this function within a system notification template, the attacker can exfiltrate the Base64-encoded file content through a triggered system email notification. Once the email is received, the Base64 payload can be decoded, allowing the attacker to read arbitrary files on the server. This is fixed in 5.4.9 and 4.12.8.
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-alpha.1 < 5.4.9 |
5.4.9 |
composer require "craftcms/cms:^5.4.9" |
| Packagist | craftcms/cms |
≥ 3.5.13 < 4.12.8 |
4.12.8 |
composer require "craftcms/cms:^4.12.8" |
Per OSV / GitHub Advisories (GHSA-cw6g-qmjq-6w2w). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| craftcms | craft_cms | ≥ 3.5.13 < 4.12.8 |
| craftcms | craft_cms | ≥ 5.0.0 < 5.4.9 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Vendor Advisory