Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker creates crafted Mattermost message with ANSI/OSC escape sequences
-
ExploitMessage displayed in administrator's mmctl terminal
-
ExecutionEscape sequences manipulate terminal screen and fake prompts
-
ImpactAdministrator unknowingly executes malicious commands or reveals credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Escape character neutralization
|
| Exploitation Conditions | Attacker must post crafted messages containing ANSI/OSC escape sequences in Mattermost channels. Administrator must execute mmctl commands that display the attacker's post in terminal output, viewing the malicious content which triggers screen manipulation, fake prompts, or clipboard hijacking. Affects Mattermost 11.2.x ≤11.2.2, 10.11.x ≤10.11.10, 11.4.x ≤11.4.0, 11.3.x ≤11.3.1. |
| Impact | The CVSS score of 8.0 (High) reflects significant potential impact with CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H, indicating network-based attack with high complexity, requiring low-privilege authenticated access and user interaction, but enabling scope change with high confidentiality, integrity, and availability impact. CISA SSVC framework rates this as exploitation: none, automatable: no, technical impact: total, which tempers immediate urgency since no public exploit is identified at time of analysis and automation is not feasible. Attack complexity is high (AC:H) because successful exploitation depends on administrators actively running mmctl commands against attacker-controlled content and falling victim to social engineering when presented with manipulated terminal output. Scope change (S:C) elevates risk as terminal compromise can lead to actions beyond the Mattermost application context. While CVSS suggests high severity, real-world exploitability is constrained by the requirement for administrator interaction with specific CLI tooling and the sophistication needed to craft convincing fake prompts. This represents a genuine but operationally limited risk, prioritized for environments where mmctl is heavily used by administrators. |
| Exploit ScenarioDerived | An authenticated attacker with low privileges creates a Mattermost post containing carefully crafted ANSI escape sequences designed to clear the terminal screen and display a fake shell prompt requesting credentials or suggesting a malicious command. When a system administrator runs mmctl to export channel messages or search posts for investigation purposes, the malicious sequences execute in their terminal, displaying what appears to be a legitimate system prompt asking for password re-authentication or suggesting a command to fix a spurious error. If the administrator enters credentials or executes the suggested command, the attacker achieves credential theft or code execution in the administrator's security context. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 26, 2026
Mattermost's mmctl command-line administration tool fails to sanitize ANSI and OSC escape sequences embedded in user-generated post content, enabling authenticated low-privilege attackers to inject malicious terminal control codes when administrators export or query messages. Exploitation allows screen manipulation, fake prompt injection, and clipboard hijacking against administrators running mmctl commands, potentially leading to secondary code execution if administrators are tricked into running injected commands. CISA SSVC framework indicates no current exploitation, non-automatable attack requiring high complexity and user interaction, but with total technical impact potential.
RemediationAI
Upgrade to Mattermost versions beyond 11.4.0, 11.3.1, 11.2.2, or 10.11.10 respectively for each affected branch once patched releases become available per vendor advisory at https://mattermost.com/security-updates. Until patching is completed, administrators should exercise caution when using mmctl to query or export post content from channels accessible to untrusted users, avoid copying terminal output directly into clipboard or executing commands suggested by terminal prompts without verification, and consider using mmctl in isolated environments with output redirected to files for sanitized review. Organizations may implement wrapper scripts that filter ANSI/OSC sequences from mmctl output using tools like sed or ansi2txt before display. Review administrator workflows to minimize mmctl usage against user-generated content channels and restrict mmctl access to trusted operators only.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 5 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability affects the mmctl command-line tool within Mattermost server deployments (CPE: cpe:2.3:a:mattermost:mattermost). The root cause is CWE-150 (Improper Neutralization of Escape, Meta, or Control Sequences), where mmctl fails to strip or encode ANSI escape sequences (used for terminal formatting like colors and cursor positioning) and OSC (Operating System Command) sequences when rendering post content to administrator terminals. When mmctl retrieves message data containing attacker-crafted escape sequences, these codes are passed directly to the terminal emulator, which interprets them as legitimate control commands rather than display text. This allows attackers to manipulate the visual output of the terminal, insert fake command prompts that appear legitimate, or use OSC 52 sequences to read/write clipboard contents on certain terminal emulators.
Know when Mattermost 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:H/PR:L/UI:R/S:C/C:H/I:H/A:H
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionCVE.org
Mattermost versions 11.2.x <= 11.2.2, 10.11.x <= 10.11.10, 11.4.x <= 11.4.0, 11.3.x <= 11.3.1 fail to sanitize user-controlled post content in the mmctl commands terminal output which allows attackers to manipulate administrator terminals via crafted messages containing ANSI and OSC escape sequences that enable screen manipulation, fake prompts, and clipboard hijacking.. Mattermost Advisory ID: MMSA-2026-00599
Executive ViewAI
Mattermost's mmctl administration tool contains an escape sequence injection vulnerability that allows authenticated users to manipulate terminal displays and inject fake prompts when administrators export or query messages, potentially tricking them into executing malicious commands. Organizations relying on mmctl for message administration face operational risk if administrators can be socially engineered through terminal manipulation, with no patch currently available to address the issue.
Restrict mmctl access to isolated, air-gapped administrative terminals; disable mmctl message export features if not operationally required; implement command auditing and logging for all mmctl operations; require administrators to verify command prompts through secondary communication channels before execution of privileged operations; segment administrative workstations from general network and external communication channels.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Mattermost
View allMattermost versions 10.4.x <= 10.4.1, 9.11.x <= 9.11.7, 10.3.x <= 10.3.2, 10.2.x <= 10.2.2 fail to properly validate boa
Denial of service in linkify-it (npm) through v5.0.0 lets remote unauthenticated attackers wedge a rendering worker by s
A denial-of-service vulnerability in Mattermost allows an authenticated user to crash the server via multiple large auto
Mattermost version 7.1.x and earlier fails to sufficiently process a specifically crafted GIF file when it is uploaded w
A remote code execution vulnerability (CVSS 9.9) that allows authenticated users. Critical severity with potential for s
Mattermost versions 10.4.x <= 10.4.1, 9.11.x <= 9.11.7, 10.3.x <= 10.3.2, 10.2.x <= 10.2.2 fail to properly validate inp
Privilege escalation to full administrative control in Mattermost self-hosted server (versions 11.6.0 and earlier in the
Mattermost versions 11.0.x <= 11.0.2, 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12 fail to to verify that t
Mattermost versions 10.12.x <= 10.12.1, 10.11.x <= 10.11.4, 10.5.x <= 10.5.12, 11.0.x <= 11.0.3 fail to properly validat
Mattermost webapp fails to validate route parameters in/<TEAM_NAME>/channels/<CHANNEL_NAME> allowing an attacker to perf
Fleet is an open source osquery manager. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable,
Mattermost versions 10.4.x <= 10.4.1, 9.11.x <= 9.11.7, 10.3.x <= 10.3.2, 10.2.x <= 10.2.2 fail to use prepared statemen
Same technique Information Disclosure
View allVendor StatusVendor
Debian
Bug #823556| Release | Status | Fixed Version | Urgency |
|---|---|---|---|
| open | - | - |
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-16234
GHSA-3439-vqgj-2gcf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB