Rapid7 Vulnerability & Exploit Database

FreeBSD: VID-27AA2253-4C72-11EC-B6B9-E86A64CACA56 (CVE-2021-41281): py-matrix-synapse -- several vulnerabilities

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

FreeBSD: VID-27AA2253-4C72-11EC-B6B9-E86A64CACA56 (CVE-2021-41281): py-matrix-synapse -- several vulnerabilities

Severity
4
CVSS
(AV:N/AC:M/Au:N/C:N/I:P/A:N)
Published
11/18/2021
Created
11/08/2022
Added
11/04/2022
Modified
11/04/2022

Description

Synapse is a package for Matrix homeservers written in Python 3/Twisted. Prior to version 1.47.1, Synapse instances with the media repository enabled can be tricked into downloading a file from a remote server into an arbitrary directory. No authentication is required for the affected endpoint. The last 2 directories and file name of the path are chosen randomly by Synapse and cannot be controlled by an attacker, which limits the impact. Homeservers with the media repository disabled are unaffected. Homeservers with a federation whitelist are also unaffected, since Synapse will check the remote hostname, including the trailing `../`s, against the whitelist. Server administrators should upgrade to 1.47.1 or later. Server administrators using a reverse proxy could, at the expense of losing media functionality, may block the certain endpoints as a workaround. Alternatively, non-containerized deployments can be adapted to use the hardened systemd config.

Solution(s)

  • freebsd-upgrade-package-py310-matrix-synapse
  • freebsd-upgrade-package-py36-matrix-synapse
  • freebsd-upgrade-package-py37-matrix-synapse
  • freebsd-upgrade-package-py38-matrix-synapse
  • freebsd-upgrade-package-py39-matrix-synapse

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;