CVE-2022-36009 json
Incorrect parsing of access level in gomatrixserverlib and dendrite
published 2022-08-19 4 y ago modified 2026-06-17 4 mo ago also GHSA-grvv-h2f9-7v9c , GO-2022-0952 , EUVD-2022-6558
- cvss
- 5.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
gomatrixserverlib is a Go library for matrix protocol federation. Dendrite is a Matrix homeserver written in Go, an alternative to Synapse. The power level parsing within gomatrixserverlib was failing to parse the `"events_default"` key of the `m.room.power_levels` event, defaulting the event default power level to zero in all cases. Power levels are the matrix terminology for user access level. In rooms where the `"events_default"` power level had been changed, this could result in events either being incorrectly authorised or rejected by Dendrite servers. gomatrixserverlib contains a fix as of commit `723fd49` and Dendrite 0.9.3 has been updated accordingly. Matrix rooms where the `"events_default"` power level has not been changed from the default of zero are not vulnerable. Users are advised to upgrade. There are no known workarounds for this issue.
Patch / fix
- go github.com/matrix-org/dendrite 0.9.3
- go github.com/matrix-org/gomatrixserverlib 0.0.0-20220815091947-723fd495dde8
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.86% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.0 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 5.0 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/matrix-org/dendrite | <0.9.3 |
0.9.3 |
| go | github.com/matrix-org/gomatrixserverlib | <0.0.0-20220815091947-723fd495dde8 |
0.0.0-20220815091947-723fd495dde8 |
Affected products
- matrix-org gomatrixserverlib
Classification
- Weakness
-
- CWE-863 Incorrect Authorization
References
-
github.com
/matrix-org/gomatrixserverlib/commit/723fd495dde835d078b9f2074b6b62c06dea4575
web, patch, third-party-advisory
-
matrix.org
/docs/guides/moderation/#power-levels
web, vendor-advisory
-
github.com
/matrix-org/gomatrixserverlib/security/advisories/GHSA-grvv-h2f9-7v9c
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-36009
advisory
-
github.com
/matrix-org/gomatrixserverlib
package
-
pkg.go.dev
/vuln/GO-2022-0952
web
Sources
- CVE List CVE-2022-36009
- GitHub Advisory GHSA-grvv-h2f9-7v9c
- NVD CVE-2022-36009
- OSV GO-2022-0952
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.