CVE-2023-5159: Github.com/mattermost/mattermost/server/v8 Mattermost Incorrect Authorization Vulnerability Vulnerability
LOWCVE-2023-5159 is a LOW (CVSS 2.7) mattermost incorrect authorization vulnerability vulnerability (CWE-863: Incorrect Authorization) affecting Github.com/mattermost/mattermost/server/v8 libraries in the Go ecosystem. The issue involves mattermost incorrect authorization vulnerability. Remediation is available by upgrading affected packages to version 8.1.1, 8.0.2, 7.8.10.
CVE-2023-5159 at a Glance
Security Impact
CVSS: 2.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2023-5159
To remediate this vulnerability, upgrade all affected Github.com/mattermost/mattermost/server/v8 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/mattermost/mattermost/server/v8 to 8.1.1
Upgrade github.com/mattermost/mattermost/server/v8 to 8.0.2
Upgrade github.com/mattermost/mattermost-server/v6 to 7.8.10
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/mattermost/mattermost/server/v8
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-5159, inspect your project dependencies for Github.com/mattermost/mattermost/server/v8:
inspect dependencies for github.com/mattermost/mattermost/server/v8
Analyze the terminal output to locate any version of Github.com/mattermost/mattermost/server/v8 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.1.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Github.com/mattermost/mattermost/server/v8, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-5159 Affected Github.com/mattermost/mattermost/server/v8 Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/mattermost/mattermost/server/v8
|
Go |
≥ 8.1.0
< 8.1.1
All 1 versions
8.1.0
|
8.1.1
|
|
github.com/mattermost/mattermost/server/v8
|
Go |
≥ 8.0.0
< 8.0.2
|
8.0.2
|
|
github.com/mattermost/mattermost-server/v6
|
Go |
< 7.8.10
|
7.8.10
|
References
Frequently Asked Questions
What is CVE-2023-5159?
Which Github.com/mattermost/mattermost/server/v8 versions are affected?
What version fixes CVE-2023-5159?
Is github.com/mattermost/mattermost/server/v8 affected?
Is github.com/mattermost/mattermost-server/v6 affected?
What is the CVSS score of CVE-2023-5159?
What CWE is associated with CVE-2023-5159?
How can I check Go dependencies for CVE-2023-5159?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rp65-jpc7-8h8p",
"modified" : "2023-10-03T21:17:01Z",
"published" : "2023-09-29T12:30:16Z",
"aliases" : [ "CVE-2023-5159" ],
"summary" : "Mattermost Incorrect Authorization vulnerability",
"details" : "Mattermost fails to properly verify the permissions when managing/updating a bot allowing a User Manager role with user edit permissions to manage/update bots.\n\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/mattermost/mattermost/server/v8"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.1.0"
}, {
"fixed" : "8.1.1"
} ]
} ],
"versions" : [ "8.1.0" ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/mattermost/mattermost/server/v8"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/mattermost/mattermost-server/v6"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "7.8.10"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-5159"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mattermost/mattermost"
}, {
"type" : "WEB",
"url" : "https://mattermost.com/security-updates"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-29T20:41:31Z",
"nvd_published_at" : "2023-09-29T10:15:10Z"
}
}