CVE-2024-47051: Mautic/core Remote Code Execution Vulnerability
CRITICALCVE-2024-47051 is a CRITICAL (CVSS 9.1) remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Mautic/core libraries in the Packagist ecosystem. The issue involves mautic allows remote code execution and file deletion in asset uploads. Remediation is available by upgrading affected packages to version 5.2.3.
CVE-2024-47051 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L).
How to Fix CVE-2024-47051
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 5.2.3
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-2024-47051, 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 5.2.3), 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-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. 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-2024-47051 Affected Mautic/core Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mautic/core
|
Packagist |
< 5.2.3
|
5.2.3
|
References
Frequently Asked Questions
What is CVE-2024-47051?
Which Mautic/core versions are affected?
What version fixes CVE-2024-47051?
Is mautic/core affected?
What is the CVSS score of CVE-2024-47051?
What CWE is associated with CVE-2024-47051?
How can I check Packagist dependencies for CVE-2024-47051?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-73gx-x7r9-77x2",
"modified" : "2025-10-16T20:41:27Z",
"published" : "2025-02-26T20:07:45Z",
"aliases" : [ "CVE-2024-47051" ],
"summary" : "Mautic allows Remote Code Execution and File Deletion in Asset Uploads",
"details" : "### Summary\nThis advisory addresses two critical security vulnerabilities present in Mautic versions before 5.2.3. These vulnerabilities could be exploited by authenticated users.\n\n* **Remote Code Execution (RCE) via Asset Upload:** A Remote Code Execution vulnerability has been identified in the asset upload functionality. Insufficient enforcement of allowed file extensions allows an attacker to bypass restrictions and upload executable files, such as PHP scripts.\n\n* **Path Traversal File Deletion:** A Path Traversal vulnerability exists in the upload validation process. Due to improper handling of path components, an authenticated user can manipulate the file deletion process to delete arbitrary files on the host system. \n \n### Mitigation\nPlease update to 5.2.3 or later.\n\n### Workarounds\nNone\n\n### References\nhttps://owasp.org/www-community/attacks/Code_Injection\nhttps://owasp.org/www-community/attacks/Path_Traversal\n\nIf you have any questions or comments about this advisory:\n\nEmail us at [security@mautic.org](mailto:security@mautic.org)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "mautic/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.2.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/mautic/mautic/security/advisories/GHSA-73gx-x7r9-77x2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-47051"
}, {
"type" : "WEB",
"url" : "https://github.com/mautic/mautic/commit/75bc488ce98b9c8ec01114984049fc1c42c0cae5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mautic/mautic"
}, {
"type" : "WEB",
"url" : "https://owasp.org/www-community/attacks/Code_Injection"
}, {
"type" : "WEB",
"url" : "https://owasp.org/www-community/attacks/Path_Traversal"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-23", "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-02-26T20:07:45Z",
"nvd_published_at" : "2025-02-26T13:15:39Z"
}
}