CVE-2025-6226 · MEDIUM (CVSS 6.5)
Summary: IDOR in CreatePost API allows for timeboxed message disclosure
Details
Mattermost versions 10.5.x <= 10.5.6, 10.8.x <= 10.8.1, 10.7.x <= 10.7.3, 9.11.x <= 9.11.16 fail to verify authorization when retrieving cached posts by PendingPostID which allows an authenticated user to read posts in private channels they don't have access to via guessing the PendingPostID of recently created posts.
Severity
MEDIUM (CVSS 6.5) — vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Affected packages
- Go github.com/mattermost/mattermost-server [10.5.0 – 10.5.7]
- Go github.com/mattermost/mattermost-server [10.8.0 – 10.8.2]
- Go github.com/mattermost/mattermost-server [10.7.0 – 10.7.4]
- Go github.com/mattermost/mattermost-server [9.11.0 – 9.11.17]
- Go github.com/mattermost/mattermost/server/v8 [0 – 8.0.0-20250520130510-fa40a8c5d47f]
- GIT github.com/mattermost/mattermost [0bc2ddd42375a75ab14e63f038165150d4f07659 – 8f8612c63783eff8188330973e4f533b323b4e32] [58bd34fd34cbd7d3da777d627b6cffdf8a532930 – 341d662939e9482c7701d9fd35b066e5eabbc5a5] [f6b324a9d71843e8f48eba9e90dfbeabcbac1ae7 – dca75cc154561525603434721b5db1c48b5cdd6d] [bb105f3a2785636ad53b2d0bf4027900d41f6a67 – c2330fb5058d9a15d4d16eaf2c282ae61d45788c]