CVE-2026-125757
9.1 CRITICALpublic exploit availablePublished 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.
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
- https://github.com/mailcow/mailcow-dockerized/blob/55982ac74bfd35581cc44b122ab5fc659e3ae90a/data/conf/rspamd/lua/rspamd.local.lua#L847-L850
- https://github.com/mailcow/mailcow-dockerized/commit/e986803980db8b29435a2ddba5d9760737a818e3
- https://github.com/mailcow/mailcow-dockerized/releases/tag/2026-11
- https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-jgr3-fv33-x43c
- https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-jgr3-fv33-x43c
All references
- https://github.com/mailcow/mailcow-dockerized/blob/55982ac74bfd35581cc44b122ab5fc659e3ae90a/data/conf/rspamd/lua/rspamd.local.lua#L847-L850
- https://github.com/mailcow/mailcow-dockerized/commit/e986803980db8b29435a2ddba5d9760737a818e3
- https://github.com/mailcow/mailcow-dockerized/releases/tag/2026-11
- https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-jgr3-fv33-x43c
- https://www.vulncheck.com/advisories/mailcow-dockerized-before-2026-11-template-injection-rce-via-domain-wide-footer
- https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-jgr3-fv33-x43c
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- HIGHCVE-2026-115189PoC
- HIGHCVE-2026-119144PoC
- CRITICALCVE-2026-123198PoC
- HIGHCVE-2026-57853PoC
- HIGHCVE-2026-82910
- HIGHCVE-2026-85627
- CRITICALCVE-2026-113687
- HIGHCVE-2026-12544
Related by shared AI tags and CWE weakness class. Browse the full archive.