Vulnerability · Published May 26, 2023 · Assigned by GitHub_M
CVE-2022-39335Synapse does not apply enough checks to servers requesting auth events of events in a room
Medium 5.0
In plain English
A medium-severity information exposure in synapse from matrix-org. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. The Matrix Federation API allows remote homeservers to request the authorization events in a room. This is necessary so that a homeserver receiving some events can validate that those events are legitimate and permitted in their room. However, in versions of Synapse up to and including 1.68.0, a Synapse homeserver answering a query for authorization events does not sufficiently check that the requesting server should be able to access them. The issue was patched in Synapse 1.69.0. Homeserver administrators are advised to upgrade.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | synapse | 1.69.0-r0 | ALPINE-CVE-2022-39335 |
| Alpine:v3.21 | synapse | 1.69.0-r0 | ALPINE-CVE-2022-39335 |
| Alpine:v3.22 | synapse | 1.69.0-r0 | ALPINE-CVE-2022-39335 |
| Alpine:v3.23 | synapse | 1.69.0-r0 | ALPINE-CVE-2022-39335 |
| Alpine:v3.24 | synapse | 1.69.0-r0 | ALPINE-CVE-2022-39335 |
| Debian:14 | matrix-synapse | 1.69.0-1 | DEBIAN-CVE-2022-39335 |
| PyPI | matrix-synapse | 1.69.0 | GHSA-45cj-f97f-ggwv |
| PyPI | matrix-synapse | 1.69.0 | PYSEC-2023-65 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| matrix-org | synapse | < 1.69.0 |
Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
References
- https://github.com/matrix-org/synapse/security/advisories/GHSA-45cj-f97f-ggwv x_refsource_CONFIRM
- https://github.com/matrix-org/synapse/issues/13288 x_refsource_MISC
- https://github.com/matrix-org/synapse/pull/13823 x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/T2MBNMZAFY4RCZL2VGBGAPKGB4JUPZVS/