CVE-2026-42007 dovecot: Dovecot: Arbitrary Code Execution via Sieve editheader use-after-free
CriticalCVSS 9.1
EPSS 0.35%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Open-Xchange GmbH OX Dovecot Pro | >= 2.3.0, < 2.3.22.2 | 2.3.22.2 |
| Open-Xchange GmbH OX Dovecot Pro | >= 3.0.0, < 3.0.7 | 3.0.7 |
| Open-Xchange GmbH OX Dovecot Pro | >= 3.1.0, < 3.1.6 | 3.1.6 |
| Open-Xchange GmbH OX Dovecot CE | >= 2.3.0, < 2.4.5 | 2.4.5 |
| redhat/dovecot(Red Hat:enterprise_linux:10.2) | < 1:2.3.21-19.el10_2.8 | 1:2.3.21-19.el10_2.8 |
| redhat/dovecot(Red Hat:enterprise_linux:8) | < 1:2.3.16-16.el8_10 | 1:2.3.16-16.el8_10 |
| redhat/dovecot(Red Hat:enterprise_linux:9) | < 1:2.3.16-18.el9_8.8 | 1:2.3.16-18.el9_8.8 |
| redhat/dovecot(Red Hat:enterprise_linux:9) | < 1:2.3.16-21.el9_9 | 1:2.3.16-21.el9_9 |
| redhat/dovecot(Red Hat:rhel_els:6) | All versions | No fix listed |
| redhat/dovecot(Red Hat:rhel_els:7) | All versions | No fix listed |
| debian/dovecot(Debian:12) | < 1:2.3.19.1+dfsg1-2.1+deb12u7 | 1:2.3.19.1+dfsg1-2.1+deb12u7 |
| debian/dovecot(Debian:12) | = 1:2.3.19.1+dfsg1-2.1 | No fix listed |
| debian/dovecot(Debian:12) | = 1:2.3.19.1+dfsg1-2.1+deb12u1 | No fix listed |
| debian/dovecot(Debian:12) | = 1:2.3.19.1+dfsg1-2.1+deb12u2 | No fix listed |
| debian/dovecot(Debian:12) | = 1:2.3.19.1+dfsg1-2.1+deb12u3 | No fix listed |
| debian/dovecot(Debian:12) | = 1:2.3.19.1+dfsg1-2.1+deb12u4 | No fix listed |
| debian/dovecot(Debian:12) | = 1:2.3.19.1+dfsg1-2.1+deb12u5 | No fix listed |
| debian/dovecot(Debian:12) | = 1:2.3.19.1+dfsg1-2.1+deb12u6 | No fix listed |
| debian/dovecot(Debian:13) | < 1:2.4.1+dfsg1-6+deb13u7 | 1:2.4.1+dfsg1-6+deb13u7 |
| debian/dovecot(Debian:13) | = 1:2.4.1+dfsg1-6 | No fix listed |
| debian/dovecot(Debian:13) | = 1:2.4.1+dfsg1-6+deb13u1 | No fix listed |
| debian/dovecot(Debian:13) | = 1:2.4.1+dfsg1-6+deb13u2 | No fix listed |
| debian/dovecot(Debian:13) | = 1:2.4.1+dfsg1-6+deb13u3 | No fix listed |
| debian/dovecot(Debian:13) | = 1:2.4.1+dfsg1-6+deb13u4 | No fix listed |
| debian/dovecot(Debian:13) | = 1:2.4.1+dfsg1-6+deb13u5 | No fix listed |
Show 19 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/dovecot(Debian:13) | = 1:2.4.1+dfsg1-6+deb13u6 | No fix listed |
| debian/dovecot(Debian:14) | < 1:2.4.5+dfsg1-1 | 1:2.4.5+dfsg1-1 |
| debian/dovecot(Debian:14) | = 1:2.4.1+dfsg1-6 | No fix listed |
| debian/dovecot(Debian:14) | = 1:2.4.1+dfsg1-7 | No fix listed |
| debian/dovecot(Debian:14) | = 1:2.4.1+dfsg1-8 | No fix listed |
| debian/dovecot(Debian:14) | = 1:2.4.1+dfsg1-9 | No fix listed |
| debian/dovecot(Debian:14) | = 1:2.4.2+dfsg1-1 | No fix listed |
| debian/dovecot(Debian:14) | = 1:2.4.2+dfsg1-2 | No fix listed |
| debian/dovecot(Debian:14) | = 1:2.4.2+dfsg1-3 | No fix listed |
| debian/dovecot(Debian:14) | = 1:2.4.2+dfsg1-4 | No fix listed |
| debian/dovecot(Debian:14) | = 1:2.4.3+dfsg1-1 | No fix listed |
| debian/dovecot(Debian:14) | = 1:2.4.3+dfsg1-2 | No fix listed |
| debian/dovecot(Debian:14) | = 1:2.4.4+dfsg1-1 | No fix listed |
| debian/dovecot(Debian:14) | = 1:2.4.4+dfsg1-2 | No fix listed |
| ubuntu/dovecot(Ubuntu:22.04) | All versions | No fix listed |
| alpine/dovecot(Alpine:v3.23) | < 2.4.5-r0 | 2.4.5-r0 |
| alpine/dovecot(Alpine:v3.24) | < 2.4.5-r0 | 2.4.5-r0 |
| ubuntu/dovecot(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/dovecot(Ubuntu:26.04) | All versions | No fix listed |
References
- documentation.open-xchange.com vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:79371 patch vendor-advisory
- RHSA-2026:76763 patch vendor-advisory
- RHSA-2026:80825 patch vendor-advisory
- RHSA-2026:98477 patch vendor-advisory
- Red Hat Bugzilla 2525583 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-42007 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking