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

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.86%, higher than 59% of CVEs (2026-12-01)
- Published: 2022-08-19T20:35:09.000Z
- Modified: 2026-06-17T04:52:43.903Z
- Also known as: GHSA-grvv-h2f9-7v9c, GO-2022-0952
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- matrix-org gomatrixserverlib: < 0.9.3 for dendrite;  < 723fd49 for gomatrixserverlib
- github.com/matrix-org/dendrite (Go): before 0.9.3
- github.com/matrix-org/gomatrixserverlib (Go): before 0.0.0-20220815091947-723fd495dde8
- matrix dendrite: up to 0.9.2
- matrix gomatrixserverlib: no versions given

## Every score

- GitHub_M: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/matrix-org/gomatrixserverlib/security/advisories/GHSA-grvv-h2f9-7v9c> (third-party-advisory, web)
- <https://github.com/matrix-org/gomatrixserverlib/commit/723fd495dde835d078b9f2074b6b62c06dea4575> (fix, patch, third-party-advisory, web)
- <https://matrix.org/docs/guides/moderation/#power-levels> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-36009> (advisory)
- <https://github.com/matrix-org/gomatrixserverlib> (package)
- <https://pkg.go.dev/vuln/GO-2022-0952> (web)

## Sources

- CVE List: [CVE-2022-36009](https://www.cve.org/CVERecord?id=CVE-2022-36009), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-grvv-h2f9-7v9c](https://github.com/advisories/GHSA-grvv-h2f9-7v9c), CC-BY-4.0, modified 2023-11-08
- Go Vulnerability Database: [GO-2022-0952](https://pkg.go.dev/vuln/GO-2022-0952), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2022-36009](https://nvd.nist.gov/vuln/detail/CVE-2022-36009), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-36009 · Whole record: https://cve.day/CVE-2022-36009.json · Rebuilt by cve.day 2026-11-25T22:58:14.341Z
