CVE-2023-36460: Mastodon vulnerable to arbitrary file creation through media attachments
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Mastodonto a version that resolves this vulnerability.Fixed in 3.5.9 - Upgrade
Upgrade
Mastodonto a version that resolves this vulnerability.Fixed in 4.0.5 - Upgrade
Upgrade
Mastodonto a version that resolves this vulnerability.Fixed in 4.1.3
Event History
Frequently Asked Questions
What is the vulnerability ID for this Mastodon vulnerability?
The vulnerability ID for this Mastodon vulnerability is CVE-2023-36460.
What is the severity of CVE-2023-36460?
The severity of CVE-2023-36460 is critical.
Which versions of Mastodon are affected by CVE-2023-36460?
Versions 3.5.0 to 3.5.9, 4.0.0 to 4.0.5, and 4.1.0 to 4.1.3 of Mastodon are affected by CVE-2023-36460.
How can attackers exploit CVE-2023-36460?
Attackers can exploit CVE-2023-36460 by using carefully crafted media files to create arbitrary files at any location in Mastodon's media processing code.
Where can I find more information about CVE-2023-36460?
You can find more information about CVE-2023-36460 at the following references: [http://www.openwall.com/lists/oss-security/2023/07/06/4](http://www.openwall.com/lists/oss-security/2023/07/06/4), [https://github.com/mastodon/mastodon/commit/dc8f1fbd976ae544720a4e07120d9a91b2722440](https://github.com/mastodon/mastodon/commit/dc8f1fbd976ae544720a4e07120d9a91b2722440), [https://github.com/mastodon/mastodon/releases/tag/v3.5.9](https://github.com/mastodon/mastodon/releases/tag/v3.5.9).