CVE-2018-21258 Mattermost Server is vulnerable to a Denial of Service attack through `invite_people` command

High 7.5 Published Updated

Attackers can cause a denial of service in Mattermost Server via the invite_people slash command, requiring an upgrade to mitigate.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-21258?

CVE-2018-21258 is a high-severity denial of service vulnerability in Mattermost Mattermost Server, published on 19 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in Mattermost Server before 5.1. It allows attackers to cause a denial of service via the invite_people slash command.

Weakness: CWE-74

Which versions are affected by CVE-2018-21258?

4 open source packages ship an affected version, including github.com/mattermost/mattermost-server and github.com/mattermost/mattermost-server/v5. It affects 1 product.

PackageAffectedFixed in
github.com/mattermost/mattermost-server GoAll versionsNone
github.com/mattermost/mattermost-server GoAll versions5.1.0
github.com/mattermost/mattermost-server GoAll versions5.1.0
github.com/mattermost/mattermost-server/v5 GoAll versions5.1.0

Products include Mattermost Mattermost Server.

How do I fix CVE-2018-21258?

Upgrade github.com/mattermost/mattermost-server to 5.1.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2018-21258 being exploited?

There is no known exploitation of CVE-2018-21258 in the wild and no public exploit code.

All Mattermost Mattermost Server vulnerabilities

Sources

Also known as GHSA-5mh6-p63g-3mv5, GO-2025-4146.

Is CVE-2018-21258 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free