8.5
HIGH
CVE-2024-25623
Mastodon Activity Streams Type Confusion Vulnerability
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.

INFO

Published Date :

Feb. 19, 2024, 4:15 p.m.

Last Modified :

Dec. 18, 2024, 10:39 p.m.

Remotely Exploitable :

Yes !

Impact Score :

4.7

Exploitability Score :

3.1
Public PoC/Exploit Available at Github

CVE-2024-25623 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2024-25623 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Joinmastodon mastodon
References to Advisories, Solutions, and Tools

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Proof of Concept for the type confusion vulnerability of ActivityPub implementations

Dockerfile Shell

Updated: 1 month, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : Nov. 20, 2024, 11:17 a.m. This repo has been linked 2 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-25623 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-25623 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Dec. 18, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
    Added CWE NIST CWE-434
    Added CPE Configuration OR *cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:* versions up to (excluding) 3.5.19 *cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:* versions from (including) 4.0.0 up to (excluding) 4.0.15 *cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:* versions from (including) 4.1.0 up to (excluding) 4.1.15 *cpe:2.3:a:joinmastodon:mastodon:*:*:*:*:*:*:*:* versions from (including) 4.2.0 up to (excluding) 4.2.7
    Changed Reference Type https://github.com/mastodon/mastodon/commit/9fee5e852669e26f970e278021302e1a203fc022 No Types Assigned https://github.com/mastodon/mastodon/commit/9fee5e852669e26f970e278021302e1a203fc022 Patch
    Changed Reference Type https://github.com/mastodon/mastodon/commit/9fee5e852669e26f970e278021302e1a203fc022 No Types Assigned https://github.com/mastodon/mastodon/commit/9fee5e852669e26f970e278021302e1a203fc022 Patch
    Changed Reference Type https://github.com/mastodon/mastodon/security/advisories/GHSA-jhrq-qvrm-qr36 No Types Assigned https://github.com/mastodon/mastodon/security/advisories/GHSA-jhrq-qvrm-qr36 Vendor Advisory
    Changed Reference Type https://github.com/mastodon/mastodon/security/advisories/GHSA-jhrq-qvrm-qr36 No Types Assigned https://github.com/mastodon/mastodon/security/advisories/GHSA-jhrq-qvrm-qr36 Vendor Advisory
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/mastodon/mastodon/commit/9fee5e852669e26f970e278021302e1a203fc022
    Added Reference https://github.com/mastodon/mastodon/security/advisories/GHSA-jhrq-qvrm-qr36
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Received by [email protected]

    Feb. 19, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference GitHub, Inc. https://github.com/mastodon/mastodon/security/advisories/GHSA-jhrq-qvrm-qr36 [No types assigned]
    Added Reference GitHub, Inc. https://github.com/mastodon/mastodon/commit/9fee5e852669e26f970e278021302e1a203fc022 [No types assigned]
    Added CWE GitHub, Inc. CWE-434
    Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-25623 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-25623 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability