# CVE-2024-25623: Lack of media type verification of Activity Streams objects allows impersonation of remote accounts

- Severity: High 8.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/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.51%, higher than 45% of CVEs (2026-12-01)
- Published: 2024-02-19T15:28:15.296Z
- Modified: 2026-09-08T08:48:13.164Z
- Also known as: BIT-MASTODON-2024-25623, GHSA-jhrq-qvrm-qr36
- Weaknesses: CWE-434
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Mastodon is a free, open-source social network server based on ActivityPub. Prior to versions 4.2.7, 4.1.15, 4.0.15, and 3.5.19, when fetching remote statuses, Mastodon doesn't check that the response from the remote server has a `Content-Type` header value of the Activity Streams media type, which allows a threat actor to upload a crafted Activity Streams document to a remote server and make a Mastodon server fetch it, if the remote server accepts arbitrary user uploads. The vulnerability allows a threat actor to impersonate an account on a remote server that satisfies all of the following properties: allows the attacker to register an account; accepts arbitrary user-uploaded documents and places them on the same domain as the ActivityPub actors; and serves user-uploaded document in response to requests with an `Accept` header value of the Activity Streams media type. Versions 4.2.7, 4.1.15, 4.0.15, and 3.5.19 contain a fix for this issue.

(As written by CVE List.)

## Affected

- mastodon mastodon: < 3.5.19; >= 4.0.0, < 4.0.15; >= 4.1.0, < 4.1.15; >= 4.2.0, < 4.2.7
- joinmastodon mastodon: before 3.5.19; from 4.0.0 before 4.0.15; from 4.1.0 before 4.1.15; from 4.2.0 before 4.2.7
- mastodon (Bitnami): before 3.5.19; from 4.0.0 before 4.0.15; from 4.1.0 before 4.1.15; from 4.2.0 before 4.2.7

## Every score

- GitHub_M: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N`
- NVD: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/mastodon/mastodon/security/advisories/GHSA-jhrq-qvrm-qr36> (advisory, vendor-advisory)
- <https://github.com/mastodon/mastodon/commit/9fee5e852669e26f970e278021302e1a203fc022> (fix, patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-25623> (web)

## Sources

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

---

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