Skip to content
VulniPulse
Critical9.1Vendor: HighRed Hat Linux

CVE-2026-42007: Red Hat Arbitrary Code Execution via Sieve editheader use-after-free

This Red Hat advisory covers CVE-2026-42007 in Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8 and Red Hat Enterprise Linux 9.

Open the Red Hat advisory

Key facts

Vendor rating
Critical, CVSS 9.1
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:H · base score 9.1, scored by OXAttack vector: network. Attack complexity: low. Privileges required: low. User interaction: none. Scope: changed. Confidentiality impact: low. Integrity impact: low. Availability impact: high.
Weakness
  • CWE-416 Use After Free
EPSS
0.34% chance of exploitation in the next 30 days (28th percentile). FIRST EPSS, .
CISA SSVC
Exploitation: none observed. Automatable: no. Technical impact: partial. CISA, .
CISA KEV
Not listed (catalogue checked )
Fixed in
dovecot-1:2.3.21-19.el10_2.8, dovecot-1:2.3.16-16.el8_10, dovecot-1:2.3.16-18.el9_8.8 and 3 more below
Source published
Listed by VulniPulse

Compiled by VulniPulse from the linked sources. How records are collected and checked.

Affected products & platforms

Red Hat LinuxRed Hat Enterprise Linux

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. Update to non-vulnerable version.

No publicly available exploits are known. A flaw was found in Dovecot.

This flaw requires an attacker to authenticate with valid credentials before it can be exploited, and exploitation additionally depends on the Sieve `editheader` extension being enabled, which is not Dovecot's default configuration.

Because the CVSS attack vector requires low-privileged authentication (PR:L) rather than unauthenticated remote access, and the confirmed impact is primarily memory corruption leading to a crash of the mail delivery process, this issue is rated Important rather than Critical.

Disabling the Sieve `editheader` extension fully mitigates the vulnerability without requiring a package update. Red Hat severity: Important — CVSS 9.1 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:H).

Weakness: CWE-825.

Text from the source record.

How to fix CVE-2026-42007

Upgrade to a fixed release named by Red Hat:

  • dovecot-1:2.3.21-19.el10_2.8
  • dovecot-1:2.3.16-16.el8_10
  • dovecot-1:2.3.16-18.el9_8.8
  • RHSA-2026:79371
  • RHSA-2026:76763
  • RHSA-2026:80825

Vendor guidance

  • To mitigate this vulnerability, disable the Sieve `editheader` extension in the Dovecot configuration. After modifying the configuration, the Dovecot service must be restarted for the changes to take effect. Disabling this extension will remove its associated functionality.

Support dates for the fixed release lines

All end-of-life dates for Red Hat Enterprise Linux

All Red Hat Linux advisories

Get an email when Red Hat RHEL & SELinux publishes the next one.

See Red Hat RHEL & SELinux's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.

Alert me about Red Hat RHEL & SELinux