Skip to main content
Vulnerability Database/CVE-2026-100889

CVE-2026-100889: OpenDKIM Decoder Off-by-One Vulnerability

CVE-2026-100889 is an off-by-one vulnerability in OpenDKIM that affects the dkim_qp_decode function in util.c. This remotely exploitable flaw can be leveraged by attackers. This post explains its technical details, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-100889 Overview

CVE-2026-100889 is an off-by-one vulnerability in Trusted Domain Project OpenDKIM through version 2.11.0. The flaw resides in the dkim_qp_decode function within util.c, part of the quoted-printable decoder component. Attackers can trigger the condition remotely through crafted input processed by the decoder. A public exploit exists, and the vendor did not respond to the disclosure attempt. The weakness is classified under [CWE-189] (Numeric Errors), affecting the integrity, confidentiality, and availability of the host service in a limited manner.

Critical Impact

Remote attackers can exploit the off-by-one condition in OpenDKIM's quoted-printable decoder without authentication or user interaction, with public exploit code already available.

Affected Products

  • Trusted Domain Project OpenDKIM up to and including version 2.11.0
  • The dkim_qp_decode function in util.c
  • Deployments using OpenDKIM as a mail filter (milter) for DKIM signing and verification

Discovery Timeline

  • 2026-09-28 - CVE CVE-2026-100889 published to NVD
  • 2026-09-28 - Last updated in NVD database

Technical Details for CVE-2026-100889

Vulnerability Analysis

The vulnerability affects the quoted-printable decoding routine in OpenDKIM. OpenDKIM is a widely deployed open-source implementation of the DomainKeys Identified Mail (DKIM) specification used by Mail Transfer Agents (MTAs). The dkim_qp_decode function in util.c processes quoted-printable encoded input as part of DKIM signature canonicalization and validation.

An off-by-one error occurs during buffer handling in the decoder. The function miscalculates a boundary by one byte, which can lead to writing or reading a single byte outside the intended buffer region. Because OpenDKIM processes untrusted email content from remote senders, attackers can supply crafted quoted-printable data to reach the vulnerable routine over the network without authentication.

Root Cause

The root cause is a numeric boundary miscalculation in the quoted-printable decoder loop. Off-by-one errors in C-based parsers typically arise from incorrect use of inclusive versus exclusive bounds, miscounting a terminating byte, or failing to reserve space for a null terminator. See the Weitongli analysis on OpenDKIM for the specific decoder logic involved.

Attack Vector

The attack vector is network-based. An attacker sends an email with specially crafted quoted-printable content that passes through an OpenDKIM-enabled MTA. When the milter invokes dkim_qp_decode during signature processing, the off-by-one condition is triggered. Exploitation requires no privileges and no user interaction on the receiving mail server. Public exploit information has been published through VulDB CVE-2026-100889.

No verified exploit code is available for publication. See the Weitongli analysis on OpenDKIM for technical details on triggering the condition.

Detection Methods for CVE-2026-100889

Indicators of Compromise

  • Unexpected crashes, restarts, or signal terminations of the opendkim daemon process in system logs
  • Inbound SMTP messages containing malformed or unusually structured quoted-printable encoded sections in DKIM-signed headers
  • Memory corruption indicators or sanitizer warnings in OpenDKIM debug builds processing specific messages

Detection Strategies

  • Monitor OpenDKIM process stability through syslog entries from the milter and MTA (Postfix, Sendmail) during mail flow
  • Inspect inbound mail streams for anomalous DKIM-Signature headers and quoted-printable body sections that deviate from RFC 2045 structure
  • Correlate OpenDKIM daemon exits with specific sender IPs or envelope senders to identify repeated exploitation attempts

Monitoring Recommendations

  • Enable verbose logging in opendkim.conf and forward logs to a centralized analytics platform for anomaly detection
  • Track process restart counts for the opendkim service and alert on frequency deviations
  • Review mail gateway telemetry for repeated DKIM verification failures tied to malformed encoding

How to Mitigate CVE-2026-100889

Immediate Actions Required

  • Inventory all mail servers running OpenDKIM and identify instances at version 2.11.0 or earlier
  • Restrict exposure of mail servers to only required SMTP peers where feasible, and segment them from internal networks
  • Monitor the VulDB vulnerability entry and the Trusted Domain Project repository for an upstream patch
  • Enable crash reporting and core dump collection on OpenDKIM hosts to detect exploitation attempts

Patch Information

At the time of publication, no vendor patch has been released. According to the VulDB disclosure, the vendor was contacted but did not respond. Administrators should track upstream OpenDKIM releases and distribution security advisories for a fix addressing the dkim_qp_decode function in util.c.

Workarounds

  • Deploy perimeter mail filtering that normalizes or rejects messages with malformed quoted-printable encoding before they reach OpenDKIM
  • Run OpenDKIM under a dedicated unprivileged user account with strict systemd sandboxing (PrivateTmp, ProtectSystem=strict, NoNewPrivileges) to limit impact
  • Consider temporarily disabling non-essential DKIM verification features or routing mail through an alternative DKIM implementation if operationally viable
  • Apply AppArmor or SELinux policies to constrain the opendkim process footprint
bash
# Example systemd hardening for the opendkim service
# /etc/systemd/system/opendkim.service.d/hardening.conf
[Service]
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
SystemCallFilter=@system-service
ReadWritePaths=/var/run/opendkim /var/spool/postfix/opendkim

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.