Rspamd, the open-source spam filter, released version 4.3.0 on 13 November with a long list of security fixes in the code that reads mail and HTTP input. Several of the flaws let a client crash the filter’s workers, and others let a sender tamper with the authentication results that later checks rely on.

According to the release notes, one unauthenticated HTTP request with a malformed header line was enough to abort a worker, and a second malformed-header bug let any client keep the workers crashing. In the milter proxy, which connects Rspamd to the mail server, a use-after-free in the error path affects releases since 4.0.0, including 4.2.3. Version 3.14 is not affected. A DKIM record whose key did not match its declared type also aborted the worker.

The authentication fixes bear directly on phishing defence. The seal of a whitelisted ARC forwarder was trusted at any position in the chain, so anyone could add a set after a genuine one and soften a DMARC reject. The sender’s MAIL FROM and HELO text was also written unescaped into the Authentication-Results header, which let a sender add a result of their own, such as a DMARC pass for another domain.

The release changes verdicts on purpose. SPF records are now evaluated in the order of their terms, DKIM verification fails RSA keys shorter than 1024 bits and signatures with a duplicated tag, and URL mismatches are scored separately from phishing. The notes tell operators to review local scores and rules that build on the phishing symbols.

In our reading, the upgrade needs a test pass before production, because the release that closes the crashes will also move scores on legitimate mail from senders with unusual SPF records or short DKIM keys. Run 4.3.0 against a sample of recent mail and compare verdicts before cutover. Rspamd’s controller and milter sockets also belong on the restricted network we described in our piece on isolating management interfaces. Forged authentication results add to the filtering overrides Microsoft flagged in its Q3 email threat report.

Source: Rspamd 4.3.0 release notes