Skip to content
Heist/ feed
Back to feed
Low

Path traversal in GitHub plugin's code preview feature

Type: advisorySources: OSV

Mattermost fails to sanitize code permalinks, allowing an attacker to preview code from private repositories by posting a specially crafted permalink on a channel.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-2797
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 23:07 UTC · Revision 1

Source evidence

Path traversal in GitHub plugin's code preview feature

core-osv · Original source

Published 16 Jun 2023, 09:03 UTC

Mattermost fails to sanitize code permalinks, allowing an attacker to preview code from private repositories by posting a specially crafted permalink on a channel.

osv:CVE-2023-2797
Complete source record
{
  "id": "4c8500efeb77135e407b14c0df83c12d7dc3dae211bba0bc14e950f0dda25849",
  "url": "https://osv.dev/vulnerability/CVE-2023-2797",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Path traversal in GitHub plugin's code preview feature",
    "summary": "Mattermost fails to sanitize code permalinks, allowing an attacker to preview code from private repositories by posting a specially crafted permalink on a channel.",
    "evidence": "osv:CVE-2023-2797",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2023-2797",
      "aliases": [
        "CVE-2023-2797"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mattermost/mattermost",
              "type": "GIT",
              "events": [
                {
                  "introduced": "25e8c1fcddb1154de49480eb5cd7eb085507d138"
                },
                {
                  "last_affected": "96cf6c0f7a0c2e98815dbd9397c8de79528ae306"
                },
                {
                  "introduced": "f14c24391ca84740d90a29ec8b67579326eaa236"
                },
                {
                  "last_affected": "b3eb2e451e18b4003634954c2c4be678695dc26a"
                },
                {
                  "introduced": "5b33575d571469115f29720530ff5b53a6cb7de5"
                },
                {
                  "last_affected": "5b33575d571469115f29720530ff5b53a6cb7de5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.1.0"
                      },
                      {
                        "last_affected": "7.1.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.8.0"
                      },
                      {
                        "last_affected": "7.8.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost:7.10.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.10.0"
                      },
                      {
                        "last_affected": "7.10.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "7.10.0",
            "v7.1.9",
            "v7.8.4",
            "v7.10.0",
            "v7.8.3",
            "v7.1.8",
            "v7.8.2",
            "v7.1.7",
            "v7.8.1",
            "v7.1.6",
            "v7.8.0",
            "v7.1.5",
            "v7.1.4",
            "v7.1.3",
            "v7.1.2",
            "v7.1.1",
            "v7.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-2797.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.186014412Z",
      "provider": "osv",
      "references": [
        "https://mattermost.com/security-updates/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2797.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-2797"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-74"
        ],
        "cna_assigner": "Mattermost",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "7.10.0"
                  },
                  {
                    "last_affected": "7.10.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          },
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "7.1.9"
                  },
                  {
                    "last_affected": "7.8.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/2xxx/CVE-2023-2797.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-2797",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490748,
  "published_at": "2023-06-16T09:03:17.656+00:00"
}