Skip to main content

Mastodon CVE-2025-62174

LOW
Insufficient Session Expiration (CWE-613)
2025-10-13 security-advisories@github.com
3.5
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Steal victim's session cookie or access token
  2. Exploit
    Admin resets password via tootctl CLI
  3. Execution
    Stale session/token not revoked
  4. Impact
    Attacker retains unauthorized account access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V7 - Session Management Session expiration enforcement
Exploitation Conditions

Two concrete prerequisites must both hold: (1) the attacker must ALREADY possess a valid compromised session cookie or OAuth access token for the target account, and (2) an administrator must reset that account's password specifically via the command-line path bin/tootctl accounts modify --reset-password on Mastodon versions before 4.4.6, 4.3.14, or 4.2.27. The flaw is that this CLI reset fails to invalidate the pre-existing session/token. Limiting factors: it provides no initial access by itself (prior compromise is mandatory), it is scoped to a single victim account, and no known workaround exists other than upgrading - so defenders relying on a tootctl password reset as an incident-response eviction step were not actually revoking attacker access.

Impact

This is a low-severity session-management defect (CWE-613, Insufficient Session Expiration), and the multiple signals agree it is NOT a high priority. The provided CVSS base score is 3.5 (AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N), EPSS is only 0.21% (11th percentile), there is no CISA KEV listing, and no public exploit is identified at time of analysis - so all exploitation signals are consistently low with none conflicting. The defining limitation is that this is purely a remediation-failure flaw: it grants NO new access on its own. An attacker must ALREADY possess a compromised session or access token, and the flaw only means that the specific CLI remediation path (bin/tootctl accounts modify --reset-password) fails to evict that pre-existing foothold. Note a minor tension in the input CVSS: it lists C:L/I:N while the real-world effect is continued full account control, which also implies an integrity impact (posting/changing settings as the victim) - see assessed vector below. There is no SSVC decision data provided. Bottom line: a genuine hardening bug that undermines incident response, worth patching on a normal cycle, but not an emergency - real risk is contingent on a prior compromise having already occurred.

Exploit ScenarioDerived

An attacker who previously stole a user's session cookie or OAuth access token (e.g., via phishing or a prior compromise) retains it. A Mastodon administrator, believing they are locking the attacker out, resets the account password from the command line with bin/tootctl accounts modify --reset-password; because active sessions and tokens are not revoked, the attacker's stale token keeps working and they continue controlling the account. No public exploit code has been identified for this issue.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 19, 2026

Mastodon before 4.4.6, 4.3.14, and 4.2.27 fails to revoke existing sessions and OAuth access tokens when an administrator resets an account password through bin/tootctl accounts modify --reset-password. This low-severity CWE-613 session-expiration defect only becomes relevant after an attacker already possesses a valid compromised session cookie or access token; the CLI reset then leaves that access intact, undermining an incident-response eviction step. No public exploit has been identified at time of analysis, and EPSS is 0.21% (11th percentile).

RemediationAI

Vendor-released patch: upgrade to Mastodon 4.4.6, 4.3.14, or 4.2.27, which makes the CLI password-reset path revoke sessions, subscriptions, and access tokens. The advisory is at https://github.com/mastodon/mastodon/security/advisories/GHSA-f3q3-rmf7-9655 and the patch commit is https://github.com/mastodon/mastodon/commit/1631fb80e8029d2c5425a03a2297b93f7e225217. The vendor states no known workarounds exist; if upgrade is delayed, do not rely on bin/tootctl accounts modify --reset-password alone to evict a compromised account, and additionally invalidate the affected user's existing sessions and OAuth access tokens through administrative mechanisms, accepting forced reauthentication and user disruption as the trade-off.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Mastodon is a Ruby on Rails-based ActivityPub social network server that uses session cookies and OAuth access tokens to maintain authenticated access. CWE-613 (Insufficient Session Expiration) applies because the command-line password-reset path directly set the user's password instead of calling the model method that performs full credential revocation. The upstream commit modifies app/models/user.rb to add a change_password! method and updates lib/mastodon/cli/accounts.rb so --reset-password invokes it, thereby revoking sessions, subscriptions, and access tokens after changing the password. The CPE data identifies joinmastodon:mastodon with wildcard version ranges, while the advisory specifies affected releases before 4.4.6, 4.3.14, and 4.2.27.

Know when Mastodon gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 3.5 LOW
AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:N
vuln.today AI 5.4 MEDIUM

Attacker already holds a stolen token so PR:L; continued use needs no victim interaction (UI:N) and yields read and write control of one account, hence C:L/I:L, A:N.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

DescriptionCVE.org

Mastodon is a free, open-source social network server based on ActivityPub. In Mastodon before 4.4.6, 4.3.14, and 4.2.27, when an administrator resets a user account's password via the command-line interface using bin/tootctl accounts modify --reset-password, active sessions and access tokens for that account are not revoked. This allows an attacker with access to a previously compromised session or token to continue using the account after the password has been reset. This issue has been patched in versions 4.2.27, 4.3.14, and 4.4.6. No known workarounds exist.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Medium
popular self-hosted fediverse server, thousands of instances but not ubiquitous
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:*
cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:*
cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:*
CVE-2022-46405 HIGH POC
7.5 Dec 04

Mastodon through 4.0.2 allows attackers to cause a denial of service (large Sidekiq pull queue) by creating bot accounts

CVE-2024-25618 HIGH POC
7.4 Feb 14

Mastodon is a free, open-source social network server based on ActivityPub. Rated high severity (CVSS 7.4), this vulnera

CVE-2023-28853 MEDIUM POC
6.5 Apr 04

Mastodon is a free, open-source social network server based on ActivityPub Mastodon allows configuration of LDAP for aut

CVE-2023-36460 CRITICAL
9.9 Jul 06

Mastodon is a free, open-source social network server based on ActivityPub. Rated critical severity (CVSS 9.9), this vul

CVE-2024-23832 CRITICAL
9.8 Feb 01

Mastodon is a free, open-source social network server based on ActivityPub Mastodon allows configuration of LDAP for aut

CVE-2022-2166 CRITICAL
9.8 Nov 16

Improper Restriction of Excessive Authentication Attempts in GitHub repository mastodon/mastodon prior to 4.0.0. Rated c

CVE-2026-46348 HIGH
8.7 Jun 24

Server-Side Request Forgery in Mastodon before 4.5.10, 4.4.17, and 4.3.23 lets attackers coerce the server into issuing

CVE-2026-47389 HIGH
8.6 Jun 24

Server-side request forgery in Mastodon (versions before 4.5.10, 4.4.17, and 4.3.23) lets an attacker who controls autho

CVE-2026-33868 MEDIUM POC
4.3 Mar 27

Mastodon prior to versions 4.5.8, 4.4.15, and 4.3.21 contains an unauthenticated Open Redirect vulnerability in the `/we

CVE-2026-27468 HIGH
8.2 Feb 24

Unauthenticated attackers can bypass FASP administrator approval in Mastodon 4.4.0-4.4.13 and 4.5.0-4.5.6 to subscribe t

CVE-2026-41259 HIGH
8.2 Apr 23

Sign-up restriction bypass in Mastodon (self-hosted ActivityPub social server) before v4.5.9, v4.4.16, and v4.3.22 allow

CVE-2024-37903 HIGH
8.2 Jul 05

Mastodon is a self-hosted, federated microblogging platform. Rated high severity (CVSS 8.2), this vulnerability is remot

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy