CVE-2023-36460
10.0critical
Mastodon vulnerable to arbitrary file creation through media attachments
- Severity
- 10.0critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 40.1% (higher than 98% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-MASTODON-2023-36460GHSA-9928-3cp5-93fm
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| mastodon mastodon | >= 3.5.0, < 3.5.9, >= 4.0.0, < 4.0.5, >= 4.1.0, < 4.1.3 | CVE List |
| joinmastodon mastodon | from 3.5.0 before 3.5.9, from 4.0.0 before 4.0.5, from 4.1.0 before 4.1.3 | NVD |
| mastodon (Bitnami) | from 3.5.0 before 3.5.9, from 4.0.0 before 4.0.5, from 4.1.0 before 4.1.3 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
| https://github.com/mastodon/mastodon/security/advisories/GHSA-9928-3cp5-93fm | advisory, third-party-advisory | |
| https://github.com/mastodon/mastodon/commit/dc8f1fbd976ae544720a4e07120d9a91b2722440 | advisory, patch, third-party-advisory | |
| https://github.com/mastodon/mastodon/releases/tag/v3.5.9 | advisory, third-party-advisory | |
| https://github.com/mastodon/mastodon/releases/tag/v4.0.5 | advisory, third-party-advisory | |
| https://github.com/mastodon/mastodon/releases/tag/v4.1.3 | advisory, third-party-advisory | |
| http://www.openwall.com/lists/oss-security/2023/07/06/4 | discussion, mailing-list | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-36460 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-36460 changed 2025-02-13 | CVE Terms of Use |
| NVD | CVE-2023-36460 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-MASTODON-2023-36460 changed 2026-09-08 | Apache-2.0 |