# CVE-2021-46361: Arbitrary code execution in Magnolia CMS

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.81%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-02-11T20:08:41.000Z
- Modified: 2026-06-17T04:14:48.120Z
- Also known as: GHSA-m4hg-5p2m-fm5m
- Assigned by: mitre

## Description

An issue in the Freemark Filter of Magnolia CMS v6.2.11 and below allows attackers to bypass security restrictions and execute arbitrary code via a crafted FreeMarker payload.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- info.magnolia:magnolia-core (Maven): before 6.2.12
- magnolia-cms magnolia_cms: before 6.2.12

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/DrunkenShells/Disclosures/tree/master/CVE-2021-46361-FreeMarker%20Bypass-Magnolia%20CMS> (exploit, third-party-advisory, web)
- <https://docs.magnolia-cms.com/product-docs/6.2/Releases/Release-notes-for-Magnolia-CMS-6.2.12.html#_security_advisory> (release-notes, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-46361> (advisory)

## Sources

- CVE List: [CVE-2021-46361](https://www.cve.org/CVERecord?id=CVE-2021-46361), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-m4hg-5p2m-fm5m](https://github.com/advisories/GHSA-m4hg-5p2m-fm5m), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-46361](https://nvd.nist.gov/vuln/detail/CVE-2021-46361), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-46361 · Whole record: https://cve.day/CVE-2021-46361.json · Rebuilt by cve.day 2026-11-25T22:58:06.951Z
