Skip to main content
Vulnerability Database/CVE-2024-45835

CVE-2024-45835: Mattermost Desktop Information Disclosure

CVE-2024-45835 is an information disclosure vulnerability in Mattermost Desktop App affecting versions 5.8.0 and earlier. Misconfigured Electron Fuses allow attackers to access Chromium cookies and exploit other security settings. This article covers technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-45835 Overview

CVE-2024-45835 affects Mattermost Desktop App versions <=5.8.0. The application fails to sufficiently configure Electron Fuses, a hardening mechanism built into the Electron framework. Attackers with remote or local access can abuse this misconfiguration to extract Chromium cookies or exploit related weaknesses in the Electron runtime. The flaw is tracked under [CWE-693: Protection Mechanism Failure].

The vulnerability impacts confidentiality and integrity but does not affect availability. Mattermost has published guidance through its Mattermost Security Updates portal.

Critical Impact

Attackers can harvest Chromium cookies from the Mattermost Desktop App, enabling session theft and unauthorized access to Mattermost workspaces.

Affected Products

  • Mattermost Desktop App versions <=5.8.0
  • Windows, macOS, and Linux builds packaged with the vulnerable Electron configuration
  • Deployments relying on Mattermost Desktop for authenticated workspace access

Discovery Timeline

  • 2024-09-16 - CVE-2024-45835 published to the National Vulnerability Database
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-45835

Vulnerability Analysis

Mattermost Desktop App is an Electron-based client that bundles Chromium and Node.js. Electron ships with a feature called Fuses, which lets application maintainers disable powerful runtime capabilities at build time. These capabilities include RunAsNode, EnableNodeCliInspectArguments, EnableNodeOptionsEnvironmentVariable, OnlyLoadAppFromAsar, and EnableCookieEncryption.

When Fuses are not properly flipped, the packaged binary retains dangerous defaults. An attacker who can execute the Mattermost binary locally, or who can supply crafted environment variables or command-line arguments, can repurpose the application as a generic Node.js interpreter. The same misconfiguration leaves Chromium cookies stored on disk without the hardened encryption that Fuses can enforce.

Root Cause

The root cause is a build-time hardening gap. Mattermost did not flip the full set of Electron Fuses that disable Node.js integration vectors and enforce cookie encryption. The underlying weakness maps to [CWE-693: Protection Mechanism Failure], where a defensive control exists in the framework but is not applied by the downstream application.

Attack Vector

The attack vector is listed as Network, but exploitation typically requires access to the host or to resources the Mattermost process reads. An attacker can invoke the Mattermost binary with Node.js inspection or options flags to execute attacker-controlled JavaScript inside the trusted process. Separately, an attacker with filesystem access to the user profile can read the Chromium cookie store, including Mattermost session tokens, because cookie encryption Fuses were not enabled.

Stolen session cookies allow the attacker to impersonate the user against the Mattermost server without triggering interactive authentication or multi-factor prompts. See the Mattermost Security Updates advisory for vendor-specific details.

Detection Methods for CVE-2024-45835

Indicators of Compromise

  • Mattermost Desktop binary executed with Node.js inspection flags such as --inspect, --inspect-brk, or --remote-debugging-port
  • Presence of NODE_OPTIONS or ELECTRON_RUN_AS_NODE environment variables in the context of the Mattermost process
  • Unexpected reads of the Chromium Cookies SQLite database inside the Mattermost user data directory
  • Mattermost sessions originating from new IP addresses without a corresponding interactive login event

Detection Strategies

  • Monitor process creation events for the Mattermost executable spawned with command-line arguments that invoke Node.js features
  • Alert on non-Mattermost processes opening files under the Mattermost Partitions or Cookies paths
  • Correlate server-side Mattermost session activity with endpoint login telemetry to spot cookie reuse from unexpected hosts

Monitoring Recommendations

  • Enable detailed process command-line auditing on endpoints running Mattermost Desktop
  • Forward Mattermost server authentication and session logs to a central analytics platform for correlation
  • Track installed Mattermost Desktop versions through software inventory to confirm no instance remains at 5.8.0 or earlier

How to Mitigate CVE-2024-45835

Immediate Actions Required

  • Upgrade Mattermost Desktop App to a version later than 5.8.0 on all endpoints
  • Invalidate active Mattermost sessions and force reauthentication after upgrade
  • Audit endpoints for signs of cookie theft or Node.js argument abuse against the Mattermost binary

Patch Information

Mattermost released fixed builds that correctly configure Electron Fuses, disabling RunAsNode, Node CLI inspect arguments, and the NODE_OPTIONS environment variable, and enabling cookie encryption. Review the Mattermost Security Updates page for the exact fixed version and distribute the updated installers through your software deployment tooling.

Workarounds

  • Restrict local execution of the Mattermost binary with application control policies that block unexpected command-line arguments
  • Enforce short Mattermost session lifetimes and require multi-factor authentication to limit the value of stolen cookies
  • Apply filesystem access controls to the Mattermost user data directory to reduce exposure of the Chromium cookie store
bash
# Verify installed Mattermost Desktop version on Windows
(Get-Item "$Env:LOCALAPPDATA\Programs\mattermost-desktop\Mattermost.exe").VersionInfo.ProductVersion

# Verify installed version on macOS
defaults read /Applications/Mattermost.app/Contents/Info.plist CFBundleShortVersionString

# Verify installed version on Linux
mattermost-desktop --version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.