We have released Flarum 1.8.21, a security release that addresses a single, high-severity privilege escalation vulnerability. We strongly recommend that all forums on Flarum 1.x update immediately.
Should you update?
Yes. If your forum runs any version of Flarum 1.x, you are affected and should act now.
Our recommendation, in order of preference:
- Upgrade to Flarum 2. Flarum 2 is not affected by this vulnerability, and it is the more secure and actively developed line. If you are in a position to make the move, this is the best path forward. See the 2.0 upgrade guide to get started.
- If you must remain on Flarum 1 for now, update to 1.8.21 as soon as possible. This release contains the fix and nothing else, so it is a safe, low-risk update.
Please do not leave this. The vulnerability is straightforward to exploit on an affected forum.
What was fixed
A user holding the "Edit groups" (user.editGroups) permission — but who is not an administrator — could escalate themselves to a full administrator by sending a specially crafted group identifier when editing a user's groups. Because this permission is commonly granted to moderators or power users, many forums are exposed.
The result is a complete compromise of the forum: the attacker gains full administrative access.
Flarum 2 is not affected.
Full details are published in the GitHub Security Advisory:
How to update
composer update
php flarum migrate
php flarum cache:clear
As always, back up your database and files before updating.
Thanks
Our thanks to the reporter for the responsible disclosure of this issue.
If you have any difficulty updating, please reach out in theSupport tag where we will help you.