CVE-2024-36287: Mattermost desktop Mattermost Desktop App Allows For Vulnerability

LOW
Advisory Identifier: GHSA-xgqm-wp7w-mgg2
CVSS 3.8
CWE-693
Published
Advisory Summary

CVE-2024-36287 is a LOW (CVSS 3.8) mattermost desktop app allows for vulnerability (CWE-693: Protection Mechanism Failure) affecting Mattermost desktop libraries in the npm ecosystem. The issue involves mattermost desktop app allows for bypassing tcc restrictions on macos. Remediation is available by upgrading affected packages to version 5.8.0.

CVE-2024-36287 at a Glance

CVE Identifier CVE-2024-36287
GHSA Identifier GHSA-xgqm-wp7w-mgg2
Severity LOW
CVSS v3.1 Base Score 3.8
CWE Classification CWE-693: Protection Mechanism Failure
Affected Product Mattermost desktop
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 3.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-36287

To remediate this vulnerability, upgrade all affected Mattermost desktop dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

mattermost-desktop fixed: 5.8.0
npm install mattermost-desktop@5.8.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls mattermost-desktop

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2024-36287, inspect your project dependencies using npm:

npm ls mattermost-desktop

Analyze the terminal output to locate any version of Mattermost desktop in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.8.0), your application is affected.

Note: The npm ls mattermost-desktop command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-693: Protection Mechanism Failure, where the product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product. In Mattermost desktop, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Mattermost Desktop App versions <=5.7.0 fail to disable certain Electron debug flags which allows for bypassing TCC restrictions on macOS.

CVE-2024-36287 Affected Mattermost desktop Versions

1 component(s)
Fixed Versions:
5.8.0
Product / Package Ecosystem Affected Versions Fixed Version
mattermost-desktop
npm
< 5.8.0
5.8.0

References

Frequently Asked Questions

What is CVE-2024-36287?
CVE-2024-36287 is a security vulnerability in Mattermost desktop involving Mattermost Desktop App allows for bypassing TCC restrictions on macOS under CWE-693: Protection Mechanism Failure.
Which Mattermost desktop versions are affected?
Affected versions include releases prior to 5.8.0 across affected packages: mattermost-desktop.
What version fixes CVE-2024-36287?
Upgrading to 5.8.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mattermost-desktop affected?
Yes, mattermost-desktop is affected in releases prior to 5.8.0. Upgrade your dependency to 5.8.0 or later.
What is the CVSS score of CVE-2024-36287?
CVE-2024-36287 has a CVSS v3.1 base score of 3.8 (LOW) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2024-36287?
CVE-2024-36287 is classified under CWE-693: Protection Mechanism Failure (The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.).
How can I check npm dependencies for CVE-2024-36287?
Run the dependency tree command: 'npm ls mattermost-desktop'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xgqm-wp7w-mgg2",
  "modified" : "2024-06-17T21:23:49Z",
  "published" : "2024-06-14T09:31:17Z",
  "aliases" : [ "CVE-2024-36287" ],
  "summary" : "Mattermost Desktop App allows for bypassing TCC restrictions on macOS",
  "details" : "Mattermost Desktop App versions <=5.7.0 fail to disable certain Electron debug flags which allows for bypassing TCC restrictions on macOS.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "mattermost-desktop"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.8.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-36287"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mattermost/desktop"
  }, {
    "type" : "WEB",
    "url" : "https://mattermost.com/security-updates"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-693" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-06-17T21:23:49Z",
    "nvd_published_at" : "2024-06-14T09:15:09Z"
  }
}