{"id":"CVE-2024-47056","state":"PUBLISHED","title":"Mautic does not shield .env files from web traffic","description":"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.","publishedAt":"2025-05-28T16:24:57.162Z","updatedAt":"2025-05-28T23:47:09.780Z","severity":{"score":5.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","source":"Mautic"},"assigner":"Mautic","products":["Mautic Mautic"],"affected":[{"vendor":"Mautic","product":"Mautic","packageName":"mautic/core","defaultStatus":"unaffected","versions":[{"version":"> 4.4.0","status":"affected","lessThan":"< 6.0.2, < 5.2.6, <4.4.16","versionType":"semver"}],"collectionURL":"https://packagist.org","repo":"https://github.com/mautic/mautic"}],"references":["https://github.com/mautic/mautic/security/advisories/GHSA-h2wg-v8wg-jhxh"],"weaknesses":["CWE-312"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/47xxx/CVE-2024-47056.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-47056","state":"PUBLISHED","datePublished":"2025-05-28T16:24:57.162Z","dateUpdated":"2025-05-28T23:47:09.780Z","assignerShortName":"Mautic","assignerOrgId":"4e531c38-7a33-45d3-98dd-d909c0d8852e","dateReserved":"2024-09-17T13:41:00.584Z"},"containers":{"cna":{"title":"Mautic does not shield .env files from web traffic","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Mautic","product":"Mautic","packageName":"mautic/core","defaultStatus":"unaffected","versions":[{"version":"> 4.4.0","status":"affected","lessThan":"< 6.0.2, < 5.2.6, <4.4.16","versionType":"semver"}],"collectionURL":"https://packagist.org","repo":"https://github.com/mautic/mautic"}],"references":[{"url":"https://github.com/mautic/mautic/security/advisories/GHSA-h2wg-v8wg-jhxh"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":5.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-312","description":"CWE-312 Cleartext Storage of Sensitive Information","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"Mautic","orgId":"4e531c38-7a33-45d3-98dd-d909c0d8852e","dateUpdated":"2025-05-28T16:24:57.162Z"},"credits":[{"lang":"en","type":"finder","value":"r3ky"},{"lang":"en","type":"reporter","value":"r3ky"},{"lang":"en","type":"analyst","value":"Lenon Leite"},{"lang":"en","type":"remediation developer","value":"Nick Vanpraet"},{"lang":"en","type":"remediation reviewer","value":"Patryk Gruszka"}],"impacts":[{"capecId":"CAPEC-180","descriptions":[{"lang":"en","value":"CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels"}]}],"source":{"advisory":"GHSA-h2wg-v8wg-jhxh","discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-05-28T23:45:38.445428Z","id":"CVE-2024-47056","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-05-28T23:47:09.780Z"}}]}}}