CVE-2026-42007

NameCVE-2026-42007
DescriptionAn 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-6526-1
Debian Bugs1146018

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
dovecot (PTS)bookworm, bookworm (security)1:2.3.19.1+dfsg1-2.1+deb12u6vulnerable
trixie1:2.4.1+dfsg1-6+deb13u6vulnerable
trixie (security)1:2.4.1+dfsg1-6+deb13u7fixed
forky1:2.4.5+dfsg1-2fixed
sid1:2.4.5+dfsg1-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
dovecotsourcetrixie1:2.4.1+dfsg1-6+deb13u7DSA-6526-1
dovecotsource(unstable)1:2.4.5+dfsg1-11146018

Notes

https://documentation.open-xchange.com/dovecot/security/advisories/html/2026/oxdc-adv-2026-0003.html#cve-2026-42007-sieve-editheader-rce
Fixed by: https://github.com/dovecot/pigeonhole/commit/69bac9cd6d4ac09100ee50c98052be1437f1da29
Fixed by: https://github.com/dovecot/pigeonhole/commit/cd9870e7f87e9d91e9d05b402da653df845b4f8f
Fixed by: https://github.com/dovecot/pigeonhole/commit/a44ba381619a06416ce3f34eae9765de46ece5d9

Search for package or bug name: Reporting problems