CVE-2024-40886Mattermost
High 8.8 No auth needed
Follow: this CVE · Mattermost · Mattermost We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.1
- 8.8
- EPSS
- 0.3% probability of exploitation in 30 days · percentile 17
- Auth required
- No
- Published
- Aug 22, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-352
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
Mattermost versions 9.9.x <= 9.9.1, 9.5.x <= 9.5.7, 9.10.x <= 9.10.0, 9.8.x <= 9.8.2 fail to sanitize user inputs in the frontend that are used for redirection which allows for a one-click client-side path traversal that is leading to CSRF in User Management page of the system console.
What to do
- Apply the vendor's security update for Mattermost.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/mattermost/mattermost-server |
≥ 9.5.0+incompatible < 9.5.8+incompatible |
9.5.8+incompatible |
go get github.com/mattermost/mattermost-server@v9.5.8+incompatible |
| Go | github.com/mattermost/mattermost-server |
≥ 9.8.0+incompatible < 9.8.3+incompatible |
9.8.3+incompatible |
go get github.com/mattermost/mattermost-server@v9.8.3+incompatible |
| Go | github.com/mattermost/mattermost-server |
≥ 9.9.0+incompatible < 9.9.2+incompatible |
9.9.2+incompatible |
go get github.com/mattermost/mattermost-server@v9.9.2+incompatible |
| Go | github.com/mattermost/mattermost-server |
≥ 9.10.0+incompatible < 9.10.1+incompatible |
9.10.1+incompatible |
go get github.com/mattermost/mattermost-server@v9.10.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.9.0 < 9.9.2 |
9.9.2 |
go get github.com/mattermost/mattermost/server/v8@v9.9.2 |
| Go | github.com/mattermost/mattermost/server/v8 |
≥ 9.5.0 < 9.5.8 |
9.5.8 |
go get github.com/mattermost/mattermost/server/v8@v9.5.8 |
| Go | github.com/mattermost/mattermost/server/v8 |
≥ 9.10.0 < 9.10.1 |
9.10.1 |
go get github.com/mattermost/mattermost/server/v8@v9.10.1 |
| Go | github.com/mattermost/mattermost/server/v8 |
≥ 9.8.0 < 9.8.3 |
9.8.3 |
go get github.com/mattermost/mattermost/server/v8@v9.8.3 |
| Go | github.com/mattermost/mattermost/server/v8 |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GO-2024-3097, GHSA-hrf9-rm95-fpf3). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mattermost | mattermost | ≥ 9.5.0 < 9.5.8 |
| mattermost | mattermost | ≥ 9.8.0 < 9.8.3 |
| mattermost | mattermost | ≥ 9.9.0 < 9.9.2 |
| mattermost | mattermost | ≥ 9.10.0 < 9.10.1 |
Official sources
References
Links published by the sources. Open them with care.
- mattermost.com Vendor Advisory