Skip to content

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

CriticalCVSS 9.9 EPSS 40.1%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
joinmastodon mastodon >= 3.5.0, < 3.5.9; >= 4.0.0, < 4.0.5; >= 4.1.0, < 4.1.3 3.5.9, 4.0.5, 4.1.3 Fixed
mastodon = >= 3.5.0, < 3.5.9; = >= 4.0.0, < 4.0.5; = >= 4.1.0, < 4.1.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
mastodon = >= 3.5.0, < 3.5.9 No fix listed
mastodon = >= 4.0.0, < 4.0.5 No fix listed
mastodon = >= 4.1.0, < 4.1.3 No fix listed
joinmastodon mastodon >= 3.5.0, < 3.5.9 3.5.9
joinmastodon mastodon >= 4.0.0, < 4.0.5 4.0.5
joinmastodon mastodon >= 4.1.0, < 4.1.3 4.1.3

References