Skip to content
Heist/ feed
Back to feed
Low

Creating posts with user-defined IDs permitted in CreatePost API

Type: advisorySources: OSV

Mattermost versions 9.8.0, 9.7.x <= 9.7.4, 9.6.x <= 9.6.2 and 9.5.x <= 9.5.5 fail to prevent users from specifying a RemoteId for their posts which allows an attacker to specify both a remoteId and the post ID, resulting in creating a post with a user-defined post ID. This can cause some broken functionality in the channel or thread with user-defined posts

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-39361
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 15:07 UTC · Revision 1

Source evidence

Creating posts with user-defined IDs permitted in CreatePost API

core-osv · Original source

Published 3 Jul 2024, 08:35 UTC

Mattermost versions 9.8.0, 9.7.x <= 9.7.4, 9.6.x <= 9.6.2 and 9.5.x <= 9.5.5 fail to prevent users from specifying a RemoteId for their posts which allows an attacker to specify both a remoteId and the post ID, resulting in creating a post with a user-defined post ID. This can cause some broken functionality in the channel or thread with user-defined posts

osv:CVE-2024-39361
Complete source record
{
  "id": "f079329def7aa0f4d6e0ead0fd59efb8cc6601b3840321352fbfa3dd0458499c",
  "url": "https://osv.dev/vulnerability/CVE-2024-39361",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Creating posts with user-defined IDs permitted in CreatePost API",
    "summary": "Mattermost versions 9.8.0, 9.7.x <= 9.7.4, 9.6.x <= 9.6.2 and 9.5.x <= 9.5.5 fail to prevent users from specifying a RemoteId for their posts which allows an attacker to specify both a remoteId and the post ID, resulting in creating a post with a user-defined post ID. This can cause some broken functionality in the channel or thread with user-defined posts",
    "evidence": "osv:CVE-2024-39361",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2024-39361",
      "aliases": [
        "CVE-2024-39361"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mattermost/mattermost",
              "type": "GIT",
              "events": [
                {
                  "introduced": "99d819d25d0b16b3faed901b1fe5c41de7655e9c"
                },
                {
                  "fixed": "01723a784c5ed96feb0f5c90518f8078ae798178"
                },
                {
                  "introduced": "9fc0f464a376499ca5859944483f09a32370a85a"
                },
                {
                  "fixed": "327e1a1dad176ab89e9f65ff30a92e77e770b21e"
                },
                {
                  "introduced": "7a9257d35b66fc46a7ac682dc6b720857c630ee9"
                },
                {
                  "fixed": "e5addb495b22f75da2ecaa214e7f492a4d39cd44"
                },
                {
                  "introduced": "015002180e109f0384c511a01dede846c549ce35"
                },
                {
                  "fixed": "6eb3d42f52be6d36ff6a931f2be44e3f7cdebe38"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "9.5.0"
                      },
                      {
                        "fixed": "9.5.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "9.6.0"
                      },
                      {
                        "fixed": "9.6.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "9.7.0"
                      },
                      {
                        "fixed": "9.7.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:mattermost:mattermost:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "9.8.0"
                      },
                      {
                        "fixed": "9.8.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v9.5.6-rc2",
            "v9.6.3-rc2",
            "v9.8.1-rc1",
            "v9.5.6-rc1",
            "v9.6.3-rc1",
            "v9.5.5-rc1",
            "v9.5.5",
            "v9.8.0-rc4",
            "v9.8.0",
            "@mattermost/types@9.8.0",
            "@mattermost/client@9.8.0",
            "v9.7.3",
            "v9.6.2-rc2",
            "v9.6.2",
            "v9.5.4-rc2",
            "v9.5.4",
            "v9.7.2-rc1",
            "v9.7.2",
            "v9.5.4-rc1",
            "v9.6.2-rc1",
            "v9.7.1",
            "v9.7.0-rc3",
            "v9.7.0",
            "@mattermost/types@9.7.0",
            "@mattermost/client@9.7.0",
            "v9.5.3",
            "v9.5.3-rc3",
            "v9.6.1-rc3",
            "v9.6.1",
            "v9.5.3-rc2",
            "v9.6.1-rc2",
            "v9.5.3-rc1",
            "v9.6.1-rc1",
            "v9.5.2",
            "v9.6.0-rc3",
            "v9.6.0",
            "@mattermost/types@9.6.0",
            "@mattermost/client@9.6.0",
            "v9.5.1-rc1",
            "v9.5.1",
            "v9.5.0-rc3",
            "v9.5.0",
            "@mattermost/types@9.5.0",
            "@mattermost/client@9.5.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39361.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:36.742395474Z",
      "provider": "osv",
      "references": [
        "https://mattermost.com/security-updates",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39361.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-39361"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-284"
        ],
        "cna_assigner": "Mattermost",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.8.0"
                  },
                  {
                    "last_affected": "9.8.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandaloneSingleVersion"
              }
            ]
          },
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "9.7.0"
                  },
                  {
                    "last_affected": "9.7.4"
                  },
                  {
                    "introduced": "9.6.0"
                  },
                  {
                    "last_affected": "9.6.2"
                  },
                  {
                    "introduced": "9.5.0"
                  },
                  {
                    "last_affected": "9.5.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39361.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-39361",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504007,
  "published_at": "2024-07-03T08:35:43.118+00:00"
}