CVE-2021-27908: Mautic/core Mautic Vulnerable To Secret Data Vulnerability
MODERATECVE-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
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).
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.
Upgrade mautic/core to 3.3.2
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
CVE-2021-27908 Affected Mautic/core Versions
1 component(s)| 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?
Which Mautic/core versions are affected?
What version fixes CVE-2021-27908?
Is mautic/core affected?
What is the CVSS score of CVE-2021-27908?
What CWE is associated with CVE-2021-27908?
How can I check Packagist dependencies for CVE-2021-27908?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}