Modoboa before 2.13.0 contains a CRLF injection vulnerability that allows Resellers or users with domain add or change permission to inject rspamd DKIM selector map entries by supplying an unvalidated dkim_key_selector through the relay domain API. Attackers can embed a carriage return in the selector to override another tenant's domain selector, causing rspamd to sign its outgoing mail with a nonexistent selector and fail DKIM verification.
https://github.com/modoboa/modoboa/security/advisories/GHSA-p68v-69qc-9345
https://github.com/modoboa/modoboa/releases/tag/2.13.0
https://github.com/modoboa/modoboa/commit/b4550be1d4a058fd6f967b806afcce36912757a8
https://github.com/modoboa/modoboa/blob/2.12.0/modoboa/rspamd/jobs.py#L78-L83
https://github.com/modoboa/modoboa/blob/2.12.0/modoboa/relaydomains/api/v1/serializers.py#L36-L55