---
id: CVE-2025-59031
title: Dovecot has provided a script to use for attachment to text conversion
summary: >-
  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 subs…
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-200
vendor: dovecot
product: dovecot
affected:
  - dovecot < 2.4.3
  - dovecot < 2.3.22.1
  - 'dovecot >= 3.0.0, < 3.1.3'
patched:
  - dovecot 3.1.3
published: '2026-03-27'
updated: '2026-09-30'
sourceUpdated: '2026-09-30T23:10:00.237'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-59031'
references:
  - url: >-
      https://documentation.open-xchange.com/dovecot/security/advisories/csaf/2026/oxdc-adv-2026-0001.json
    label: security@open-xchange.com
tags:
  - nvd
epss: 0.00283
epssPercentile: 0.18747
ingestedAt: '2026-09-30T22:27:27.741Z'
---

## Overview

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.

## Affected

- `dovecot < 2.4.3`
- `dovecot < 2.3.22.1`
- `dovecot >= 3.0.0, < 3.1.3`

## Remediation

Upgrade past the affected range:

- `dovecot 3.1.3`
