The ongetmissingevents function in handlers/federation.py in Matrix Synapse before 0.31.1 has a security bug in the getmissing_events federation API where event visibility rules were not applied correctly.
{ "binaries": [ { "binary_version": "0.24.0+dfsg-1ubuntu0.1~esm1", "binary_name": "matrix-synapse" } ], "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro" }