Skip to content
Heist/ feed
Back to feed
Medium

Privilege escalation to system admin via personal access tokens

Type: advisorySources: OSV

Mattermost fails to restrict a user with permissions to edit other users and to create personal access tokens from elevating their privileges to system admin

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-2515
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 11:32 UTC · Revision 1

Source evidence

Privilege escalation to system admin via personal access tokens

core-osv · Original source

Published 12 May 2023, 08:53 UTC

Mattermost fails to restrict a user with permissions to edit other users and to create personal access tokens from elevating their privileges to system admin

osv:CVE-2023-2515
Complete source record
{
  "id": "c70a555e9c0fe65ead0fe294b34ad7ce4a8c3a6604d9e97b2515aae3027b5ff1",
  "url": "https://osv.dev/vulnerability/CVE-2023-2515",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Privilege escalation to system admin via personal access tokens",
    "summary": "Mattermost fails to restrict a user with permissions to edit other users and to create personal access tokens from elevating their privileges to system admin",
    "evidence": "osv:CVE-2023-2515",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-2515",
      "aliases": [
        "BIT-mattermost-2023-2515",
        "CVE-2023-2515",
        "GHSA-7g2v-2frm-rg94"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mattermost/mattermost",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "8cf21b2ca06ebc4f26bf6ddd892650f370dd2bd3"
                },
                {
                  "introduced": "87cbeafd363557615354cdf622adf3929f73e561"
                },
                {
                  "fixed": "c01c4a46b1bad277c57528b7288e4bb313b87360"
                },
                {
                  "introduced": "f14c24391ca84740d90a29ec8b67579326eaa236"
                },
                {
                  "fixed": "bfaf0fd3d8434d403c61556eb2dd1be0d9965071"
                },
                {
                  "introduced": "c4d8c1450ab2b9538bbc2690ca1ee865567a5888"
                },
                {
                  "fixed": "2a75f997ee6cbff3047b7215073d1659ea1f98c0"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "7.1.8"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.2.0"
                      },
                      {
                        "fixed": "7.7.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.8.0"
                      },
                      {
                        "fixed": "7.8.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost_server:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.9.0"
                      },
                      {
                        "fixed": "7.9.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v7.9.1",
            "v7.8.2",
            "v7.7.3",
            "v7.1.7",
            "v7.9.0",
            "v7.8.1",
            "v7.7.2",
            "v7.1.6",
            "v7.8.0",
            "v7.7.1",
            "v7.7.0",
            "v7.1.5",
            "cloud-2022-11-24-1",
            "cloud-2022-11-11-1",
            "v7.1.4",
            "cloud-2022-10-06-1",
            "cloud-2022-09-08-1",
            "v7.1.3",
            "cloud-2022-08-10-1",
            "v7.1.2",
            "v7.1.1",
            "v7.1.0",
            "cloud-2022-07-20-1",
            "cloud-2022-06-29-1",
            "v5.2.0-rc2",
            "v5.2.0-rc1",
            "v5.1.0-rc1",
            "v5.0.0-rc1",
            "v4.10.0-rc1",
            "v4.9.0-rc1",
            "v4.8.0-rc1",
            "v4.7.0-rc1",
            "v4.6.0-rc2",
            "v4.6.0-rc1",
            "v4.5.0-rc1",
            "v4.4.0-rc1",
            "v4.3.0-rc1",
            "v4.2.0-rc1",
            "v0.5.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-2515.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:34.560138926Z",
      "provider": "osv",
      "references": [
        "https://mattermost.com/security-updates",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2515.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-2515"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-863"
        ],
        "cna_assigner": "Mattermost",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "7.1.7"
                  },
                  {
                    "last_affected": "7.7.3"
                  },
                  {
                    "last_affected": "7.8.2"
                  },
                  {
                    "last_affected": "7.9.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2515.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-2515",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 502018,
  "published_at": "2023-05-12T08:53:44.111+00:00"
}