{"schemaVersion":4,"id":"CVE-2022-36009","aliases":["GHSA-grvv-h2f9-7v9c","GO-2022-0952"],"status":"published","duplicateOf":null,"title":"Incorrect parsing of access level in gomatrixserverlib and dendrite","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.","dates":{"published":"2022-08-19T20:35:09.000Z","modified":"2025-04-23T17:48:13.250Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","exploitability":4.1,"impact":5.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00859,"percentile":0.59713,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":0.025000000000000022,"baselineDate":"2026-11-04T00:00:00.000Z","baselineScore":0.00834},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00816,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-23T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-24T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-25T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-26T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-27T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-28T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-29T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-30T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-31T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-11-01T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-11-02T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-11-03T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-11-04T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00859,"percentile":0.59713}],"last30":[{"date":"2026-11-04T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-11-05T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-06T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-07T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-08T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-09T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-10T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00865,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00859,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00859,"percentile":0.59713}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-863","name":"Incorrect Authorization","description":"The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/863.html"}],"affected":[{"vendor":"github.com/matrix-org","product":"dendrite","name":"github.com/matrix-org/dendrite","label":"dendrite","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/matrix-org/dendrite","purlType":"golang","versions":[{"text":"< 0.9.3","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.9.3","endInclusive":false}}],"versionsText":"< 0.9.3","eol":null,"hubHref":null},{"vendor":"github.com/matrix-org","product":"gomatrixserverlib","name":"github.com/matrix-org/gomatrixserverlib","label":"gomatrixserverlib","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/matrix-org/gomatrixserverlib","purlType":"golang","versions":[{"text":"< 0.0.0-20220815091947-723fd495dde8","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.0.0-20220815091947-723fd495dde8","endInclusive":false}}],"versionsText":"< 0.0.0-20220815091947-723fd495dde8","eol":null,"hubHref":null},{"vendor":"matrix-org","product":"gomatrixserverlib","name":"gomatrixserverlib","label":"gomatrixserverlib","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.9.3 for dendrite","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.9.3 for dendrite","endInclusive":false}},{"text":"< 723fd49 for gomatrixserverlib","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"723fd49 for gomatrixserverlib","endInclusive":false}}],"versionsText":"< 0.9.3 for dendrite | < 723fd49 for gomatrixserverlib","eol":null,"hubHref":"/vendor/matrix-org/gomatrixserverlib"},{"vendor":"matrix","product":"dendrite","name":"dendrite","label":"dendrite","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 0.9.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"0.9.2","endInclusive":true}}],"versionsText":"≤ 0.9.2","eol":null,"hubHref":"/vendor/matrix/dendrite"},{"vendor":"matrix","product":"gomatrixserverlib","name":"gomatrixserverlib","label":"gomatrixserverlib","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"unspecified"}}],"versionsText":"na","eol":null,"hubHref":"/vendor/matrix/gomatrixserverlib"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/matrix-org/gomatrixserverlib/security/advisories/GHSA-grvv-h2f9-7v9c","label":"github.com/matrix-org/gomatrixserverlib/security/advisories/GHSA-grvv-h2f9-7v9c","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Third Party Advisory"]},{"url":"https://github.com/matrix-org/gomatrixserverlib/commit/723fd495dde835d078b9f2074b6b62c06dea4575","label":"github.com/matrix-org/gomatrixserverlib/commit/723fd495dde835d078b9f2074b6b62c06dea4575","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://matrix.org/docs/guides/moderation/#power-levels","label":"matrix.org/docs/guides/moderation/","hostname":"matrix.org","tags":["X Refsource MISC","WEB","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36009","label":"nvd.nist.gov/vuln/detail/CVE-2022-36009","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/matrix-org/gomatrixserverlib","label":"github.com/matrix-org/gomatrixserverlib","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0952","label":"pkg.go.dev/vuln/GO-2022-0952","hostname":"pkg.go.dev","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-08-19T20:35:09.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T17:48:13.250Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 5, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,50],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00859,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2025-04-23T17:48:13.250Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1","headline":true},{"type":"cvss","source":"osv_go","date":"2025-04-23T17:48:13.250Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},{"type":"cvss","source":"nvd","date":"2025-04-23T17:48:13.250Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2025-04-23T14:01:56.133Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00859,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T06:02:28.822Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T06:02:29.295Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T06:02:29.506Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T06:00:56.363Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T06:02:27.202Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T06:02:26.240Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T06:17:50.563Z","stale":false,"partial":false}}