CVE-2024-53863: Synapse can be forced to thumbnail unexpected file formats, invoking external, potentially untrustworthy decoders

CVE-2024-53863 affects 29 listed versions of Matrix Synapse in the Dawnsentry catalogue.

9.1CVSS critical
None knownexploitation
under 1%EPSS (next 30 days)
3 December 2024published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Matrix Synapse

29 of 82 listed versions are affected. Fixed in 1.120.1. The newest release, 1.166.0, is not affected.

1.106.0 1.106 1.105.1 1.95.1 1.94.0 1.93.0 1.85.0 1.74.0 1.69.0 1.68.0 1.62.0 1.61.1 1.53.0 1.47.1 1.41.1 1.33.2 1.28.0 1.27.0 1.25.0 1.23.1 1.21.0 1.20.0 1.5.0 0.99.3.1 0.34.0.1 0.33.3.1 0.31.2 0.31.1 0.28.1

What it is

Synapse is an open-source Matrix homeserver. In Synapse versions before 1.120.1, enabling the dynamic_thumbnails option or processing a specially crafted request could trigger the decoding and thumbnail generation of uncommon image formats, potentially invoking external tools like Ghostscript for processing. This significantly expands the attack surface in a historically vulnerable area, presenting a risk that far outweighs the benefit, particularly since these formats are rarely used on the open web or within the Matrix ecosystem. Synapse 1.120.1 addresses the issue by restricting thumbnail generation to images in the following widely used formats: PNG, JPEG, GIF, and WebP. This vulnerability is fixed in 1.120.1.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (NVD)

Published by GitHub on 3 December 2024. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2024-53863 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.