Skip to content

mastodon

v4.5.12 Security

This release includes 1 security fix for security teams reviewing exposed deployments.

Published 1mo Communication & Email
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →
This release patches 1 known CVE

Topics

activity-stream activitypub docker fediverse mastodon microblog
+3 more
social-network social-web webfinger

Affected surfaces

crypto_tls

Summary

AI summary

Updates When using Docker, https://github.com/mastodon/mastodon/security/advisories/GHSA-3rhr-8phh-jm86, and Ruby across a mixed release.

Full changelog

Upgrade overview

This release contains upgrade notes that deviate from the norm:

ℹ️ Requires assets recompilation

For more information, view the complete release notes and scroll down to the upgrade instructions section.

Changelog

Security

  • Fix TLS certificate verification being disabled on setups with LDAP_TLS_NO_VERIFY=true (GHSA-3rhr-8phh-jm86)
  • Update dependencies

Fixed

  • Fix being unable to unmark media as sensitive when "always mark media as sensitive" is enabled in web UI (#39339 by @matrix07012)

Upgrade notes

To get the code for v4.5.12, use git fetch && git checkout v4.5.12.

[!NOTE]
As always, make sure you have backups of the database before performing any upgrades. If you are using docker-compose, this is how a backup command might look: docker exec mastodon_db_1 pg_dump -Fc -U postgres postgres > name_of_the_backup.dump

Dependencies

External dependencies have not changed since v4.5.0.

  • Ruby: 3.2 or newer
  • PostgreSQL: 14 or newer
  • Elasticsearch (recommended, for full-text search): 7.x (OpenSearch should also work)
  • LibreTranslate (optional, for translations): 1.3.3 or newer
  • Redis: 7.0 or newer
  • Node: 20.19 or newer
  • libvips (optional, instead of ImageMagick): 8.13 or newer
  • ImageMagick (optional if using libvips): 6.9.7-7 or newer

Update steps

The following instructions are for updating from 4.5.11.

If you are upgrading directly from an earlier release, please carefully read the upgrade notes for the skipped releases as well, as they often require extra steps such as database migrations. In particular, it is very important to read the 4.5.0 release notes.

Non-Docker

[!TIP]
The charlock_holmes gem may fail to build on some systems with recent versions of gcc.
If you run into this issue, try BUNDLE_BUILD__CHARLOCK_HOLMES="--with-cxxflags=-std=c++17" bundle install.

  1. Install dependencies with bundle install and yarn install --immutable
  2. Precompile the assets: RAILS_ENV=production bundle exec rails assets:precompile
  3. Restart all Mastodon processes.

When using Docker

  1. Restart all Mastodon processes.

Security Fixes

  • GHSA-3rhr-8phh-jm86 – TLS certificate verification was disabled when LDAP_TLS_NO_VERIFY=true; now enforced.

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track mastodon

Get notified when new releases ship.

Sign up free

About mastodon

Your self-hosted, globally interconnected microblogging community

All releases →

Related context

Related tools

Earlier breaking changes

  • v4.5.10 Requires assets recompilation for upgrade

Beta — feedback welcome: [email protected]