mailcow: dockerized template injection enables code execution
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-1336.
Summary
mailcow: dockerized before 2026-11 contains a server-side template injection flaw (CWE-1336) in its domain-wide footer feature. A domain administrator who stores a malicious footer can execute commands in the shared rspamd container. Because that container serves every tenant, an attacker can read or inject mail for all tenants and disable filtering.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Update mailcow: dockerized to 2026-11.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
- Fix · CNA mailcow: dockerized (mailcow) Fixed in 2026-11
Timeline
- 2026-11-10 Threatist record created from CVE-2026-125757
- 2026-11-10 CISA SSVC decision points changed
- 2026-11-10 Priority changed: MEDIUM → HIGH
- 2026-11-10 Alias added: GHSA-pg35-3wf2-cwx5
References
Patch 1
More mailcow vulnerabilities
- TI-2026-29528 mailcow: dockerized vulnerable to stored XSS in autodiscover logs email address field CVSS 4.0CRITICAL 9.3
- TI-2026-29529 mailcow: dockerized vulnerable to stored XSS in Quarantine attachment filenames CVSS 4.0HIGH 8.9
- TI-2022-13182 OS Command Injection in mailcow CVSS 3.1HIGH 8.8
- TI-2022-18634 mailcow-dockerized critical information misrepresentation can lead to phishing attacks through Swagger UI CVSS 3.1HIGH 8.2
- TI-2026-06557 mailcow-dockerized 2026-03b - Stored XSS in Queue Manager via unescaped CVSS 4.0HIGH 7.4
- TI-2026-29527 mailcow: dockerized vulnerable to Second Order SQL Injection in quarantine category via API CVSS 3.1HIGH 7.2
Sources
- CVE-2026-125757 · CVE Program
- CVE-2026-125757 · NVD
- FIRST EPSS
- GHSA-pg35-3wf2-cwx5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences