GIVE YOUR AGENT THE EVIDENCE

Set up in your agent.

One prompt to get started. Paste it into your coding agent to connect cve.new through MCP and bring vulnerability context into your workflow.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GIVE YOUR AGENT THE EVIDENCE

Investigate in your agent.

Turn this advisory into a focused investigation. Ask your agent to check your project’s versions, explain the evidence, and suggest a compatible fix.

Your agent needs remote MCP support and access to https://cve.new/mcp.

Read the setup guide

GHSA-h2wg-v8wg-jhxhmedium5.1

Mautic does not shield .env files from web traffic

Check your stack

The advisory, in context

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 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 packages

Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.

mautic/core Packagist
Ecosystem versions

From 4.4.0 before 4.4.16

Fixed in 4.4.16

14 explicitly affected versions

4.4.0, 4.4.1, 4.4.10, 4.4.11, 4.4.12, 4.4.13, 4.4.2, 4.4.3, 4.4.4, 4.4.5, 4.4.6, 4.4.7, 4.4.8, 4.4.9

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "4.4.0"
        },
        {
          "fixed": "4.4.16"
        }
      ],
      "type": "ECOSYSTEM"
    }
  ],
  "versions": [
    "4.4.0",
    "4.4.1",
    "4.4.10",
    "4.4.11",
    "4.4.12",
    "4.4.13",
    "4.4.2",
    "4.4.3",
    "4.4.4",
    "4.4.5",
    "4.4.6",
    "4.4.7",
    "4.4.8",
    "4.4.9"
  ]
}
mautic/core Packagist
Ecosystem versions

From 5.0.0-alpha before 5.2.6

Fixed in 5.2.6

19 explicitly affected versions

5.0.0, 5.0.0-alpha, 5.0.0-alpha1, 5.0.0-beta1, 5.0.0-beta2, 5.0.0-rc1, 5.0.0-rc2, 5.0.1, 5.0.2, 5.0.3, 5.0.4, 5.1.0, 5.1.1, 5.2.0, 5.2.1, 5.2.2, 5.2.3, 5.2.4, 5.2.5

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "5.0.0-alpha"
        },
        {
          "fixed": "5.2.6"
        }
      ],
      "type": "ECOSYSTEM"
    }
  ],
  "versions": [
    "5.0.0",
    "5.0.0-alpha",
    "5.0.0-alpha1",
    "5.0.0-beta1",
    "5.0.0-beta2",
    "5.0.0-rc1",
    "5.0.0-rc2",
    "5.0.1",
    "5.0.2",
    "5.0.3",
    "5.0.4",
    "5.1.0",
    "5.1.1",
    "5.2.0",
    "5.2.1",
    "5.2.2",
    "5.2.3",
    "5.2.4",
    "5.2.5"
  ]
}
mautic/core Packagist
Ecosystem versions

From 6.0.0-alpha before 6.0.2

Fixed in 6.0.2

5 explicitly affected versions

6.0.0, 6.0.0-alpha, 6.0.0-beta2, 6.0.0-rc, 6.0.1

View affected-version evidence
{
  "ranges": [
    {
      "events": [
        {
          "introduced": "6.0.0-alpha"
        },
        {
          "fixed": "6.0.2"
        }
      ],
      "type": "ECOSYSTEM"
    }
  ],
  "versions": [
    "6.0.0",
    "6.0.0-alpha",
    "6.0.0-beta2",
    "6.0.0-rc",
    "6.0.1"
  ]
}

References