# CVE-2022-36009: Incorrect parsing of access level in gomatrixserverlib and dendrite

- Priority: **Routine**
- Reason: Not severe (CVSS 5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-08-19 · Modified: 2025-04-23
- Aliases: GHSA-grvv-h2f9-7v9c, GO-2022-0952
- Record: https://cvemate.com/vulnerability/CVE-2022-36009 · JSON: https://cvemate.com/vulnerability/CVE-2022-36009/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.859%, percentile 59.713%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- github.com/matrix-org dendrite (Go): \< 0.9.3
- github.com/matrix-org gomatrixserverlib (Go): \< 0.0.0-20220815091947-723fd495dde8
- matrix-org gomatrixserverlib: \< 0.9.3 for dendrite \| \< 723fd49 for gomatrixserverlib
- matrix dendrite: ≤ 0.9.2
- matrix gomatrixserverlib: na

## References

- <https://github.com/matrix-org/gomatrixserverlib/security/advisories/GHSA-grvv-h2f9-7v9c>
- <https://github.com/matrix-org/gomatrixserverlib/commit/723fd495dde835d078b9f2074b6b62c06dea4575>
- <https://matrix.org/docs/guides/moderation/#power-levels>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-36009>
- <https://github.com/matrix-org/gomatrixserverlib>
- <https://pkg.go.dev/vuln/GO-2022-0952>

---

Data as of 2026-12-05T09:58:05.235Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
