CVE-2021-27908: Mautic/core Mautic Vulnerable To Secret Data Vulnerability

MODERATE
Advisory Identifier: GHSA-4hjq-422q-4vpx
CVSS 5.8
CWE-732 CWE-74
Published
Advisory Summary

CVE-2021-27908 is a MODERATE (CVSS 5.8) mautic vulnerable to secret data vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Mautic/core libraries in the Packagist ecosystem. The issue involves mautic vulnerable to secret data exfiltration via symfony parameters. Remediation is available by upgrading affected packages to version 3.3.2.

CVE-2021-27908 at a Glance

CVE Identifier CVE-2021-27908
GHSA Identifier GHSA-4hjq-422q-4vpx
Severity MODERATE
CVSS v3.1 Base Score 5.8
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Mautic/core
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability Low (A:L)

How to Fix CVE-2021-27908

To remediate this vulnerability, upgrade all affected Mautic/core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mautic/core fixed: 3.3.2
Upgrade mautic/core to 3.3.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for mautic/core

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-27908, inspect your project dependencies for Mautic/core:

inspect dependencies for mautic/core

Analyze the terminal output to locate any version of Mautic/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In Mautic/core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Symfony parameters (which is what Mautic transforms configuration parameters into) can be used within other Symfony parameters by design. However, this also means that an admin who is normally not privy to certain parameters, such as database credentials, could expose them by leveraging any of the free text fields in Mautic’s configuration that are used in publicly facing parts of the application. For example, 1. Go to Configuration page -> Landing Page Settings -> Analytics script and enter this: <`script> console.log("db password is: %mautic.db_password%"); </script>` 2. Visit any landing page and open the JS dev console. You will see the following message with real instance db password: `db password is: <real password>` Risk rating: ModerateCVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L ### Patches Upgrade to 3.3.2 ### Workarounds No ### References No ### For more information If you have any questions or comments about this advisory: * Email us at [security@mautic.org](mailto:security@mautic.org)

CVE-2021-27908 Affected Mautic/core Versions

1 component(s)
Fixed Versions:
3.3.2
Product / Package Ecosystem Affected Versions Fixed Version
mautic/core
Packagist
< 3.3.2
3.3.2

References

Frequently Asked Questions

What is CVE-2021-27908?
CVE-2021-27908 is a security vulnerability in Mautic/core involving Mautic vulnerable to secret data exfiltration via symfony parameters under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Mautic/core versions are affected?
Affected versions include releases prior to 3.3.2 across affected packages: mautic/core.
What version fixes CVE-2021-27908?
Upgrading to 3.3.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mautic/core affected?
Yes, mautic/core is affected in releases prior to 3.3.2. Upgrade your dependency to 3.3.2 or later.
What is the CVSS score of CVE-2021-27908?
CVE-2021-27908 has a CVSS v3.1 base score of 5.8 (MODERATE) with vector string CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L.
What CWE is associated with CVE-2021-27908?
CVE-2021-27908 is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check Packagist dependencies for CVE-2021-27908?
Run the dependency tree command: 'inspect dependencies for mautic/core'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4hjq-422q-4vpx",
  "modified" : "2024-02-05T11:00:10Z",
  "published" : "2021-04-06T17:20:58Z",
  "aliases" : [ "CVE-2021-27908" ],
  "summary" : "Mautic vulnerable to secret data exfiltration via symfony parameters",
  "details" : "### Impact\nSymfony parameters (which is what Mautic transforms configuration parameters into) can be used within other Symfony parameters by design. However, this also means that an admin who is normally not privy to certain parameters, such as database credentials, could expose them by leveraging any of the free text fields in Mautic’s configuration that are used in publicly facing parts of the application.\n\nFor example,\n\n1. Go to Configuration page -> Landing Page Settings -> Analytics script and enter this: <`script> console.log(\"db password is: %mautic.db_password%\"); </script>`\n2. Visit any landing page and open the JS dev console. You will see the following message with real instance db password: `db password is: <real password>`\n\nRisk rating: ModerateCVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L\n\n### Patches\nUpgrade to 3.3.2\n\n### Workarounds\nNo\n\n### References\nNo\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n* Email us at [security@mautic.org](mailto:security@mautic.org)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "mautic/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.3.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mautic/mautic/security/advisories/GHSA-4hjq-422q-4vpx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-27908"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/mautic/core/CVE-2021-27908.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mautic/mautic"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-732", "CWE-74" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-03-30T16:38:12Z",
    "nvd_published_at" : "2021-03-23T20:15:00Z"
  }
}