CVE-2026-3108
8.0Mattermost · Mattermost
Mattermost fails to sanitize user-controlled post content in mmctl terminal output, allowing attackers to perform screen manipulation, fake prompts, and clipboard hijacking via malicious escape sequences.
Executive summary
A critical terminal injection vulnerability in Mattermost allows authenticated attackers to manipulate administrator terminals through crafted messages.
Vulnerability
This vulnerability involves the improper neutralization of ANSI and OSC escape sequences within the mmctl command line tool. An authenticated user can inject these sequences into post content, which, when rendered in an administrator's terminal, allows for arbitrary screen manipulation, deceptive prompts, and potential clipboard hijacking.
Business impact
The vulnerability carries a CVSS score of 8.0, reflecting its potential for high impact on confidentiality, integrity, and availability within the administrative environment. By hijacking the terminal session of an administrator, an attacker could trick the user into executing unauthorized commands or exfiltrating sensitive data, leading to a compromise of the entire Mattermost platform and its underlying server infrastructure.
Remediation
Immediate Action: Update Mattermost instances to versions 11.5.0, 11.2.3, 10.11.11, 11.4.1, or 11.3.2 immediately to neutralize the vulnerable terminal output handling.
Proactive Monitoring: Review administrative audit logs for unusual command execution patterns or suspicious post content that may indicate an attempt to inject terminal escape sequences.
Compensating Controls: Restrict the use of the mmctl tool to trusted administrative workstations and ensure that terminal emulators are configured to disable or strictly filter OSC and ANSI escape sequences where possible.
Exploitation status
Public Exploit Available: No (exploit_available: unknown)
Analyst recommendation
Given the high severity of this terminal injection flaw, administrators must prioritize patching to the identified secure versions. Failure to update leaves administrative sessions exposed to sophisticated manipulation that can bypass standard security controls by subverting the terminal interface itself.
More Mattermost CVEs
Sources
Originally found and disclosed by winfunc, per the CVE Program record.
- MMSA-2026-00599 Vendor advisory