CVE-2026-3108
ANSI Escape Injection in Mattermost mmctl Allows Terminal Manipulation
Publication date: 2026-03-26
Last updated on: 2026-03-30
Assigner: Mattermost, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| mattermost | mattermost_server | From 10.11.0 (inc) to 10.11.11 (exc) |
| mattermost | mattermost_server | From 11.2.0 (inc) to 11.2.3 (exc) |
| mattermost | mattermost_server | From 11.3.0 (inc) to 11.3.2 (exc) |
| mattermost | mattermost_server | 11.4.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-150 | The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in certain versions of Mattermost where the software fails to properly sanitize user-controlled post content in the mmctl commands terminal output.
Attackers can exploit this by crafting messages that contain ANSI and OSC escape sequences, which are special codes used to control terminal behavior.
These crafted messages can manipulate administrator terminals by enabling screen manipulation, creating fake prompts, and hijacking the clipboard.
How can this vulnerability impact me? :
The vulnerability can lead to serious impacts including unauthorized manipulation of administrator terminal displays.
Attackers can create fake prompts that may trick administrators into entering sensitive information.
Clipboard hijacking can result in sensitive data being stolen or replaced without the administrator's knowledge.
Overall, this can lead to compromise of confidentiality, integrity, and availability of the system.