---
id: CVE-2025-2475
aliases:
  - GHSA-6rqh-8465-2xcw
  - GO-2025-3610
title: Mattermost vulnerable to Incorrect Implementation of Authentication Algorithm
summary: Mattermost vulnerable to Incorrect Implementation of Authentication Algorithm
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'
vendor: mattermost
product: github.com/mattermost/mattermost/server/v8
ecosystem: go
affected:
  - 'github.com/mattermost/mattermost/server/v8 >= 10.5.0, < 10.5.2'
  - 'github.com/mattermost/mattermost/server/v8 >= 9.11.0, < 9.11.10'
  - >-
    github.com/mattermost/mattermost/server/v8 <
    8.0.0-20250220161544-fd356b62b4dd
patched:
  - github.com/mattermost/mattermost/server/v8 10.5.2
  - github.com/mattermost/mattermost/server/v8 9.11.10
  - github.com/mattermost/mattermost/server/v8 8.0.0-20250220161544-fd356b62b4dd
published: '2025-04-14'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:57.227800886Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-6rqh-8465-2xcw'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-2475'
  - url: >-
      https://github.com/mattermost/mattermost/commit/124547a9ef424431e1e6cf09bdba6c1099d415de
  - url: >-
      https://github.com/mattermost/mattermost/commit/40fd60714bd055e00c16301ba6dc0fddfc44e15e
  - url: >-
      https://github.com/mattermost/mattermost/commit/88523ceed8a7547c4a4203a30e7c3a8097346280
  - url: >-
      https://github.com/mattermost/mattermost/commit/bcd7a4c2bd856dbb40fcda227b363fa5f6f548a7
  - url: >-
      https://github.com/mattermost/mattermost/commit/fd356b62b4dd3318d2c8019d2310abdd6ce24c8c
  - url: 'https://github.com/mattermost/mattermost'
  - url: 'https://mattermost.com/security-updates'
  - url: 'https://pkg.go.dev/vuln/GO-2025-3610'
tags:
  - osv
  - go
epss: 0.00228
epssPercentile: 0.12101
ingestedAt: '2026-09-12T03:13:01.760Z'
---

## Overview

Mattermost versions 10.5.x <= 10.5.1, 10.4.x <= 10.4.3, 9.11.x <= 9.11.9 fail to invalidate the cache when a user account is converted to a bot which allows an attacker to login to the bot exactly one time via normal credentials.

## Affected packages

- `github.com/mattermost/mattermost/server/v8 >= 10.5.0, < 10.5.2`
- `github.com/mattermost/mattermost/server/v8 >= 9.11.0, < 9.11.10`
- `github.com/mattermost/mattermost/server/v8 < 8.0.0-20250220161544-fd356b62b4dd`

## Remediation

Upgrade to a patched release:

- `github.com/mattermost/mattermost/server/v8 10.5.2`
- `github.com/mattermost/mattermost/server/v8 9.11.10`
- `github.com/mattermost/mattermost/server/v8 8.0.0-20250220161544-fd356b62b4dd`
