Mautic does not shield .env files from web traffic
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Mautic | Mautic | > 4.4.0 to before < 6.0.2, < 5.2.6, <4.4.16 | < 6.0.2, < 5.2.6, <4.4.16 | Patch available | CNA |
| — | mautic/core (Packagist) | 4.4.0 to before 4.4.16 | 4.4.16 | Patch available | GHSA-h2wg-v8wg-jhxh |
| — | mautic/core (Packagist) | 5.0.0-alpha to before 5.2.6 | 5.2.6 | Patch available | GHSA-h2wg-v8wg-jhxh |
| — | mautic/core (Packagist) | 6.0.0-alpha to before 6.0.2 | 6.0.2 | Patch available | GHSA-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
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
- 2026-10-02 Threatist record created from CVE-2024-47056
- 2026-10-03 Alias added: GHSA-h2wg-v8wg-jhxh
References
More Mautic vulnerabilities
- 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
Sources
- CVE-2024-47056 · CVE Program
- CVE-2024-47056 · NVD
- FIRST EPSS
- GHSA-h2wg-v8wg-jhxh · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences