{"id":"CVE-2024-47056","published":"2025-05-28T16:24:57Z","modified":"2025-05-28T23:47:09Z","title":"Mautic does not shield .env files from web traffic","vendor":"Mautic","product":"Mautic","tier":"tail","description":{"text":"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.\n\nSensitive 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.\n\nMitigationUpdate Mautic to the latest Mautic version.\n\nBy default, Mautic does not use .env files for production data.\n\nFor Apache users: Ensure your web server is configured to respect .htaccess files.\n\nFor 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:\n\nlocation ~ /\\.env {\n    deny all;\n}\n\n\n\n\n\nAfter modifying your Nginx configuration, remember to reload or restart your Nginx service for the changes to take effect.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00123,"percentile":0.02141,"provenance":"source"},"cwes":[{"id":"CWE-312","name":"Cleartext Storage of Sensitive Information"}],"references":[{"url":"https://github.com/mautic/mautic/security/advisories/GHSA-h2wg-v8wg-jhxh","tags":[]}],"priority":{"score":4.0,"factors":[{"name":"EPSS percentile","points":0.43},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"mautic","affectedVersions":[{"vendor":"Mautic","product":"Mautic","versions":[">= > 4.4.0, < < 6.0.2, < 5.2.6, <4.4.16"]}],"capec":[{"id":"CAPEC-180","name":"Exploiting Incorrectly Configured Access Control Security Levels"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-05-28T23:45:38.445428Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"mautic/core","vulnerableRanges":[">=4.4.0, <4.4.16",">=5.0.0-alpha, <5.2.6",">=6.0.0-alpha, <6.0.2"],"patched":["4.4.16","5.2.6","6.0.2"],"from":["GHSA-h2wg-v8wg-jhxh"],"provenance":"source"}],"summary":{"text":"Mautic fails to block web access to its .env configuration file, which can be served directly by the web server. An unauthenticated attacker who can reach the site can request that file's URL in a browser and read sensitive values such as database credentials and API keys, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:57Z"},"euvd":{"id":"EUVD-2024-54605","exploited":false,"provenance":"source"}}