Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as Reseller, get API token
-
DeliveryPOST relay domain with CR in dkim_key_selector
-
ExploitSelector written verbatim to rspamd selector map
-
ExecutionMap reload splits CR into injected victim entry
-
ImpactVictim domain signed with bogus selector, DKIM fails
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization CRLF sequence sanitization
|
| Exploitation Conditions | Exploitation requires ALL of: (1) the rspamd integration enabled with the DKIM selector map AND key map configured - a non-default deployment mode; (2) an authenticated account holding the Reseller role (or SuperAdmin), i.e. domain add/change permission, matching PR:H; (3) use of the relay domain API endpoint /api/v1/relaydomains/, which lacks the selector validator that the regular /api/v1/domains/ endpoint has had since 2.9.1; and (4) a DKIM key generated for the attacker's domain plus any subsequent map-update trigger to materialize the injected line. Limiting factors: the attacker must already be a privileged, semi-trusted tenant; deployments not using rspamd+DKIM are entirely unaffected; and the flaw cannot sign mail as the victim (private-key map is read-only), so impact is confined to breaking the victim's DKIM, not impersonating it. A selector containing a space is discarded as malformed and only breaks the attacker's own entry. |
| Impact | This is a medium-severity, integrity-only issue that is correctly prioritized below emergency level. The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N, VI:L, everything else N, score 5.1) and my independent assessment agree: network-reachable API, low complexity, but requiring HIGH privileges (PR:H) - specifically a Reseller or SuperAdmin account allowed to add/change domains. The only impact is low integrity: an attacker can override another tenant's rspamd DKIM selector so that tenant's outgoing mail is signed with a nonexistent selector and fails DKIM (and potentially DMARC) verification. There is NO confidentiality impact and NO ability to forge/sign mail as the victim, because the private-key map is read-only in the API - so this is a cross-tenant availability-of-reputation/denial-of-authenticity problem, not a spoofing primitive. No EPSS score, KEV entry, or SSVC exploitation signal is present in the input; the vuln.today decision label is 'this_month', not act_now/emergency, consistent with a privileged, limited-impact flaw. A detailed proof-of-concept (curl request plus parsing demonstration) is published in the GHSA advisory. The real priority is moderate: it matters chiefly to multi-tenant Modoboa operators who delegate the Reseller role to semi-trusted parties; single-tenant or trusted-admin deployments face negligible real-world risk since the required privilege is already high. |
| Exploit ScenarioDerived | In a multi-tenant Modoboa deployment, a semi-trusted Reseller obtains an API token and POSTs a new relay domain to /api/v1/relaydomains/ with enable_dkim true and a crafted dkim_key_selector containing a carriage return (e.g. 'a\rvictim.com evilsel'), which the relay-domain API accepts even though the regular domain API would reject it. Once a DKIM key is generated and any later map update runs, the CR is parsed as a line break and injects a 'victim.com evilsel' entry, so the victim tenant's mail is signed with a selector that has no DNS record and fails DKIM verification. A working proof-of-concept is published in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 19, 2026
DKIM selector map injection in Modoboa before 2.13.0 allows an authenticated Reseller - or any account with permission to add or change domains - to break DKIM signing for domains owned by other tenants. The relay domain API at /api/v1/relaydomains/ writes the unvalidated dkim_key_selector value verbatim into the rspamd DKIM selector map, so a selector containing a carriage return injects a second map line that overrides another tenant's selector; rspamd then signs that tenant's outgoing mail with a selector that has no DNS record, and DKIM verification fails. The vendor advisory documents a proof-of-concept walkthrough; it is not verified as working exploit code, and there is no confirmed public exploit tooling or known active exploitation. Impact is integrity-only and limited to the victim's DKIM (and potentially DMARC) outcome - the read-only private-key map means an attacker cannot sign mail as the victim - and only installations running the non-default rspamd integration with DKIM maps configured are affected.
RemediationAI
Vendor-released patch: Modoboa 2.13.0 (release https://github.com/modoboa/modoboa/releases/tag/2.13.0, fix commit b4550be1d4a058fd6f967b806afcce36912757a8). The fix is layered: it adds a shared RegexValidator (\A[A-Za-z0-9._-]+\Z) applied directly to the Domain.dkim_key_selector model field via migration 0027_dkim_key_selector_validator, which closes the gap in RelayDomainSerializer because validation is no longer serializer-specific; it removes the now-redundant serializer method; and it adds defense-in-depth in rspamd/jobs.py that skips and logs a warning for any selector failing the regex instead of writing it to the map, while dropping the incomplete '\n'-only stripping. Because the model-level validator and the job-level guard both ship in 2.13.0, upgrading is the only complete fix. For installations that cannot upgrade immediately, the prerequisite described by the vendor is an account allowed to create or change domains, so the practical compensating control is to restrict relay domain creation/change (and the Reseller role generally) on /api/v1/relaydomains/ to trusted administrators and audit existing dkim_key_selector values for whitespace or carriage returns - with the trade-off that this removes delegated relay-domain management from resellers. Deployments without the rspamd integration and DKIM maps enabled are not exposed by this issue. Full details: https://github.com/modoboa/modoboa/security/advisories/GHSA-p68v-69qc-9345.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Modoboa is a Django-based mail hosting and management platform. In the affected versions the Domain model field dkim_key_selector carries only max_length=30 and no validation, and DomainSerializer (used by API v1 and v2) has restricted the value to the DNS-label character class [A-Za-z0-9._-]+ since 2.9.1 - but RelayDomainSerializer in modoboa/relaydomains/api/v1/serializers.py exposes the same model field as writable with no such validator. This is CWE-93 (CRLF injection) via an incomplete fix: the earlier selector validation covered only the regular domain API. When a DKIM-enabled domain is saved, rspamd.jobs.update_rspamd_maps writes one '<domain> <selector>' line per domain and only stripped '\n' from the selector, so a '\r' survived into the file. On the next update, MapsUpdater.load_map reads the file in Python text mode with universal newlines, so '\r' acts as a line terminator and the single crafted line is parsed as two entries - an attacker-controlled entry for the victim domain that overrides the legitimate one and is persisted on write until the victim domain itself is modified. A selector containing a space produces a three-field line that is discarded as malformed and therefore only breaks the attacker's own entry. The injected value cannot affect dkim_private_key_path, which is read-only in the API. Exploitation requires rspamd integration with DKIM selector and key maps configured, an account permitted to create or change domains (Reseller or SuperAdmin - consistent with PR:H), use of the relay domain endpoint, and a generated DKIM key plus a subsequent map-update trigger.
Know when Modoboa gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Reachable via authenticated API (AV:N/AC:L) but needs Reseller/domain-change rights (PR:H); impact is limited cross-tenant DKIM integrity (I:L) with no confidentiality or availability loss.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Weak Password Requirements in GitHub repository modoboa/modoboa prior to 2.1.0. Rated critical severity (CVSS 9.8), this
Authentication Bypass by Primary Weakness in GitHub repository modoboa/modoboa prior to 2.0.4. Rated critical severity (
Improper Authorization in GitHub repository modoboa/modoboa prior to 2.1.0. Rated critical severity (CVSS 9.1), this vul
Cross-Site Request Forgery (CSRF) in GitHub repository modoboa/modoboa prior to 2.2.2. Rated high severity (CVSS 8.8), t
Improper Restriction of Excessive Authentication Attempts in GitHub repository modoboa/modoboa-installer prior to 2.0.4.
The modoboa-dmarc plugin 1.1.0 for Modoboa is vulnerable to an XML External Entity Injection (XXE) attack when processin
Cross-Site Request Forgery (CSRF) in GitHub repository modoboa/modoboa prior to 2.1.0. Rated medium severity (CVSS 6.8),
Cross-Site Request Forgery (CSRF) in GitHub repository modoboa/modoboa prior to 2.0.4. Rated medium severity (CVSS 6.5),
Cross-Site Request Forgery (CSRF) in GitHub repository modoboa/modoboa prior to 2.0.4. Rated medium severity (CVSS 6.5),
Cross-site Scripting (XSS) - DOM in GitHub repository modoboa/modoboa prior to 2.2.2. Rated medium severity (CVSS 5.4),
Cross-site Scripting (XSS) - DOM in GitHub repository modoboa/modoboa prior to 2.2.2. Rated medium severity (CVSS 5.4),
Cross-site Scripting (XSS) - Stored in GitHub repository modoboa/modoboa prior to 2.0.4. Rated medium severity (CVSS 5.4
EUVD-2026-130320
GHSA-fc6q-jjw3-255x
NVD
CVE.org
EPSS
Exploit-DB