---
id: CVE-2026-125757
title: >-
  mailcow: dockerized before 2026-11 Template Injection RCE via Domain-Wide
  Footer
summary: >-
  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 embe…
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H'
cvssSource: cna
cwe:
  - CWE-1336
vendor: mailcow
product: 'mailcow: dockerized'
affected:
  - mailcow_dockerized < 2026-11
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-11-10T16:39:23.238632Z'
exploitAvailable: true
published: '2026-11-10'
updated: '2026-11-10'
sourceUpdated: '2026-11-10T16:39:42.814Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-125757'
references:
  - url: >-
      https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-jgr3-fv33-x43c
    label: GitHub Security Advisory (GHSA-jgr3-fv33-x43c)
  - url: >-
      https://github.com/mailcow/mailcow-dockerized/commit/e986803980db8b29435a2ddba5d9760737a818e3
  - url: 'https://github.com/mailcow/mailcow-dockerized/releases/tag/2026-11'
    label: 'mailcow: dockerized 2026-11 Release Notes'
  - url: >-
      https://github.com/mailcow/mailcow-dockerized/blob/55982ac74bfd35581cc44b122ab5fc659e3ae90a/data/conf/rspamd/lua/rspamd.local.lua#L847-L850
  - url: >-
      https://www.vulncheck.com/advisories/mailcow-dockerized-before-2026-11-template-injection-rce-via-domain-wide-footer
    label: >-
      VulnCheck Advisory: mailcow: dockerized before 2026-11 Template Injection
      RCE via Domain-Wide Footer
tags:
  - cve.org
  - exploit-available
ingestedAt: '2026-11-10T15:44:35.118Z'
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/Faceless0x7/CVE-2026-125757'
  checkedAt: '2026-12-02T22:16:51.384Z'
epss: 0.00824
epssPercentile: 0.58526
---

## Overview

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.

## Affected

- `mailcow_dockerized < 2026-11`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
