Advisory

GHSA-x67c-v8jr-p29r

Also known as: CVE-2025-8023, GO-2025-3907

Summary

Mattermost Fails to Sanitize Path Traversal Sequences

Details

Mattermost versions 10.8.x <= 10.8.3, 10.5.x <= 10.5.8, 9.11.x <= 9.11.17, 10.9.x <= 10.9.2 fails to sanitize path traversal sequences in template file destination paths, which allows a system admin to perform path traversal attacks via malicious path components, potentially enabling malicious file placement outside intended directories.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-08-21 09:30 UTC
Modified
2025-08-29 20:59 UTC

Affected packages and fixes

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 10.8.0, fixed 10.8.4 (semver)

Fixed versions

10.8.4

Fix

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 10.5.0, fixed 10.5.9 (semver)

Fixed versions

10.5.9

Fix

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 9.11.0, fixed 9.11.18 (semver)

Fixed versions

9.11.18

Fix

github.com/mattermost/mattermost-server

Go · All systems

Affected

  • introduced 10.9.0, fixed 10.9.3 (semver)

Fixed versions

10.9.3

Fix

github.com/mattermost/mattermost/server/v8

Go · All systems

Affected

  • introduced 0, fixed 8.0.0-20250708065844-b38e2eccda18 (semver)

Fixed versions

8.0.0-20250708065844-b38e2eccda18

Fix

  • Fixed version 8.0.0-20250708065844-b38e2eccda18
    go get github.com/mattermost/mattermost/server/[email protected]

github.com/mattermost/mattermost-server/v5

Go · All systems

Affected

  • introduced 0, last affected 5.39.5 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

github.com/mattermost/mattermost-server/v6

Go · All systems

Affected

  • introduced 0, last affected 6.7.2 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences