# CVE-2024-25618: External OpenID Connect Account Takeover by E-Mail Change in mastodon

- Severity: Medium 4.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-02-14T20:45:50.621Z
- Modified: 2026-09-08T08:48:13.172Z
- Also known as: BIT-MASTODON-2024-25618, GHSA-vm39-j3vx-pch3
- Weaknesses: CWE-287, CWE-306
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- mastodon mastodon: >= 4.2.0, < 4.2.6; >= 4.1.0, < 4.1.14; >= 4.0.0, < 4.0.14; < 3.5.18
- joinmastodon mastodon: before 3.5.18; from 4.0.0 before 4.0.14; from 4.1.0 before 4.1.14; from 4.2.0 before 4.2.6
- mastodon (Bitnami): before 3.5.18; from 4.0.0 before 4.0.14; from 4.1.0 before 4.1.14; from 4.2.0 before 4.2.6

## Every score

- GitHub_M: CVSS:3.1 4.2 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/mastodon/mastodon/security/advisories/GHSA-vm39-j3vx-pch3> (exploit, advisory, vendor-advisory)
- <https://github.com/mastodon/mastodon/commit/b31af34c9716338e4a32a62cc812d1ca59e88d15> (fix, patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-25618> (web)

## Sources

- CVE List: [CVE-2024-25618](https://www.cve.org/CVERecord?id=CVE-2024-25618), CVE Terms of Use, modified 2025-05-12
- NVD: [CVE-2024-25618](https://nvd.nist.gov/vuln/detail/CVE-2024-25618), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MASTODON-2024-25618](https://osv.dev/vulnerability/BIT-MASTODON-2024-25618), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-25618 · Whole record: https://cve.day/CVE-2024-25618.json · Rebuilt by cve.day 2026-11-25T22:58:36.826Z
