{"id":"CVE-2022-36009","aliases":["CVE-2022-36009","GHSA-grvv-h2f9-7v9c","GO-2022-0952"],"related":[],"kind":"vulnerability","state":"published","title":"Incorrect parsing of access level in gomatrixserverlib and dendrite","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe 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.\n\nIn rooms where the `\"events_default\"` power level had been changed, this could result in events either being incorrectly authorised or rejected by Dendrite servers.\n\n### Patches\n\ngomatrixserverlib contains a fix as of commit `723fd49` and Dendrite 0.9.3 has been updated accordingly.\n\n### Workarounds\n\nMatrix rooms where the `\"events_default\"` power level has not been changed from the default of zero are not vulnerable.\n\n### For more information\n\nIf you have any questions or comments about this advisory, e-mail us at [security@matrix.org](mailto:security@matrix.org).","format":"markdown","source":"ghsa"},{"lang":"en","text":"Power level parsing does not parse the \"events_default\" key of the m.room.power_levels event, setting the event default power level to zero in all cases. This can cause events to be improperly accepted or rejected in rooms where the event_default power level has been changed.","format":"markdown","source":"go"},{"lang":"es","text":"gomatrixserverlib es una biblioteca Go para la federación de protocolos de Matrix. Dendrite es un servidor doméstico de Matrix escrito en Go, una alternativa a Synapse. El análisis de los niveles de potencia dentro de gomatrixserverlib fallaba al analizar la clave \"\"events_default\" del evento \"m.room.power_levels\", poniendo a cero el nivel de potencia por defecto del evento en todos los casos. Los niveles de potencia son la terminología de la matriz para el nivel de acceso del usuario. En las salas en las que el nivel de potencia \"\"events_default\"\" había sido cambiado, esto podía resultar en que los eventos fueran incorrectamente autorizados o rechazados por los servidores Dendrite. gomatrixserverlib contiene una corrección desde el commit \"723fd49\" y Dendrite versión 0.9.3 ha sido actualizado en consecuencia. Las salas de matrices en las que el nivel de potencia \"\"events_default\"\" no ha sido cambiado del valor predeterminado de cero no son vulnerables. Es recomendado a usuarios actualizar. No se presentan mitigaciones conocidas para este problema.","source":"nvd"}],"published":"2022-08-19T20:35:09.000Z","modified":"2026-06-17T04:52:43.903Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"version":"< 0.9.3 for dendrite","status":"affected"},{"version":" < 723fd49 for gomatrixserverlib","status":"affected"}],"vendor":"matrix-org","product":"gomatrixserverlib","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.9.3"}],"ecosystem":"Go","package":"github.com/matrix-org/dendrite","purl":"pkg:golang/github.com/matrix-org/dendrite","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20220815091947-723fd495dde8"}],"ecosystem":"Go","package":"github.com/matrix-org/gomatrixserverlib","purl":"pkg:golang/github.com/matrix-org/gomatrixserverlib","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20220815091947-723fd495dde8"}],"ecosystem":"Go","package":"github.com/matrix-org/gomatrixserverlib","purl":"pkg:golang/github.com/matrix-org/gomatrixserverlib","source":"go"},{"ranges":[{"status":"affected","lastAffected":"0.9.2"}],"vendor":"matrix","product":"dendrite","cpe":"cpe:2.3:a:matrix:dendrite:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"matrix","product":"gomatrixserverlib","cpe":"cpe:2.3:a:matrix:gomatrixserverlib:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/matrix-org/gomatrixserverlib/security/advisories/GHSA-grvv-h2f9-7v9c","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/matrix-org/gomatrixserverlib/commit/723fd495dde835d078b9f2074b6b62c06dea4575","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://matrix.org/docs/guides/moderation/#power-levels","tags":["vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36009","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/matrix-org/gomatrixserverlib","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0952","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T14:01:56.133Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-36009","url":"https://www.cve.org/CVERecord?id=CVE-2022-36009","licence":"CVE Terms of Use","modified":"2025-04-23T17:48:13.250Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-grvv-h2f9-7v9c","url":"https://github.com/advisories/GHSA-grvv-h2f9-7v9c","licence":"CC-BY-4.0","modified":"2023-11-08T04:09:57.073Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0952","url":"https://pkg.go.dev/vuln/GO-2022-0952","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-36009","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36009","licence":"Public domain","modified":"2026-06-17T04:52:43.903Z"}],"updatedAt":"2026-11-25T22:58:14.341Z","epss":{"score":0.00859,"percentile":0.59541,"date":"2026-12-01T12:00:22.000Z"}}