CVE-2021-27916: Mautic vulnerable to Relative Path Traversal / Arbitrary File Deletion due to GrapesJS builder
Impact Prior to the patched version, logged in users of Mautic are vulnerable to Relative Path Traversal/Arbitrary File Deletion. Regardless of the level of access the Mautic user had, they could delete files other than those in the media folders such as system files, libraries or other important files. This vulnerability exists in the implementation of the GrapesJS builder in Mautic.
Published Apr 12, 2024 · Updated Oct 2, 2024
Affected packages
mautic/core
- Ecosystem
- Composer (PHP)
- Affected
- >= 3.3.0, < 4.4.12
- Fixed in
- 4.4.12
- Check
composer show mautic/core
mautic/core
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.0.0-alpha, < 5.0.4
- Fixed in
- 5.0.4
- Check
composer show mautic/core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
Prior to the patched version, logged in users of Mautic are vulnerable to Relative Path Traversal/Arbitrary File Deletion. Regardless of the level of access the Mautic user had, they could delete files other than those in the media folders such as system files, libraries or other important files.
This vulnerability exists in the implementation of the GrapesJS builder in Mautic.
Patches
Update to 4.4.12 or 5.0.4.
Workarounds
No
References
- https://cwe.mitre.org/data/definitions/23.html
- https://cwe.mitre.org/data/definitions/22.html
- https://attack.mitre.org/techniques/T1630/002/
For more information
If you have any questions or comments about this advisory:
Email us at [[email protected]](mailto:[email protected])
Credited to adiux, mollux.
References
- https://github.com/mautic/mautic/security/advisories/GHSA-9fcx-cv56-w58p
- https://github.com/mautic/mautic/commit/546045ff9c74dd8b3dac36c4ab3674380262c65a
- https://github.com/mautic/mautic/commit/95e8df3ae6730c725f1848d70e7992da369518f3
- https://nvd.nist.gov/vuln/detail/CVE-2021-27916
- https://github.com/advisories/GHSA-9fcx-cv56-w58p
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-4776
Mautic has SQL Injection in API Contact Filtering
high7.1No fixJul 2, 2026CVE-2026-9557
Mautic Focus component Vulnerable to SSRF
medium6.4No fixJul 2, 2026CVE-2026-9558
Mautic has Server-Side Template Injection (SSTI) in Theme Templates
critical9.9No fixJul 2, 2026CVE-2026-9559
Mautic vulnerable to Path Traversal via Campaign Import
critical9.9Jul 2, 2026CVE-2026-9808
Mautic has an Authorization Bypass in API v2 Endpoints
high7.1Jul 2, 2026CVE-2026-9809
Mautic has Stored Cross-Site Scripting (XSS) in Projects Component
high7.6Jul 2, 2026
