CVE-2022-39374
Synapse Denial of service due to incorrect application of event authorization rules during state resolution
Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. If Synapse and a malicious homeserver are both joined to the same room, the malicious homeserver can trick Synapse into accepting previously rejected events into its view of the current state of that room. This can be exploited in a way that causes all further messages and state changes sent in that room from the vulnerable homeserver to be rejected. This issue has been patched in version 1.68.0
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
6.5
Synapse Denial of service due to incorrect application of event authorization rules during state resolution
Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. If Synapse and a malicious homeserver are both joined to the same room, the malicious homeserver can trick Synapse into accepting previously rejected events into its view of the current state of that room. This can be exploited in a way that causes all further messages and state changes sent in that room from the vulnerable homeserver to be rejected. This issue has been patched in version 1.68.0
- Record
CVE-2022-39374- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
EUVDEUVD-2023-0138
6.5
Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. If Synapse and a malicious homeserver are both joined to the same room, the malicious homeserver can trick Synapse into accepting previously rejected events into its view of the current state of that room. This can be exploited in a way that causes all further messages and state changes sent in that room from the vulnerable homeserver to be rejected. This issue has been patched in version 1.68.0
- Record
EUVD-2023-0138- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-p9qp-c452-f9r7
7.1
Synapse Denial of service due to incorrect application of event authorization rules during state resolution
Impact
If Synapse and a malicious homeserver are both joined to the same room, the malicious homeserver can trick Synapse into accepting previously rejected events into its view of the current state of that room. This can be exploited in a way that causes all further messages and state changes sent in that room from the vulnerable homeserver to be rejected.
Synapse homeservers are affected by this issue if and only if they are joined to rooms which members of untrusted homeservers are joined or invited to.
- Synapse homeservers in rooms available over public federation are affected.
- Synapse homeservers with federation disabled are not affected.
- Synapse homeservers in a closed federation containing only trusted servers are not affected.
- Synapse homeservers which are only joined to rooms with federation disabled[^1] are not affected.
Patches
Administrators of homeservers with federation enabled are advised to upgrade to 1.68.0 or higher.
Workarounds
- Federation can be disabled by setting
federation_domain_whitelistto an empty list ([]). from the vulnerable homeserver to be rejected. This issue has been patched in version 1.68.0
References
[^1]: See m.federate in the m.room.create definition.
For more information
If you have any questions or comments about this advisory, e-mail us at [email protected].
- Record
GHSA-p9qp-c452-f9r7- CVSS 4.0
- 7.1 High
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
NVD
6.5
Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. If Synapse and a malicious homeserver are both joined to the same room, the malicious homeserver can trick Synapse into accepting previously rejected events into its view of the current state of that room. This can be exploited in a way that causes all further messages and state changes sent in that room from the vulnerable homeserver to be rejected. This issue has been patched in version 1.68.0
- Record
CVE-2022-39374- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
OSVALPINE-CVE-2022-39374
6.5
Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. If Synapse and a malicious homeserver are both joined to the same room, the malicious homeserver can trick Synapse into accepting previously rejected events into its view of the current state of that room. This can be exploited in a way that causes all further messages and state changes sent in that room from the vulnerable homeserver to be rejected. This issue has been patched in version 1.68.0
- Record
ALPINE-CVE-2022-39374- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
OSV
6.5
Synapse Denial of service due to incorrect application of event authorization rules during state resolution
Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. If Synapse and a malicious homeserver are both joined to the same room, the malicious homeserver can trick Synapse into accepting previously rejected events into its view of the current state of that room. This can be exploited in a way that causes all further messages and state changes sent in that room from the vulnerable homeserver to be rejected. This issue has been patched in version 1.68.0
- Record
CVE-2022-39374- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
Show 5 moreShow less
OSVDEBIAN-CVE-2022-39374
6.5
Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. If Synapse and a malicious homeserver are both joined to the same room, the malicious homeserver can trick Synapse into accepting previously rejected events into its view of the current state of that room. This can be exploited in a way that causes all further messages and state changes sent in that room from the vulnerable homeserver to be rejected. This issue has been patched in version 1.68.0
- Record
DEBIAN-CVE-2022-39374- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVGHSA-p9qp-c452-f9r7
7.1
Synapse Denial of service due to incorrect application of event authorization rules during state resolution
Impact
If Synapse and a malicious homeserver are both joined to the same room, the malicious homeserver can trick Synapse into accepting previously rejected events into its view of the current state of that room. This can be exploited in a way that causes all further messages and state changes sent in that room from the vulnerable homeserver to be rejected.
Synapse homeservers are affected by this issue if and only if they are joined to rooms which members of untrusted homeservers are joined or invited to.
- Synapse homeservers in rooms available over public federation are affected.
- Synapse homeservers with federation disabled are not affected.
- Synapse homeservers in a closed federation containing only trusted servers are not affected.
- Synapse homeservers which are only joined to rooms with federation disabled[^1] are not affected.
Patches
Administrators of homeservers with federation enabled are advised to upgrade to 1.68.0 or higher.
Workarounds
- Federation can be disabled by setting
federation_domain_whitelistto an empty list ([]). from the vulnerable homeserver to be rejected. This issue has been patched in version 1.68.0
References
[^1]: See m.federate in the m.room.create definition.
For more information
If you have any questions or comments about this advisory, e-mail us at [email protected].
- Record
GHSA-p9qp-c452-f9r7- CVSS 4.0
- 7.1 High
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N - CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-39374
6.5
Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. If Synapse and a malicious homeserver are both joined to the same room, the malicious homeserver can trick Synapse into accepting previously rejected events into its view of the current state of that room. This can be exploited in a way that causes all further messages and state changes sent in that room from the vulnerable homeserver to be rejected. This issue has been patched in version 1.68.0
- Record
UBUNTU-CVE-2022-39374- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVPYSEC-2023-66 No score
Synapse is an open-source Matrix homeserver written and maintained by the Matrix.org Foundation. If Synapse and a malicious homeserver are both joined to the same room, the malicious homeserver can trick Synapse into accepting previously rejected events into its view of the current state of that room. This can be exploited in a way that causes all further messages and state changes sent in that room from the vulnerable homeserver to be rejected. This issue has been patched in version 1.68.0
- Record
PYSEC-2023-66- Updated
- 2026-11-02
OSVUSN-7444-1 No score
matrix-synapse vulnerabilities
It was discovered that Synapse network policies could be bypassed via specially crafted URLs. An attacker could possibly use this issue to bypass authentication mechanisms. (CVE-2023-32683)
It was discovered that Synapse exposed cached device information. An attacker could possibly use this issue to gain access to sensitive information. (CVE-2023-43796)
It was discovered that Synapse could be tricked into rejecting state changes in rooms. An attacker could possibly use this issue to cause Synapse to stop functioning properly, resulting in a denial of service. This issue was only fixed in Ubuntu 20.04 LTS and Ubuntu 22.04 LTS. (CVE-2022-39374)
It was discovered that Synapse stored user credentials in a server's database temporarily. An attacker could possibly use this issue to gain access to sensitive information. This issue was only fixed in Ubuntu 22.04 LTS. (CVE-2023-41335)
It was discovered that Synapse could incorrectly respond to server authorization events. An attacker could possibly use this issue to bypass authentication mechanisms. This issue was only fixed in Ubuntu 22.04 LTS. (CVE-2022-39335)
It was discovered that Synapse could be manipulated to mark messages as read when they had not been viewed. An attacker could possibly use this issue to perform repudiation-based attacks. This issue was only fixed in Ubuntu 22.04 LTS. (CVE-2023-42453)
It was discovered that Synapse had several memory-related issues. An attacker could possibly use this issue to cause Synapse to crash, resulting in a denial of service. This issue was only fixed in Ubuntu 22.04 LTS. (CVE-2024-31208)
It was discovered that Synapse could run external tools due to a unchecked thumbnail rendering routine. An attacker could possibly use this issue to cause Synapse to crash, resulting in a denial of service, or execute arbitrary code. This issue was only fixed in Ubuntu 22.04 LTS. (CVE-2024-53863)
- Record
USN-7444-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
matrix-synapsePyPI |
1.62.0 up to 1.68.0rc1 | 1.68.0rc1 |
synapseAlpine:v3.18 |
1.62.0 up to 1.70.1-r0 | 1.70.1-r0 |
synapseAlpine:v3.19 |
1.62.0 up to 1.68.0-r0 | 1.68.0-r0 |
synapseAlpine:v3.20 |
1.62.0 up to 1.68.0-r0 | 1.68.0-r0 |
synapseAlpine:v3.21 |
1.62.0 up to 1.68.0-r0 | 1.68.0-r0 |
synapseAlpine:v3.22 |
1.62.0 up to 1.68.0-r0 | 1.68.0-r0 |
synapseAlpine:v3.23 |
1.62.0 up to 1.68.0-r0 | 1.68.0-r0 |
synapseAlpine:v3.24 |
1.62.0 up to 1.68.0-r0 | 1.68.0-r0 |
matrix-synapsePyPI |
1.62.0 up to 1.68.0rc1, plus listed versions 1.63.01.63.0rc11.63.11.64.01.64.0rc1 Show 9 moreShow less1.64.0rc21.65.01.65.0rc11.65.0rc21.66.01.66.0rc11.66.0rc21.67.01.67.0rc1 |
1.68.0rc1 |
matrix-synapsePyPI |
1.62.0 up to 1.68.0, plus listed versions 1.63.01.63.0rc11.63.11.64.01.64.0rc1 Show 11 moreShow less1.64.0rc21.65.01.65.0rc11.65.0rc21.66.01.66.0rc11.66.0rc21.67.01.67.0rc11.68.0rc11.68.0rc2 |
1.68.0 |
Show 5 moreShow less
| Package | Affected | Fixed |
|---|---|---|
matrix-synapseUbuntu:Pro:20.04:LTS |
before 1.11.0-1ubuntu0.1~esm2, plus listed versions 1.3.0-11.4.0-11.5.0-11.5.1-11.6.0-1 Show 11 moreShow less1.6.1-11.7.0-21.7.1-11.7.2-11.7.3-11.8.0-11.9.0-11.9.1-11.10.0-11.10.0-21.11.0-1 |
1.11.0-1ubuntu0.1~esm2 |
matrix-synapseUbuntu:Pro:22.04:LTS |
before 1.53.0-1ubuntu0.1~esm2, plus listed versions 1.39.0-11.47.0-21.47.1-11.48.0-11.49.0-1 Show 6 moreShow less1.49.2-11.50.1-11.50.2-11.51.0-11.52.0-11.53.0-1 |
1.53.0-1ubuntu0.1~esm2 |
matrix-synapseUbuntu:Pro:18.04:LTS From an advisory covering 8 CVEs |
before 0.24.0+dfsg-1ubuntu0.1~esm4, plus listed versions 0.19.2+dfsg-60.24.0+dfsg-10.24.0+dfsg-1ubuntu0.1~esm1 |
0.24.0+dfsg-1ubuntu0.1~esm4 |
matrix-synapseUbuntu:Pro:20.04:LTS From an advisory covering 8 CVEs |
before 1.11.0-1ubuntu0.1~esm2, plus listed versions 1.3.0-11.4.0-11.5.0-11.5.1-11.6.0-1 Show 11 moreShow less1.6.1-11.7.0-21.7.1-11.7.2-11.7.3-11.8.0-11.9.0-11.9.1-11.10.0-11.10.0-21.11.0-1 |
1.11.0-1ubuntu0.1~esm2 |
matrix-synapseUbuntu:Pro:22.04:LTS From an advisory covering 8 CVEs |
before 1.53.0-1ubuntu0.1~esm2, plus listed versions 1.39.0-11.47.0-21.47.1-11.48.0-11.49.0-1 Show 6 moreShow less1.49.2-11.50.1-11.50.2-11.51.0-11.52.0-11.53.0-1 |
1.53.0-1ubuntu0.1~esm2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| affected | ||
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-39374 is a medium vulnerability (CVSS 6.5) in Element-hq Synapse, published May 24, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.94%, the 61st percentile. Fixed in matrix-synapse 1.68.0rc1.
References
github.com/matrix-org/synapse/security/advisories/GHSA-p9qp-c452-f9r7
github.com/matrix-org/synapse/pull/13723
lists.fedoraproject.org/archives/list/[email protected]/message/UJIJRP5ZH6B3KGFLHCAKR2IX2Y4Z25QD
nvd.nist.gov/vuln/detail/CVE-2022-39374
github.com/pypa/advisory-database/tree/main/vulns/matrix-synapse/PYSEC-2023-66.yaml
github.com/matrix-org/synapse/commit/b73cbb82157d9666e8d667733afebc0d09ed858c
Show 16 moreShow less
github.com/advisories/GHSA-p9qp-c452-f9r7
security.alpinelinux.org/vuln/CVE-2022-39374
github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39374.json
security-tracker.debian.org/tracker/CVE-2022-39374
github.com/matrix-org/synapse
ubuntu.com/security/CVE-2022-39374
bugzilla.redhat.com/show_bug.cgi?id=2209956
cve.org/CVERecord?id=CVE-2022-39374
ubuntu.com/security/notices/USN-7444-1
ubuntu.com/security/CVE-2022-39335
ubuntu.com/security/CVE-2023-32683
ubuntu.com/security/CVE-2023-41335
ubuntu.com/security/CVE-2023-42453
ubuntu.com/security/CVE-2023-43796
ubuntu.com/security/CVE-2024-31208
ubuntu.com/security/CVE-2024-53863