CVE-2024-47056: Mautic Core Sensitive .env File Exposure Vulnerability

mautic/core Updated 02 Oct 2025

Summary

28/05/2025
Yes i
Moderate
5.1

CVE-2024-47056: Mautic does not shield .env files from web traffic. Affects mautic/core across 3 version ranges.

>= 4.4.0, < 4.4.16 >= 5.0.0-alpha, < 5.2.6 >= 6.0.0-alpha, < 6.0.2

Fixed in 4.4.16, 5.2.6 or 6.0.2, 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Mautic is an open-source marketing automation platform that enables businesses to manage their marketing campaigns and customer relationships effectively. It provides features such as email marketing, social media integration, and lead management. However, Mautic's reliance on configuration files, particularly the .env file, can expose sensitive information if not properly secured. This vulnerability arises from inadequate web server configurations that allow direct access to these files.

Vulnerability Detail

This vulnerability allows unauthorized access to sensitive .env configuration files through a web browser. The .env file typically contains critical information such as database credentials and API keys. Due to missing restrictions in web server configurations, an attacker can easily access this file by navigating to its URL, leading to potential data breaches and unauthorized access to the application.

How To Fix

Fixed versions by release line

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

  • >= 4.4.0, < 4.4.16 4.4.16
    composer require mautic/core:4.4.16
  • >= 5.0.0-alpha, < 5.2.6 5.2.6
    composer require mautic/core:5.2.6
  • >= 6.0.0-alpha, < 6.0.2 6.0.2
    composer require mautic/core:6.0.2

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

Workaround

For Apache users, ensure your web server respects .htaccess files. For Nginx users, add the following configuration block to your Nginx server configuration to deny access to .env files:

location ~ \.env {
deny all;
}

Conclusion

The CVE-2024-47056 vulnerability in Mautic poses a significant risk by exposing sensitive configuration files to unauthorized access. It is crucial for users to update to the latest versions and implement proper web server configurations to mitigate this risk.

See every vulnerability recorded for mautic/core →

Share this vulnerability

FAQ

The vulnerability can lead to the exposure of sensitive information such as database credentials and API keys, potentially compromising the security of the application.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The affected versions of Mautic are those prior to 4.4.16, 5.2.6, and 6.0.2.

The CVSS score of this vulnerability is 5.1, indicating a moderate severity level.

If immediate updating is not possible, implement the recommended workarounds to restrict access to the .env file until you can apply the patch.

Related vulnerabilities

Recent vulnerabilities recorded for mautic/core.

How To Fix

Fixed versions by release line

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

  • >= 4.4.0, < 4.4.16 4.4.16
    composer require mautic/core:4.4.16
  • >= 5.0.0-alpha, < 5.2.6 5.2.6
    composer require mautic/core:5.2.6
  • >= 6.0.0-alpha, < 6.0.2 6.0.2
    composer require mautic/core:6.0.2

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