Read the docs
TI-2024-31438 Aliases CVE-2024-47056GHSA-h2wg-v8wg-jhxh

Mautic does not shield .env files from web traffic

Priority LOW 22CWE-312Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
Low · None · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-312.

Summary

SummaryThis 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. MitigationUpdate Mautic to the latest Mautic version. By default, Mautic does not use .env files for production data. For Apache users: Ensure your web server is configured to respect .htaccess files. For Nginx users: As Nginx does not inherently support .htaccess files, you must manually add a configuration block to your Nginx server configuration to deny access to .env files. Add the following to your Nginx configuration for the Mautic site: location ~ /\.env { deny all; } After modifying your Nginx configuration, remember to reload or restart your Nginx service for the changes to take effect.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00123 2nd percentileScored 2026-11-07
Fix Fixed Mautic (Mautic): < 6.0.2, < 5.2.6, <4.4.16mautic/core (Packagist): 4.4.16, 5.2.6, 6.0.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
MauticMautic> 4.4.0 to before < 6.0.2, < 5.2.6, <4.4.16< 6.0.2, < 5.2.6, <4.4.16Patch availableCNA
—mautic/core (Packagist)4.4.0 to before 4.4.164.4.16Patch availableGHSA-h2wg-v8wg-jhxh
—mautic/core (Packagist)5.0.0-alpha to before 5.2.65.2.6Patch availableGHSA-h2wg-v8wg-jhxh
—mautic/core (Packagist)6.0.0-alpha to before 6.0.26.0.2Patch availableGHSA-h2wg-v8wg-jhxh
  • Mautic VendorMautic Affected > 4.4.0 to before < 6.0.2, < 5.2.6, <4.4.16 Fixed in < 6.0.2, < 5.2.6, <4.4.16 Patch available CNA
  • mautic/core (Packagist) Vendor— Affected 4.4.0 to before 4.4.16 Fixed in 4.4.16 Patch available GHSA-h2wg-v8wg-jhxh
  • mautic/core (Packagist) Vendor— Affected 5.0.0-alpha to before 5.2.6 Fixed in 5.2.6 Patch available GHSA-h2wg-v8wg-jhxh
  • mautic/core (Packagist) Vendor— Affected 6.0.0-alpha to before 6.0.2 Fixed in 6.0.2 Patch available GHSA-h2wg-v8wg-jhxh

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:acquia:mautic:*:*:*:*:*:*:*:*——Acquia
  • cpe:2.3:a:acquia:mautic:*:*:*:*:*:*:*:* Versions — — ·Acquia

Remediation

  • Fix · CNA Mautic (Mautic) Fixed in < 6.0.2, < 5.2.6, <4.4.16
  • Fix · GHSA-h2wg-v8wg-jhxh mautic/core (Packagist) Fixed in 4.4.16 Advisory →
  • Fix · GHSA-h2wg-v8wg-jhxh mautic/core (Packagist) Fixed in 5.2.6 Advisory →
  • Fix · GHSA-h2wg-v8wg-jhxh mautic/core (Packagist) Fixed in 6.0.2 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-47056
  2. 2026-10-03 Alias added: GHSA-h2wg-v8wg-jhxh

References

  • TI-2022-09344 Cross-site scripting in Mautic CVSS 3.1CRITICAL 9.6
  • TI-2024-02543 Predictable Page Indexing Might Lead to Sensitive Data Exposure in Mautic CVSS 3.1MEDIUM 5.3
  • TI-2024-02544 Improper Access Control Issues Lead to Sensitive Data Exposure in Mautic CVSS 3.1MEDIUM 5.4
  • TI-2024-03218 Improper Access Control Leads to Server-Side Request Forgery in Mautic CVSS 3.1MEDIUM 5.0
  • TI-2024-31435 Remote Code Execution & File Deletion in Asset Uploads CVSS 3.1CRITICAL 9.9
  • TI-2018-05847 Mautic before 2.13.0 allows CSV injection. CVSS 3.0CRITICAL 9.8
See all 48 →

Sources