CVE-2022-25773: Mautic/core Path Traversal Vulnerability
MODERATECVE-2022-25773 is a MODERATE (CVSS 4.3) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Mautic/core libraries in the Packagist ecosystem. The issue involves mautic allows relative path traversal in assets file upload. Remediation is available by upgrading affected packages to version 5.2.3.
CVE-2022-25773 at a Glance
Security Impact
CVSS: 4.3
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:U/C:N/I:N/A:L).
How to Fix CVE-2022-25773
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-2022-25773, 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. 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-2022-25773 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-2022-25773?
Which Mautic/core versions are affected?
What version fixes CVE-2022-25773?
Is mautic/core affected?
What is the CVSS score of CVE-2022-25773?
What CWE is associated with CVE-2022-25773?
How can I check Packagist dependencies for CVE-2022-25773?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4w2w-36vm-c8hf",
"modified" : "2025-10-16T20:41:36Z",
"published" : "2025-02-26T20:09:28Z",
"aliases" : [ "CVE-2022-25773" ],
"summary" : "Mautic allows Relative Path Traversal in assets file upload",
"details" : "### Summary\n\nThis advisory addresses a file placement vulnerability that could allow assets to be uploaded to unintended directories on the server.\n\n* **Improper Limitation of a Pathname to a Restricted Directory:** A vulnerability exists in the asset upload functionality that allows users to upload files to directories outside of the intended temporary directory.\n\n### Mitigation\n\nPlease update to 5.2.3 or later.\n\n### Workarounds\n\nNone\n\n### References\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:U/C:N/I:N/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-4w2w-36vm-c8hf"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-25773"
}, {
"type" : "WEB",
"url" : "https://github.com/mautic/mautic/commit/e6aaad99f399c5df1ce6273609920098e5c2564a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mautic/mautic"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-02-26T20:09:28Z",
"nvd_published_at" : "2025-02-26T13:15:32Z"
}
}