OpenDMARC libopendmarc Memory and Encoding Flaws
2026-09-28
A NULL pointer dereference in the Trusted Domain Project's OpenDMARC (up to and including 1.4.2) can crash the mail filter when it processes certain SPF data for an inbound message. The flaw sits in opendmarc_spf_ipv6_explode() in libopendmarc/opendmarc_spf.c, where manipulation of the `cp` argument causes the parser to dereference a NULL pointer; it is remotely reachable by an unauthenticated attacker (CVSS 4.0 6.9, CVSS:3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) who can influence the SPF information evaluated during mail handling. Publicly available exploit code exists and the vendor did not respond to the disclosure, but there is no confirmed active exploitation (not listed in CISA KEV). Impact is limited to availability of the filter process rather than host compromise; the referenced proof-of-concept is published at weitongli.com.
OpenDMARC through 1.4.2 can mishandle Internationalized Domain Name labels during DMARC policy lookup in opendmarc_policy_query_dmarc, allowing a remote, unauthenticated attacker to trigger an encoding error with a crafted email and potentially distort DMARC evaluation on internet-facing mail servers that run OpenDMARC as a milter/library, typically with Postfix or Sendmail. Publicly available exploit code exists, but the supplied data does not confirm active exploitation or a CISA KEV entry. The independent assessment rates this as a moderate integrity and availability issue rather than a high-urgency compromise: CVSS 3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L, because the flaw requires an IDN/non-ASCII domain edge case and the practical payoff depends on downstream trust in the DMARC verdict.