Vulnerabilities / CVE-2024-53863

critical

CVE-2024-53863

Synapse can be forced to thumbnail unexpected file formats, invoking external, potentially untrustworthy decoders

Published Modified CWE 434
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
GHSA8.2CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high), Ubuntu (medium).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.20synapse1.120.1
alpine 3.21synapse1.120.2-r0
alpine 3.22synapse1.120.2-r0
alpine 3.23synapse1.120.2-r0
alpine 3.24synapse1.120.2-r0
alpine edgesynapse1.120.2-r0
pip::GitHub Security Advisory pipmatrix-synapse1.120.1
rapidfort debian 12matrix-synapse0:1.121.0-1
rapidfort debian 13matrix-synapse0:1.121.0-1
rapidfort ubuntu 20.04matrix-synapseno fix listed
rapidfort ubuntu 22.04matrix-synapseno fix listed
rapidfort ubuntu 24.04matrix-synapseno fix listed
Show all 13 entries from 13 sources
SourcePackageFixed in
alpine 3.20synapse1.120.1
alpine 3.21synapse1.120.2-r0
alpine 3.22synapse1.120.2-r0
alpine 3.23synapse1.120.2-r0
alpine 3.24synapse1.120.2-r0
alpine edgesynapse1.120.2-r0
pip::GitHub Security Advisory pipmatrix-synapse1.120.1
rapidfort debian 12matrix-synapse0:1.121.0-1
rapidfort debian 13matrix-synapse0:1.121.0-1
rapidfort ubuntu 20.04matrix-synapseno fix listed
rapidfort ubuntu 22.04matrix-synapseno fix listed
rapidfort ubuntu 24.04matrix-synapseno fix listed
ubuntu 22.04matrix-synapseno fix listed

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.