CVE-2024-25623
published high CVSS 3.1 · 8.5Lack of media type verification of Activity Streams objects allows impersonation of remote accounts
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mastodon | — | mastodon< 3.5.19 · >= 4.0.0, < 4.0.15 · >= 4.1.0, < 4.1.15 · >= 4.2.0, < 4.2.7 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mastodon | mastodon | < 3.5.19 (affected)>= 4.0.0, < 4.0.15 (affected)>= 4.1.0, < 4.1.15 (affected)>= 4.2.0, < 4.2.7 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-434 CWE-434: Unrestricted Upload of File with Dangerous Type
References
2Provider assertions
3GitHub_M · cna
Lack of media type verification of Activity Streams objects allows impersonation of remote accounts
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a97698e1eeb5b3bc8cb62f65b49ef7684cefadfc56b3c8935444d94098c3974e
- Ingested
- 23 Sep 2026, 08:20:06 UTC
- Source record
- Official CVE record