Mailcow mailcow-dockerized
mailcow: dockerized vulnerable to password reset poisoning
mailcow: dockerized is an open source groupware/email suite based on docker. Prior to version 2025-01a, a vulnerability in mailcow's password reset functionality allows an attacker to manipulate the `Host HTTP` header to generate a password reset link pointing to an attacker-controlled domain. This can lead to account takeover if a user clicks the poisoned link. Version 2025-01a contains a patch. As a workaround, deactivate the password reset functionality by clearing `Notification email sender` and `Notification email subject` under System -> Configuration -> Options -> Password Settings.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2025-01a
Fixed in 2025-01a
Mitigation
Upgrade mailcow-dockerized to 2025-01a or later.
References
- Vendor advisory github.com/mailcow/mailcow-dockerized/security…
Timeline
Days relative to CVE publicationFirst public PoC 243 days after publication; not in CISA KEV. First PoC: Groppoxx/CVE-2025-25198-PoC (created 14 Oct 2025, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Groppoxx/CVE-2025-25198-PoC | 14 Oct 2025 +243 d | 19 | PoC |
| enzocipher/CVE-2025-25198 | 14 Oct 2025 +243 d | 0 | PoC
Flags · score 25
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | mailcow 2025-01a - Host Header Password Reset Poisoning | 3 Mar 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 2 PoC reposPOST /reset-password
- Key headers
Accept: {var}Accept-Language: {var}Origin: {var}Referer: {var}/Upgrade-Insecure-Requests: 1- Body markers
username=pw_reset_request=csrf_token=inapplication/x-www-form-urlencoded- Ports
- 443
- PoC User-Agent
Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0- Seen in
- 1 repo: Groppoxx/CVE-2025-25198-PoC
- Evidence
- Groppoxx/CVE-2025-25198-PoC/cve_2025_25198.py:368 Groppoxx/CVE-2025-25198-PoC/cve_2025_25198.py:407
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/reset-password(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [443] (msg:"GG PoC-Monitor CVE-2025-25198 mailcow mailcow-dockerized exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/reset-password"; http.header_names; content:"Accept"; nocase; http.header_names; content:"Accept-Language"; nocase; http.header_names; content:"Origin"; nocase; http.header_names; content:"Referer"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; http.request_body; content:"username="; http.request_body; content:"pw_reset_request="; http.request_body; content:"csrf_token="; reference:url,poc.griffinguard.io/cve/CVE-2025-25198; classtype:web-application-attack; sid:9687071; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: mailcow mailcow-dockerized exploit attempt (CVE-2025-25198)
id: gg-pocmon-cve-2025-25198-9687071
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-25198. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-25198
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/reset-password'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.25198