CVE-2023-36460
JSON

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 packageVersionsReported by
mastodon mastodon>= 3.5.0, < 3.5.9, >= 4.0.0, < 4.0.5, >= 4.1.0, < 4.1.3CVE List
joinmastodon mastodonfrom 3.5.0 before 3.5.9, from 4.0.0 before 4.0.5, from 4.1.0 before 4.1.3NVD
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.3Bitnami Vulnerability Database

All scores

GitHub_M10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Bitnami Vulnerability Databasecritical rating

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-36460 changed 2025-02-13CVE Terms of Use
NVDCVE-2023-36460 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-MASTODON-2023-36460 changed 2026-09-08Apache-2.0