{"id":"CVE-2024-25623","published":"2024-02-19T15:28:15Z","modified":"2024-08-01T23:44:09Z","title":"Lack of media type verification of Activity Streams objects allows impersonation of remote accounts","vendor":"mastodon","product":"mastodon","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00511,"percentile":0.44469,"provenance":"source"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"references":[{"url":"https://github.com/mastodon/mastodon/security/advisories/GHSA-jhrq-qvrm-qr36","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mastodon/mastodon/commit/9fee5e852669e26f970e278021302e1a203fc022","tags":["x_refsource_MISC"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":8.89},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"mastodon","affectedVersions":[{"vendor":"mastodon","product":"mastodon","versions":["< 3.5.19",">= 4.0.0, < 4.0.15",">= 4.1.0, < 4.1.15",">= 4.2.0, < 4.2.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-02-20T18:34:37.609043Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-22944","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mastodon-cve-2024-23832","parents":[{"from":"CVE-2024-23832","to":"CVE-2024-25623","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["app/helpers/jsonld_helper.rb","app/services/fetch_resource_service.rb"],"commits":["https://github.com/mastodon/mastodon/commit/1726085db5cd73dd30953da858f9887bcc90b958","https://github.com/mastodon/mastodon/commit/9fee5e852669e26f970e278021302e1a203fc022"],"basis":"shared function","functions":["process_response"]}]}]}}