Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. mautic/core
  4. ›
  5. CVE-2024-47056

CVE-2024-47056: Mautic does not shield .env files from web traffic

May 28, 2025

This advisory addresses a security vulnerability in Mautic where sensitive .env configuration files may be directly accessible via a web browser. This exposure could lead to the disclosure of sensitive information, including database credentials, API keys, and other critical system configurations.

Sensitive Information Disclosure via .env File Exposure: The .env file, which typically contains environment variables and sensitive application configurations, is directly accessible via a web browser due to missing web server configurations that restrict access to such files. This allows an unauthenticated attacker to view the contents of this file by simply navigating to its URL.

References

  • github.com/advisories/GHSA-h2wg-v8wg-jhxh
  • github.com/mautic/mautic
  • github.com/mautic/mautic/security/advisories/GHSA-h2wg-v8wg-jhxh
  • nvd.nist.gov/vuln/detail/CVE-2024-47056

Code Behaviors & Features

Detect and mitigate CVE-2024-47056 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.4.0 before 4.4.16, all versions starting from 5.0.0-alpha before 5.2.6, all versions starting from 6.0.0-alpha before 6.0.2

Fixed versions

  • 4.4.16
  • 5.2.6
  • 6.0.2

Solution

Upgrade to versions 4.4.16, 5.2.6, 6.0.2 or above.

Impact 5.1 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-526: Cleartext Storage of Sensitive Information in an Environment Variable

Source file

packagist/mautic/core/CVE-2024-47056.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:15 +0000.