CVE-2023-36460CWE-22

Mastodon vulnerable to arbitrary file creation through media attachments

Critical · published July 6, 2023

CVSS v3.1
10.0
EPSS
40%
Percentile
98.6
In the wild
Unconfirmed
What it is

🚨 Attackers can exploit Mastodon with just a crafted media file! This vulnerability allows them to create or overwrite any files the server can access — a ticking time bomb for your social network! 🔥 Think of it as a construction worker who can sneak in blueprints for an entire building instead of just one room — they can reshape the whole structure however they please! If exploited, an attacker could cause complete chaos, leading to Denial of Service or even remote code execution. They could potentially take control of your Mastodon instance, resulting in a catastrophic loss of data and service!

Put simply

Think of it as a construction worker who can sneak in blueprints for an entire building instead of just one room — they can reshape the whole structure however they please! This vulnerability in Mastodon allows attackers to use specially crafted media files to manipulate its media processing code, resulting in the creation or overwriting of files at any location the server can access.

What to do

If exploited, an attacker could cause complete chaos, leading to Denial of Service or even remote code execution. They could potentially take control of your Mastodon instance, resulting in a catastrophic loss of data and service! Upgrade to Mastodon versions 3.5.9, 4.0.5, or 4.1.3 immediately to patch this vulnerability. Make sure to review any existing media files and monitor for unusual activity as an extra precaution! You've got this! With these steps, you'll be one step closer to securing your Mastodon server! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.40110 · 98.6th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2023-07-06T18:39Z
EPSS history
Timeline
  • 06 JUL 18:39Z
    Mastodon vulnerable to arbitrary file creation through media attachments
    cvelistv5