← Back to search

CVE-2026-125757

9.1 CRITICALpublic exploit available

Published 2026-11-10 · Updated 2026-11-10

AI risk analysis

Summary
A server-side template injection (CWE-1336) in mailcow before 2026-11 allows domain administrators to inject malicious Jinja macros into domain-wide footers, which are rendered by the rspamd MOO_FOOTER prefilter, enabling arbitrary command execution in the shared rspamd container. This bypasses tenant isolation and allows attackers to read or inject mail for all tenants and disable spam filtering.
Exploitability
Exploitation requires domain administrator privileges and knowledge of the vulnerable rspamd prefilter configuration; no external authentication bypass is needed beyond valid admin credentials.
Blast radius
Successful exploitation compromises all mailboxes and filtering across all tenants sharing the same rspamd instance, enabling full data exfiltration, mail injection, and persistent filter disabling.
Detection
Defenders should monitor rspamd logs for unexpected os.execute() calls or suspicious macro invocations in MOO_FOOTER context; additionally, inspect mailcow admin activity logs for creation or modification of domain-wide footers containing Jinja syntax with dangerous functions like {{ ''.__class__.__mro__[1].__subclasses__() }} or os.execute().
Prioritized remediation
Upgrade to mailcow dockerized 2026-11 or later, which patches the template injection in the domain footer rendering logic.
rcesstitenant-isolation-bypassmailcowrspamdadmin-privilege-abuse

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD description

mailcow: dockerized before 2026-11 contains a server-side template injection vulnerability that allows domain administrators to execute commands in the shared rspamd container by storing a malicious domain-wide footer. Attackers can embed a Jinja macro with an os.execute default value, rendered by the rspamd MOO_FOOTER prefilter, to read or inject mail for every tenant and disable filtering.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Weaknesses

CWE-1336

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.