CVE-2025-1412
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedMattermost versions 9.11.x <= 9.11.6, 10.4.x <= 10.4.1 fail to invalidate all active sessions when converting a user to a bot, with allows the converted user to escalate their privileges depending on the permissions granted to the bot.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceIn Mattermost versions 9.11.x through 9.11.6 and 10.4.x through 10.4.1, the user-to-bot conversion functionality does not properly invalidate existing sessions for the converted user account. This allows the original user session to persist after conversion, enabling the user to retain access and potentially escalate privileges based on the permissions assigned to the bot role.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 9.11.0, < 9.11.7>= 10.4.0, < 10.4.2CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check installed Mattermost Server versionRun 'sudo mattermost version' or look in the system console under About > Mattermost, or check the /opt/mattermost/version fileAffected if Version is 9.11.0 through 9.11.6 OR 10.4.0 through 10.4.1
-
Identify bot accounts created via user conversionQuery the database: SELECT id, username, createat FROM bots WHERE createat > 0 AND userid IS NOT NULL; or check the system console under Bot Accounts for bots that originated from converted user accountsAffected if Any bot accounts exist that were converted from regular user accounts using the user-to-bot conversion feature
-
Check for active sessions tied to converted bot accountsQuery the database: SELECT * FROM sessions WHERE userid IN (SELECT userid FROM bots WHERE userid IS NOT NULL); or inspect the system console under Session ID to see active sessionsAffected if Active sessions exist for accounts that were converted from users to bots, indicating the session was not invalidated after conversion
-
Verify session invalidation on recent conversionsReview application logs for entries containing 'user' and 'bot' and 'convert' or 'session' around the time of user-to-bot conversions; check if 'session invalidated' messages are missing after conversion eventsAffected if Conversions occurred but no session termination is logged for the converted user account
You are affected if your Mattermost Server version falls within 9.11.0-9.11.6 or 10.4.0-10.4.1 AND you have used the user-to-bot conversion feature, with active sessions still present for converted accounts.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped9.11.710.4.2
Upgrade Mattermost to version 9.11.7 or later for 9.x branches, or version 10.4.2 or later for 10.x branches to ensure sessions are properly invalidated during user-to-bot conversion.
Upgrade to Mattermost Server 9.11.7 (if on 9.11.x) or 10.4.2 (if on 10.4.x)
- 1. Back up your Mattermost database and configuration files before upgrading.
- 2. Review the Mattermost Upgrade Guide at https://docs.mattermost.com/upgrade/upgrade-mattermost.html for your deployment method.
- 3. If using Mattermost Omnibus or a package manager, update to the latest package: for RHEL/CentOS use 'sudo yum update mattermost-server' or for Ubuntu/Debian use 'sudo apt update && sudo apt install mattermost-server'.
- 4. If using a manual installation, download the target version (9.11.7 or 10.4.2) from https://mattermost.com/download/, stop the Mattermost service, replace the binary, and restart the service.
- 5. After upgrade, verify that all active sessions were invalidated for users converted to bots by having users log in again.
- 6. Test that bot functionality works correctly with the new session tokens.
- 7. Verify the Mattermost server starts without errors in the logs.
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,088.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-1412 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-1412 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data