CVE-2023-36460

published 6 Jul 2023 · updated 13 Feb 2025

Mastodon vulnerable to arbitrary file creation through media attachments

10.0CriticalCVSS 10.0EPSS 40%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 40%. No fixed version is recorded.

Mastodon is a free, open-source social network server based on ActivityPub. Starting in version 3.5.0 and prior to versions 3.5.9, 4.0.5, and 4.1.3, attackers using carefully crafted media files can cause Mastodon's media processing code to create arbitrary files at any location. This allows attackers to create and overwrite any file Mastodon has access to, allowing Denial of Service and arbitrary Remote Code Execution. Versions 3.5.9, 4.0.5, and 4.1.3 contain a patch for this issue.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
mastodon>=3.5.0 <3.5.9, >=4.0.0 <4.0.5, >=4.1.0 <4.1.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-36460 severity on Zeptric[![CVE-2023-36460](https://zeptric.io/badge/cve/CVE-2023-36460.svg)](https://zeptric.io/cve/CVE-2023-36460)