CVE-2024-47056
published 2025-05-28CVE-2024-47056: SummaryThis advisory addresses a security vulnerability in Mautic where sensitive .env configuration files may be directly accessible via a web browser. This…
PriorityP422medium5.1CVSS 3.1
AVLACLPRNUINSUCLINAL
EPSS
0.10%
1.2th percentile
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.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| mautic | core | >= 4.4.0 < 4.4.16 | 4.4.16 |
| mautic | core | >= 5.0.0-alpha < 5.2.6 | 5.2.6 |
| mautic | core | >= 6.0.0-alpha < 6.0.2 | 6.0.2 |
| mautic | mautic | >= > 4.4.0 < < 6.0.2, < 5.2.6, <4.4.16 | < 6.0.2, < 5.2.6, <4.4.16 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Mautic does not shield .env files from web traffic
ghsa·2025-05-28
CVE-2024-47056 [MEDIUM] CWE-312 Mautic does not shield .env files from web traffic
Mautic does not shield .env files from web traffic
### Summary
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.
### Mitigation
Update Mautic to the latest
OSV
Mautic does not shield .env files from web traffic
osv·2025-05-28
CVE-2024-47056 [MEDIUM] Mautic does not shield .env files from web traffic
Mautic does not shield .env files from web traffic
### Summary
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.
### Mitigation
Update Mautic to the latest
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2025-05-28
Published