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

Published Jul 6, 2023
·
Updated

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 Software

7 affected components
Joinmastodon Mastodon>=3.5.0<3.5.9
Joinmastodon Mastodon>=4.0.0<4.0.5
Joinmastodon Mastodon>=4.1.0<4.1.3
Mastodon Mastodon=3.5.17
Mastodon Mastodon=4.0.13
Mastodon Mastodon=4.1.13
Mastodon Mastodon=4.2.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Mastodon to a version that resolves this vulnerability.

    Fixed in 3.5.9
  2. Upgrade

    Upgrade Mastodon to a version that resolves this vulnerability.

    Fixed in 4.0.5
  3. Upgrade

    Upgrade Mastodon to a version that resolves this vulnerability.

    Fixed in 4.1.3

Event History

Jul 6, 2023
CVE Published
via MITRE·06:39 PM
Data Sourced
via MITRE·06:39 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Feb 2, 2024
News Published
via The Register·06:32 PM
News Published
via The Register·06:34 PM
Feb 3, 2024
News Published
via BleepingComputer·03:09 PM
News Published
via BleepingComputer·04:20 PM

Peer vulnerabilities

Found alongside the following vulnerabilities.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this Mastodon vulnerability?

The vulnerability ID for this Mastodon vulnerability is CVE-2023-36460.

2

What is the severity of CVE-2023-36460?

The severity of CVE-2023-36460 is critical.

3

Which versions of Mastodon are affected by CVE-2023-36460?

Versions 3.5.0 to 3.5.9, 4.0.0 to 4.0.5, and 4.1.0 to 4.1.3 of Mastodon are affected by CVE-2023-36460.

4

How can attackers exploit CVE-2023-36460?

Attackers can exploit CVE-2023-36460 by using carefully crafted media files to create arbitrary files at any location in Mastodon's media processing code.

5

Where can I find more information about CVE-2023-36460?

You can find more information about CVE-2023-36460 at the following references: [http://www.openwall.com/lists/oss-security/2023/07/06/4](http://www.openwall.com/lists/oss-security/2023/07/06/4), [https://github.com/mastodon/mastodon/commit/dc8f1fbd976ae544720a4e07120d9a91b2722440](https://github.com/mastodon/mastodon/commit/dc8f1fbd976ae544720a4e07120d9a91b2722440), [https://github.com/mastodon/mastodon/releases/tag/v3.5.9](https://github.com/mastodon/mastodon/releases/tag/v3.5.9).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203