# CVE-2023-36460: Mastodon vulnerable to arbitrary file creation through media attachments

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 40.1%, higher than 98% of CVEs (2026-12-01)
- Published: 2023-07-06T18:39:09.825Z
- Modified: 2026-09-08T08:48:13.240Z
- Also known as: BIT-MASTODON-2023-36460, GHSA-9928-3cp5-93fm
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- mastodon mastodon: >= 3.5.0, < 3.5.9; >= 4.0.0, < 4.0.5; >= 4.1.0, < 4.1.3
- 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
- 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

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## 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

- CVE List: [CVE-2023-36460](https://www.cve.org/CVERecord?id=CVE-2023-36460), CVE Terms of Use, modified 2025-02-13
- NVD: [CVE-2023-36460](https://nvd.nist.gov/vuln/detail/CVE-2023-36460), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MASTODON-2023-36460](https://osv.dev/vulnerability/BIT-MASTODON-2023-36460), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-36460 · Whole record: https://cve.day/CVE-2023-36460.json · Rebuilt by cve.day 2026-11-25T22:58:25.500Z
