CVE-2025-59031 Path traversal in OX Dovecot Pro
Attackers can use crafted OOXML documents to index unintended system files via an unsafe attachment conversion script, exposing sensitive data.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-59031?
CVE-2025-59031 is a medium-severity path traversal vulnerability in Dovecot Dovecot, published on 27 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Dovecot has provided a script to use for attachment to text conversion. This script unsafely handles zip-style attachments. Attacker can use specially crafted OOXML documents to cause unintended files on the system to be indexed and subsequently ending up in FTS indexes. Do not use the provided script, instead, use something else like FTS tika. No publicly available exploits are known.
Weakness: CWE-200
Which versions are affected by CVE-2025-59031?
It affects 2 products.
Products include Dovecot Dovecot, Open-Xchange Dovecot.
How do I fix CVE-2025-59031?
Apply a workaround.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-59031 being exploited?
There is no known exploitation of CVE-2025-59031 in the wild and no public exploit code.
Other vulnerabilities in Dovecot Dovecot
Sources
Also known as ALPINE-CVE-2025-59031, AZL-81689, DEBIAN-CVE-2025-59031, GHSA-7r6x-855q-h59r, UBUNTU-CVE-2025-59031.