CVE-2024-39839Mattermost Server
Medium 4.3
Follow: this CVE · Mattermost · Mattermost Server We alert you by email or Slack (account required).
- Priority
- 26
- CVSS 3.1
- 4.3
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 42
- Auth required
- Yes
- Published
- Aug 1, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-284
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
What happens
Mattermost versions 9.9.x <= 9.9.0, 9.5.x <= 9.5.6, 9.7.x <= 9.7.5, 9.8.x <= 9.8.1 fail to disallow users to set their own remote username, when shared channels were enabled, which allows a user on a remote to set their remote username prop to an arbitrary string, which would be then synced to the local server as long as the user hadn't been synced before.
What to do
- Apply the vendor's security update for Mattermost Server.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/mattermost/mattermost-server |
≥ 9.5.0+incompatible < 9.5.7+incompatible |
9.5.7+incompatible |
go get github.com/mattermost/mattermost-server@v9.5.7+incompatible |
| Go | github.com/mattermost/mattermost-server |
≥ 9.7.0+incompatible < 9.7.6+incompatible |
9.7.6+incompatible |
go get github.com/mattermost/mattermost-server@v9.7.6+incompatible |
| Go | github.com/mattermost/mattermost-server |
≥ 9.8.0+incompatible < 9.8.2+incompatible |
9.8.2+incompatible |
go get github.com/mattermost/mattermost-server@v9.8.2+incompatible |
| Go | github.com/mattermost/mattermost-server |
≥ 9.9.0+incompatible < 9.9.1+incompatible |
9.9.1+incompatible |
go get github.com/mattermost/mattermost-server@v9.9.1+incompatible |
| Go | github.com/mattermost/mattermost-server/v5 |
all |
no fixed version | — |
| Go | github.com/mattermost/mattermost-server/v6 |
all |
no fixed version | — |
| Go | github.com/mattermost/mattermost/server/v8 |
≥ 9.5.0 < 9.5.7 |
9.5.7 |
go get github.com/mattermost/mattermost/server/v8@v9.5.7 |
| Go | github.com/mattermost/mattermost/server/v8 |
≥ 9.7.0 < 9.7.6 |
9.7.6 |
go get github.com/mattermost/mattermost/server/v8@v9.7.6 |
| Go | github.com/mattermost/mattermost/server/v8 |
≥ 9.8.0 < 9.8.2 |
9.8.2 |
go get github.com/mattermost/mattermost/server/v8@v9.8.2 |
| Go | github.com/mattermost/mattermost/server/v8 |
≥ 9.9.0 < 9.9.1 |
9.9.1 |
go get github.com/mattermost/mattermost/server/v8@v9.9.1 |
| Go | github.com/mattermost/mattermost/server/v8 |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GO-2024-3024, GHSA-vg6q-84p8-qvqh). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mattermost | mattermost_server | ≥ 9.5.0 < 9.5.7 |
| mattermost | mattermost_server | ≥ 9.7.0 < 9.7.6 |
| mattermost | mattermost_server | ≥ 9.8.0 < 9.8.2 |
| mattermost | mattermost_server | 9.9.0 |
Official sources
References
Links published by the sources. Open them with care.
- mattermost.com Vendor Advisory