CVE-2024-52805, CVE-2024-52815, CVE-2024-53863, CVE-2024-53867 Backport fixes from v1.120.1

Source: Fedora 41: matrix-synapse 2024-4cadba7a29 Security Advisory Updates