# CVE-2025-59031: dovecot: Dovecot has provided a script to use for attachment to text conversion

CVE-2025-59031 is fixed in 19 products on 1 platform, first by DEBIAN-CVE-2025-59031, released March 27, 2026. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-59031
- Priority: Routine
- CVSS: 4.3 (medium)
- EPSS: 0.0029
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Mar 26, 2026

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | dovecot Debian 12.15 (bookworm) | 1:2.3.19.1+dfsg1-2.1+deb12u2 | [DEBIAN-CVE-2025-59031](https://patchblox.com/security/data/fix/linux/debian-cve-2025-59031.md) | Mar 27, 2026 |
| Linux | dovecot Debian 13.5 (trixie) | 1:2.4.1+dfsg1-6+deb13u4 | [DEBIAN-CVE-2025-59031](https://patchblox.com/security/data/fix/linux/debian-cve-2025-59031.md) | Mar 27, 2026 |
| Linux | dovecot Debian 14 | 1:2.4.3+dfsg1-1 | [DEBIAN-CVE-2025-59031](https://patchblox.com/security/data/fix/linux/debian-cve-2025-59031.md) | Mar 27, 2026 |
| Linux | dovecot-auth-lua Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-auth-lua 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-auth-lua-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-auth-lua Ubuntu 24.04.5 LTS (noble) | 1:2.3.21+dfsg1-2ubuntu6.3 | [dovecot-auth-lua 1:2.3.21+dfsg1-2ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-dovecot-auth-lua-1-2.3.21-dfsg1-2ubuntu6.3.md) | Apr 15, 2026 |
| Linux | dovecot-auth-lua Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-auth-lua 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-auth-lua-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot-core Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-core 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-core-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-core Ubuntu 24.04.5 LTS (noble) | 1:2.3.21+dfsg1-2ubuntu6.3 | [dovecot-core 1:2.3.21+dfsg1-2ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-dovecot-core-1-2.3.21-dfsg1-2ubuntu6.3.md) | Apr 15, 2026 |
| Linux | dovecot-core Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-core 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-core-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot-flatcurve Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-flatcurve 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-flatcurve-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot-gssapi Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-gssapi 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-gssapi-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-gssapi Ubuntu 24.04.5 LTS (noble) | 1:2.3.21+dfsg1-2ubuntu6.3 | [dovecot-gssapi 1:2.3.21+dfsg1-2ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-dovecot-gssapi-1-2.3.21-dfsg1-2ubuntu6.3.md) | Apr 15, 2026 |
| Linux | dovecot-gssapi Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-gssapi 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-gssapi-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot-imapd Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-imapd 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-imapd-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-imapd Ubuntu 24.04.5 LTS (noble) | 1:2.3.21+dfsg1-2ubuntu6.3 | [dovecot-imapd 1:2.3.21+dfsg1-2ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-dovecot-imapd-1-2.3.21-dfsg1-2ubuntu6.3.md) | Apr 15, 2026 |
| Linux | dovecot-imapd Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-imapd 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-imapd-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot-ldap Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-ldap 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-ldap-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-ldap Ubuntu 24.04.5 LTS (noble) | 1:2.3.21+dfsg1-2ubuntu6.3 | [dovecot-ldap 1:2.3.21+dfsg1-2ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-dovecot-ldap-1-2.3.21-dfsg1-2ubuntu6.3.md) | Apr 15, 2026 |
| Linux | dovecot-ldap Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-ldap 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-ldap-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot-lmtpd Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-lmtpd 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-lmtpd-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-lmtpd Ubuntu 24.04.5 LTS (noble) | 1:2.3.21+dfsg1-2ubuntu6.3 | [dovecot-lmtpd 1:2.3.21+dfsg1-2ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-dovecot-lmtpd-1-2.3.21-dfsg1-2ubuntu6.3.md) | Apr 15, 2026 |
| Linux | dovecot-lmtpd Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-lmtpd 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-lmtpd-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot-lucene Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-lucene 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-lucene-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-managesieved Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-managesieved 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-managesieved-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-managesieved Ubuntu 24.04.5 LTS (noble) | 1:2.3.21+dfsg1-2ubuntu6.3 | [dovecot-managesieved 1:2.3.21+dfsg1-2ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-dovecot-managesieved-1-2.3.21-dfsg1-2ubuntu6.3.md) | Apr 15, 2026 |
| Linux | dovecot-managesieved Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-managesieved 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-managesieved-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot-mysql Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-mysql 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-mysql-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-mysql Ubuntu 24.04.5 LTS (noble) | 1:2.3.21+dfsg1-2ubuntu6.3 | [dovecot-mysql 1:2.3.21+dfsg1-2ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-dovecot-mysql-1-2.3.21-dfsg1-2ubuntu6.3.md) | Apr 15, 2026 |
| Linux | dovecot-mysql Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-mysql 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-mysql-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot-pgsql Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-pgsql 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-pgsql-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-pgsql Ubuntu 24.04.5 LTS (noble) | 1:2.3.21+dfsg1-2ubuntu6.3 | [dovecot-pgsql 1:2.3.21+dfsg1-2ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-dovecot-pgsql-1-2.3.21-dfsg1-2ubuntu6.3.md) | Apr 15, 2026 |
| Linux | dovecot-pgsql Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-pgsql 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-pgsql-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot-pop3d Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-pop3d 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-pop3d-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-pop3d Ubuntu 24.04.5 LTS (noble) | 1:2.3.21+dfsg1-2ubuntu6.3 | [dovecot-pop3d 1:2.3.21+dfsg1-2ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-dovecot-pop3d-1-2.3.21-dfsg1-2ubuntu6.3.md) | Apr 15, 2026 |
| Linux | dovecot-pop3d Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-pop3d 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-pop3d-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot-sieve Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-sieve 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-sieve-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-sieve Ubuntu 24.04.5 LTS (noble) | 1:2.3.21+dfsg1-2ubuntu6.3 | [dovecot-sieve 1:2.3.21+dfsg1-2ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-dovecot-sieve-1-2.3.21-dfsg1-2ubuntu6.3.md) | Apr 15, 2026 |
| Linux | dovecot-sieve Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-sieve 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-sieve-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot-solr Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-solr 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-solr-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-solr Ubuntu 24.04.5 LTS (noble) | 1:2.3.21+dfsg1-2ubuntu6.3 | [dovecot-solr 1:2.3.21+dfsg1-2ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-dovecot-solr-1-2.3.21-dfsg1-2ubuntu6.3.md) | Apr 15, 2026 |
| Linux | dovecot-solr Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-solr 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-solr-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot-sqlite Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-sqlite 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-sqlite-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-sqlite Ubuntu 24.04.5 LTS (noble) | 1:2.3.21+dfsg1-2ubuntu6.3 | [dovecot-sqlite 1:2.3.21+dfsg1-2ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-dovecot-sqlite-1-2.3.21-dfsg1-2ubuntu6.3.md) | Apr 15, 2026 |
| Linux | dovecot-sqlite Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-sqlite 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-sqlite-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot-submissiond Ubuntu 22.04.1 LTS (jammy) | 1:2.3.16+dfsg1-3ubuntu2.7 | [dovecot-submissiond 1:2.3.16+dfsg1-3ubuntu2.7](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-dovecot-submissiond-1-2.3.16-dfsg1-3ubuntu2.7.md) | Apr 15, 2026 |
| Linux | dovecot-submissiond Ubuntu 24.04.5 LTS (noble) | 1:2.3.21+dfsg1-2ubuntu6.3 | [dovecot-submissiond 1:2.3.21+dfsg1-2ubuntu6.3](https://patchblox.com/security/data/fix/linux/ubuntu-noble-dovecot-submissiond-1-2.3.21-dfsg1-2ubuntu6.3.md) | Apr 15, 2026 |
| Linux | dovecot-submissiond Ubuntu 25.10 (questing) | 1:2.4.1+dfsg1-5ubuntu4.1 | [dovecot-submissiond 1:2.4.1+dfsg1-5ubuntu4.1](https://patchblox.com/security/data/fix/linux/ubuntu-questing-dovecot-submissiond-1-2.4.1-dfsg1-5ubuntu4.1.md) | Apr 15, 2026 |
| Linux | dovecot23 sles 15.6 | 2.3.21.1-150200.76.1 | [SUSE-SU-2026:4139-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4139-1.md) | Sep 14, 2026 |
| Linux | dovecot23 sles 15.7 | 2.3.21.1-150200.76.1 | [SUSE-SU-2026:4139-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4139-1.md) | Sep 14, 2026 |
| Linux | dovecot24 opensuse-leap 16.0 | 2.4.3-160000.1.1 | [OPENSUSE-SU-2026:20554-1](https://patchblox.com/security/data/fix/linux/opensuse-su-2026-20554-1.md) | Apr 16, 2026 |
| Linux | dovecot24 sles 16.0 | 2.4.3-160000.1.1 | [SUSE-SU-2026:21208-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-21208-1.md) | Apr 16, 2026 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
