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

High 8.1 Published Updated

Authenticated users can delete arbitrary system files via path traversal in the GrapesJS builder, compromising system integrity.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-27916?

CVE-2021-27916 is a high-severity path traversal vulnerability in Mautic, published on 17 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2021-27916?

4 open source packages ship an affected version, including mautic/core. It affects 1 product.

PackageAffectedFixed in
mautic/core PackagistFrom 3.3.04.4.12
mautic/core PackagistFrom 3.3.04.4.12
mautic/core PackagistFrom 5.0.0-alpha5.0.4
mautic/core PackagistFrom 5.0.0-alpha5.0.4

Products include Acquia Mautic.

How do I fix CVE-2021-27916?

Upgrade mautic/core to a fixed version for your release line: 4.4.12 or 5.0.4.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2021-27916 being exploited?

There is no known exploitation of CVE-2021-27916 in the wild and no public exploit code.

Sources

Also known as GHSA-9fcx-cv56-w58p.

Is CVE-2021-27916 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free