Rspamd 4.3.0 Fixes Critical Crashes and DMARC Bypass Vulnerabilities in Open‑Source Spam Filter
What Happened — Rspamd 4.3.0, the latest stable release of the popular open‑source spam‑filtering engine, addresses several high‑severity bugs that could be abused by unauthenticated attackers.
Worker crash: A single malformed HTTP header (missing the colon delimiter) is sufficient to terminate a worker process. An empty Deliver‑To header can trigger repeated crashes, effectively denying mail‑filtering service.
Use‑after‑free in the milter proxy: Versions 4.0.0 through 4.2.3 released a session twice when an upstream connection failed, leaving the proxy to operate on freed memory. The flaw could be weaponised to cause memory corruption or remote code execution. The upstream version 3.14 is not affected; 4.3.0 now guarantees a single TEMPFAIL per failed message.
ARC/DMARC softening: Prior to this release, ARC (Authenticated Received Chain) headers added after a legitimate one could unintentionally downgrade a DMARC reject to a pass. Additionally, the Authentication‑Results header was not properly escaped, allowing a crafted sender to inject a fake dmarc=pass token that the filter would treat as genuine.
Additional hardening: The update tightens DKIM handling (rejects RSA keys < 1024 bits, flags duplicate tags, rejects l=0 bodies), enforces strict SPF ordering, and separates URL‑mismatch scoring from phishing scoring. Plugin output formats have been normalized, and DKIM domain identifiers are now lower‑cased to avoid case‑sensitivity mismatches.
Why It Matters for Trust & Control Assurance — The fix demonstrates the importance of a robust vulnerability‑management control that ensures timely patching of authentication‑related components, a control that satisfies many framework requirements in one step.
Who Is Affected — Email service providers, SaaS platforms that embed Rspamd, managed‑mail hosting operators, and any organization that relies on Rspamd for inbound/outbound spam filtering.
Recommended Actions —
- Verify the current Rspamd version across all mail‑gateway hosts.
- Upgrade to 4.3.0 (or later) immediately; test custom scoring scripts against the new symbol format before production rollout.
- Review and harden any external interfaces (HTTP, milter proxy) to reject malformed headers at the network edge.
- Re‑evaluate ARC handling policies to ensure DMARC decisions are not unintentionally softened.
- Document the upgrade in your change‑management system and capture the version‑level evidence for audit purposes.
Source: Help Net Security – Rspamd 4.3.0 released
Technical Notes —
- Attack vector: crafted HTTP request headers, malformed
Deliver‑Tofields, and malicious ARC/Authentication‑Results headers. - Vulnerability type: memory‑corruption (use‑after‑free) and authentication‑result spoofing.
- No CVE identifiers were assigned at time of publication; the vendor’s advisory describes the flaws in detail.
- Impact: potential denial‑of‑service (worker crashes) and false‑positive DMARC passes that could allow phishing or spoofed mail to bypass policy enforcement.
- Detection: crashes were observed in Rspamd logs; the ARC/DMARC issue was identified through internal testing of forwarded mail scenarios.
- Mitigation: upgrade to 4.3.0, enforce strict header validation, and adjust ARC processing logic.
- Open questions: whether any active exploitation was observed in the wild prior to the patch.