CVE-2026-27602

Modoboa has an OS Command Injection

Published Mar 25, 2026 CVSS 3.1 · 7.2 High EPSS < 1% KEV · Not listed
Description
Modoboa is a mail hosting and management platform. Prior to version 2.7.1, `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. Version 2.7.1 patches the issue.

Analysis

AI-generated

Technical impact

The vulnerability resides in Modoboa’s exec_cmd function, which invokes subprocess calls with shell=True and directly incorporates domain names into the command string without sanitization. An attacker who can modify a domain name—such as a Reseller or SuperAdmin—can inject shell metacharacters to execute arbitrary operating‑system commands, compromising confidentiality, integrity and availability of the host system.

Affected Systems

All Modoboa mail hosting deployments running a version earlier than 2.7.1 are affected, provided the user has Reseller or SuperAdmin permissions to create or edit domain names. Vendors and users of Modoboa should verify the running version and apply the 2.7.1 release, which removes the unsanitized shell invocation.

Risk and Exploitability

The CVSS score of 7.2 indicates moderate to high severity; the EPSS score of less than 1% suggests low current exploitation probability, and the issue is not listed in the CISA KEV catalog. Inference indicates that an attacker can exploit the vulnerability remotely through the web interface by configuring a domain name that contains shell metacharacters, allowing execution of arbitrary commands on the server.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply Modoboa patch version 2.7.1 or later
  • Verify all instances run only post‑2.7.1 releases
  • Limit or review Reseller and SuperAdmin privileges to restrict domain name changes
  • Monitor system logs for unexpected shell execution patterns

Generated by OpenCVE AI on March 26, 2026 at 17:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-wwv8-cqpr-vx3m Modoboa has OS Command Injection
History
Type Values Removed Values Added
CPEs cpe:2.3:a:modoboa:modoboa:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Modoboa
Modoboa modoboa
Vendors & Products Modoboa
Modoboa modoboa
Type Values Removed Values Added
Description Modoboa is a mail hosting and management platform. Prior to version 2.7.1, `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. Version 2.7.1 patches the issue.
Title Modoboa has an OS Command Injection
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 26, 2026, 3:38 PM
Reserved
Feb 20, 2026, 7:43 PM
Status
Analyzed
Published
Mar 25, 2026, 7:16 PM
Modified
Jun 17, 2026, 10:27 AM