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.
- CVE-2026-42007
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
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
- Red Hat Enterprise Linux 8: support ends
More Red Hat Linux advisories
CVE-2026-111497Oct 22, 2026Out-of-Bounds Write in Google Brotli DecoderCVE-2026-109619Oct 21, 2026fatal error handling retains stale request state leading to use-after-freeCVE-2026-109618Oct 21, 2026OOM bailout during request parsing leads to memory corruption and RCECVE-2026-90436Nov 6, 2026Remote code execution via insecure deserialization of SOAP fault messagesCVE-2026-125350Nov 10, 2026Use after free in XMLCVE-2026-114713Nov 8, 2026Command injection via unescaped message tag
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.