Skip to content
Heist/ feed
Back to feed
CriticalFix available

dovecot — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-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 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.

Products
dovecot
Affected versions
1:2.3.19.1+dfsg1-2.1, 1:2.3.19.1+dfsg1-2.1+deb12u1, 1:2.3.19.1+dfsg1-2.1+deb12u2, 1:2.3.19.1+dfsg1-2.1+deb12u3, 1:2.3.19.1+dfsg1-2.1+deb12u4, 1:2.3.19.1+dfsg1-2.1+deb12u5, 1:2.3.19.1+dfsg1-2.1+deb12u6, 1:2.4.1+dfsg1-6, 1:2.4.1+dfsg1-6+deb13u1, 1:2.4.1+dfsg1-6+deb13u2, 1:2.4.1+dfsg1-6+deb13u3, 1:2.4.1+dfsg1-6+deb13u4, 1:2.4.1+dfsg1-6+deb13u5, 1:2.4.1+dfsg1-6+deb13u6, 1:2.4.1+dfsg1-7, 1:2.4.1+dfsg1-8, 1:2.4.1+dfsg1-9, 1:2.4.2+dfsg1-1, 1:2.4.2+dfsg1-2, 1:2.4.2+dfsg1-3, 1:2.4.2+dfsg1-4, 1:2.4.3+dfsg1-1, 1:2.4.3+dfsg1-2, 1:2.4.4+dfsg1-1, 1:2.4.4+dfsg1-2
Fixed versions
1:2.3.19.1+dfsg1-2.1+deb12u7, 1:2.4.1+dfsg1-6+deb13u7, 1:2.4.5+dfsg1-1
CVEs
CVE-2026-42007
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 03:15 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-42007

core-osv · Original source

Published 28 Aug 2026, 12:16 UTC

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.

osv:DEBIAN-CVE-2026-42007

dovecot

Fixed versions: 1:2.3.19.1+dfsg1-2.1+deb12u7

dovecot

Fixed versions: 1:2.4.1+dfsg1-6+deb13u7

dovecot

Fixed versions: 1:2.4.5+dfsg1-1

Complete source record
{
  "id": "bd8844cfc12730b9c662a84e905ab2424580be7b436caa58024da30204ac4dcb",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-42007",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-42007",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2026-42007",
    "products": [
      {
        "name": {
          "value": "dovecot",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1:2.3.19.1+dfsg1-2.1+deb12u7",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1:2.3.19.1+dfsg1-2.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.3.19.1+dfsg1-2.1+deb12u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.3.19.1+dfsg1-2.1+deb12u2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.3.19.1+dfsg1-2.1+deb12u3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.3.19.1+dfsg1-2.1+deb12u4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.3.19.1+dfsg1-2.1+deb12u5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1:2.3.19.1+dfsg1-2.1+deb12u6",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "dovecot",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1:2.4.1+dfsg1-6+deb13u7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1:2.4.1+dfsg1-6",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1:2.4.1+dfsg1-6+deb13u1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1:2.4.1+dfsg1-6+deb13u2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1:2.4.1+dfsg1-6+deb13u3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1:2.4.1+dfsg1-6+deb13u4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1:2.4.1+dfsg1-6+deb13u5",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1:2.4.1+dfsg1-6+deb13u6",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "dovecot",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1:2.4.5+dfsg1-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1:2.4.1+dfsg1-6",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:2.4.1+dfsg1-7",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:2.4.1+dfsg1-8",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:2.4.1+dfsg1-9",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:2.4.2+dfsg1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:2.4.2+dfsg1-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:2.4.2+dfsg1-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:2.4.2+dfsg1-4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:2.4.3+dfsg1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:2.4.3+dfsg1-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:2.4.4+dfsg1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1:2.4.4+dfsg1-2",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2026-42007",
      "aliases": [
        "DEBIAN-CVE-2026-42007"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1:2.3.19.1+dfsg1-2.1+deb12u7"
                }
              ]
            }
          ],
          "package": {
            "name": "dovecot",
            "purl": "pkg:deb/debian/dovecot?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "1:2.3.19.1+dfsg1-2.1",
            "1:2.3.19.1+dfsg1-2.1+deb12u1",
            "1:2.3.19.1+dfsg1-2.1+deb12u2",
            "1:2.3.19.1+dfsg1-2.1+deb12u3",
            "1:2.3.19.1+dfsg1-2.1+deb12u4",
            "1:2.3.19.1+dfsg1-2.1+deb12u5",
            "1:2.3.19.1+dfsg1-2.1+deb12u6"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-42007.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1:2.4.1+dfsg1-6+deb13u7"
                }
              ]
            }
          ],
          "package": {
            "name": "dovecot",
            "purl": "pkg:deb/debian/dovecot?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "1:2.4.1+dfsg1-6",
            "1:2.4.1+dfsg1-6+deb13u1",
            "1:2.4.1+dfsg1-6+deb13u2",
            "1:2.4.1+dfsg1-6+deb13u3",
            "1:2.4.1+dfsg1-6+deb13u4",
            "1:2.4.1+dfsg1-6+deb13u5",
            "1:2.4.1+dfsg1-6+deb13u6"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-42007.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1:2.4.5+dfsg1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "dovecot",
            "purl": "pkg:deb/debian/dovecot?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "1:2.4.1+dfsg1-6",
            "1:2.4.1+dfsg1-7",
            "1:2.4.1+dfsg1-8",
            "1:2.4.1+dfsg1-9",
            "1:2.4.2+dfsg1-1",
            "1:2.4.2+dfsg1-2",
            "1:2.4.2+dfsg1-3",
            "1:2.4.2+dfsg1-4",
            "1:2.4.3+dfsg1-1",
            "1:2.4.3+dfsg1-2",
            "1:2.4.4+dfsg1-1",
            "1:2.4.4+dfsg1-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-42007.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-31T16:04:23.652670803Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-42007"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-42007"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-42007",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 427030,
  "published_at": "2026-08-28T12:16:29.26+00:00"
}