CVE-2024-52292: Craft CMS Arbitrary System File Read Vulnerability

craftcms/cms Updated 02 Oct 2025

Summary

13/11/2024
Yes i
High
7.7

CVE-2024-52292: Craft CMS Arbitrary System File Read. Affects craftcms/cms across 2 version ranges.

>= 3.5.13, < 4.12.8 >= 5.0.0-alpha.1, < 5.4.9

Fixed in 4.12.8 or 5.4.9, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Craft CMS is a flexible content management system designed for building websites and applications. It offers a user-friendly interface, powerful templating capabilities, and a robust plugin architecture. However, it is susceptible to vulnerabilities that can lead to unauthorized access to sensitive files on the server, particularly when write permissions are misconfigured on system notification templates.

Vulnerability Detail

The vulnerability arises from the misuse of the dataUrl function within Craft CMS, which allows an attacker with write permissions on system notification templates to read arbitrary files from the server. By embedding the dataUrl function in a notification template, the attacker can trigger an email that contains Base64-encoded content of sensitive files. This can lead to exposure of critical information such as configuration files, credentials, and other sensitive data, potentially resulting in privilege escalation and server compromise.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 3.5.13, < 4.12.8 4.12.8
    composer require craftcms/cms:4.12.8
  • >= 5.0.0-alpha.1, < 5.4.9 5.4.9
    composer require craftcms/cms:5.4.9

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, ensure that write permissions on system notification templates are restricted to trusted users only. Additionally, avoid using the dataUrl function in notification templates until the package is updated.

Conclusion

CVE-2024-52292 represents a significant security risk for Craft CMS users, allowing unauthorized access to sensitive files. It is crucial to update to the latest versions to mitigate this vulnerability and ensure the security of your application.

See every vulnerability recorded for craftcms/cms →

Share this vulnerability

FAQ

CVE-2024-52292 is a vulnerability in Craft CMS that allows arbitrary file reading through misconfigured system notification templates.

You can check your installation against the affected versions listed in the vulnerability report. Additionally, you can use Vulert to monitor for vulnerabilities in your Composer dependencies.

The risks include exposure of sensitive information, privilege escalation, server compromise, and potential breaches of user data confidentiality.

Restrict write permissions on system notification templates and avoid using the dataUrl function in templates until the vulnerability is patched.

Vulert is a tool that monitors open-source vulnerabilities in your software using the composer.lock file. It provides real-time alerts and can help you determine if your application is affected by vulnerabilities like CVE-2024-52292.

Related vulnerabilities

Recent vulnerabilities recorded for craftcms/cms.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 3.5.13, < 4.12.8 4.12.8
    composer require craftcms/cms:4.12.8
  • >= 5.0.0-alpha.1, < 5.4.9 5.4.9
    composer require craftcms/cms:5.4.9

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback