Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. matrix-synapse
  4. ›
  5. CVE-2024-53863

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

December 3, 2024

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.

For a list of image formats, as well as decoding libraries and helper programs used, see the Pillow documentation.

References

  • github.com/advisories/GHSA-vp6v-whfm-rv3g
  • github.com/element-hq/synapse
  • github.com/element-hq/synapse/security/advisories/GHSA-vp6v-whfm-rv3g
  • nvd.nist.gov/vuln/detail/CVE-2024-53863

Code Behaviors & Features

Detect and mitigate CVE-2024-53863 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.120.1

Fixed versions

  • 1.120.1

Solution

Upgrade to version 1.120.1 or above.

Weakness

  • CWE-434: Unrestricted Upload of File with Dangerous Type

Source file

pypi/matrix-synapse/CVE-2024-53863.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:49 +0000.