{"id":"CVE-2022-36009","published":"2022-08-19T20:35:09Z","modified":"2025-04-23T17:48:13Z","title":"Incorrect parsing of access level in gomatrixserverlib and dendrite","vendor":"matrix-org","product":"gomatrixserverlib","tier":"tail","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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00859,"percentile":0.59341,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/matrix-org/gomatrixserverlib/security/advisories/GHSA-grvv-h2f9-7v9c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/gomatrixserverlib/commit/723fd495dde835d078b9f2074b6b62c06dea4575","tags":["x_refsource_MISC"]},{"url":"https://matrix.org/docs/guides/moderation/#power-levels","tags":["x_refsource_MISC"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":11.87},{"name":"CVSS severity","points":3.5}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"gomatrixserverlib","versions":["< 0.9.3 for dendrite","< 723fd49 for gomatrixserverlib"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:01:56.133510Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/matrix-org/dendrite","vulnerableRanges":["<0.9.3"],"patched":["0.9.3"],"from":["GHSA-grvv-h2f9-7v9c"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/matrix-org/gomatrixserverlib","vulnerableRanges":["<0.0.0-20220815091947-723fd495dde8"],"patched":["0.0.0-20220815091947-723fd495dde8"],"from":["GHSA-grvv-h2f9-7v9c","GO-2022-0952"],"provenance":"source"}],"summary":{"text":"The power level parsing in gomatrixserverlib, the Go library for Matrix federation that Dendrite uses, fails to read the \"events_default\" key of the m.room.power_levels event and always treats the default event power level as zero. An attacker with network access and low privileges can exploit this in rooms where \"events_default\" has been changed from zero, as Dendrite servers may then wrongly authorise or reject events, and no workaround exists beyond upgrading.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:27Z"},"euvd":{"id":"EUVD-2022-6558","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-36009","published":"2022-08-19","fixed":"0.9.3","kev":false},{"cve":"CVE-2022-39200","published":"2022-09-12","fixed":"0.9.8","kev":false,"link":{"from":"CVE-2022-36009","to":"CVE-2022-39200","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/matrix-org/dendrite","fromFixed":"0.9.3","toFixed":"0.9.8","daysApart":24},{"kind":"similar","provenance":"machine","score":0.36,"basis":"same package + description similarity"}]}}],"package":"Go:github.com/matrix-org/dendrite"}}