CVE-2024-25618 in Joinmastodon Mastodon
Mastodon is a free, open-source social network server based on ActivityPub. Mastodon allows new identities from configured authentication providers (CAS, SAML, OIDC) to attach to existing local users with the same e-mail address. This results in a possible account takeover if the authentication provider allows chang...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Joinmastodon | Mastodon | < 3.5.18 ≥ 4.0.0, < 4.0.14 ≥ 4.1.0, < 4.1.14 ≥ 4.2.0, < 4.2.6 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Mastodon is a free, open-source social network server based on ActivityPub. Mastodon allows new identities from configured authentication providers (CAS, SAML, OIDC) to attach to existing local users with the same e-mail address. This results in a possible account takeover if the authentication provider allows changing the e-mail address or multiple authentication providers are configured. When a user logs in through an external authentication provider for the first time, Mastodon checks the e-mail address passed by the provider to find an existing account. However, using the e-mail address alone means that if the authentication provider allows changing the e-mail address of an account, the Mastodon account can immediately be hijacked. All users logging in through external authentication providers are affected. The severity is medium, as it also requires the external authentication provider to misbehave. However, some well-known OIDC providers (like Microsoft Azure) make it very easy to accidentally allow unverified e-mail changes. Moreover, OpenID Connect also allows dynamic client registration. This issue has been addressed in versions 4.2.6, 4.1.14, 4.0.14, and 3.5.18. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-25618 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-190538-H |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| Published | 2024-02-14 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-287: Improper Authentication
Software does not prove or insufficiently proves that the user is who they claim to be.
CWE-306: Missing Authentication for Critical Function
Software does not perform any authentication for functionality that requires a verified identity.
Related attack patterns (CAPEC)
CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data via CWE-287
CAPEC-633 Token Impersonation via CWE-287
CAPEC-650 Upload a Web Shell to a Web Server via CWE-287
CAPEC-12 Choosing Message Identifier via CWE-306
CAPEC-36 Using Unpublished Interfaces or Functionality via CWE-306
Show all 15
CAPEC-62 Cross Site Request Forgery via CWE-306
CAPEC-166 Force the System to Reset Values via CWE-306
CAPEC-194 Fake the Source of Data via CWE-287
CAPEC-593 Session Hijacking via CWE-287
CAPEC-22 Exploiting Trust in Client via CWE-287
CAPEC-94 Adversary in the Middle (AiTM) via CWE-287
CAPEC-114 Authentication Abuse via CWE-287
CAPEC-115 Authentication Bypass via CWE-287
CAPEC-151 Identity Spoofing via CWE-287
CAPEC-216 Communication Channel Manipulation via CWE-306
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-25618 affects Mastodon, a free, open-source social network server, by allowing account takeover if the authentication provider allows changing the e-mail address or multiple authentication providers are configured.
An attacker can exploit this vulnerability by using an authentication provider that allows e-mail address changes or by exploiting multiple configured authentication providers to attach to an existing local user account with the same e-mail address.
Questions
What is CVE-2024-25618?
CVE-2024-25618 affects Mastodon, a free, open-source social network server, by allowing account takeover if the authentication provider allows changing the e-mail address or multiple authentication providers are configured.
What is the CVSS score for CVE-2024-25618?
CVE-2024-25618 has CVSS 7.4 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N. EPSS: 0.5%.
Is CVE-2024-25618 actively exploited?
No confirmed active exploitation of CVE-2024-25618 as of 2026-09-25.
How do I remediate CVE-2024-25618?
Priority: MEDIUM. PSIRT: [email protected]
What systems are affected by CVE-2024-25618?
CVE-2024-25618 affects Joinmastodon Mastodon.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Joinmastodon","product":"Mastodon","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.