CVE-2024-53863
Synapse can be forced to thumbnail unexpected file formats, invoking external, potentially untrustworthy decoders
Severity by source
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
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.20 | synapse | 1.120.1 |
| alpine 3.21 | synapse | 1.120.2-r0 |
| alpine 3.22 | synapse | 1.120.2-r0 |
| alpine 3.23 | synapse | 1.120.2-r0 |
| alpine 3.24 | synapse | 1.120.2-r0 |
| alpine edge | synapse | 1.120.2-r0 |
| pip::GitHub Security Advisory pip | matrix-synapse | 1.120.1 |
| rapidfort debian 12 | matrix-synapse | 0:1.121.0-1 |
| rapidfort debian 13 | matrix-synapse | 0:1.121.0-1 |
| rapidfort ubuntu 20.04 | matrix-synapse | no fix listed |
| rapidfort ubuntu 22.04 | matrix-synapse | no fix listed |
| rapidfort ubuntu 24.04 | matrix-synapse | no fix listed |
Show all 13 entries from 13 sources
| Source | Package | Fixed in |
|---|---|---|
| alpine 3.20 | synapse | 1.120.1 |
| alpine 3.21 | synapse | 1.120.2-r0 |
| alpine 3.22 | synapse | 1.120.2-r0 |
| alpine 3.23 | synapse | 1.120.2-r0 |
| alpine 3.24 | synapse | 1.120.2-r0 |
| alpine edge | synapse | 1.120.2-r0 |
| pip::GitHub Security Advisory pip | matrix-synapse | 1.120.1 |
| rapidfort debian 12 | matrix-synapse | 0:1.121.0-1 |
| rapidfort debian 13 | matrix-synapse | 0:1.121.0-1 |
| rapidfort ubuntu 20.04 | matrix-synapse | no fix listed |
| rapidfort ubuntu 22.04 | matrix-synapse | no fix listed |
| rapidfort ubuntu 24.04 | matrix-synapse | no fix listed |
| ubuntu 22.04 | matrix-synapse | no fix listed |
References
- https://github.com/element-hq/synapse
- https://github.com/element-hq/synapse/commit/b64a4e5fbbbf119b6c65aedf0d999b4237d55503
- https://github.com/element-hq/synapse/security/advisories/GHSA-vp6v-whfm-rv3g
- https://nvd.nist.gov/vuln/detail/CVE-2024-53863
- https://ubuntu.com/security/notices/USN-7444-1
- https://www.cve.org/CVERecord?id=CVE-2024-53863