{"id":"GHSA-grvv-h2f9-7v9c","summary":"gomatrixserverlib and Dendrite vulnerable to incorrect parsing of the event default power level in event auth","details":"### 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).","aliases":["CVE-2022-36009","GO-2022-0952"],"modified":"2023-11-01T04:59:27.884265Z","published":"2022-08-30T19:54:34Z","database_specific":{"github_reviewed_at":"2022-08-30T19:54:34Z","nvd_published_at":"2022-08-19T21:15:00Z","cwe_ids":["CWE-863"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/matrix-org/gomatrixserverlib/security/advisories/GHSA-grvv-h2f9-7v9c"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36009"},{"type":"WEB","url":"https://github.com/matrix-org/gomatrixserverlib/commit/723fd495dde835d078b9f2074b6b62c06dea4575"},{"type":"PACKAGE","url":"https://github.com/matrix-org/gomatrixserverlib"},{"type":"WEB","url":"https://matrix.org/docs/guides/moderation/#power-levels"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-0952"}],"affected":[{"package":{"name":"github.com/matrix-org/dendrite","ecosystem":"Go","purl":"pkg:golang/github.com/matrix-org/dendrite"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.9.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-grvv-h2f9-7v9c/GHSA-grvv-h2f9-7v9c.json"}},{"package":{"name":"github.com/matrix-org/gomatrixserverlib","ecosystem":"Go","purl":"pkg:golang/github.com/matrix-org/gomatrixserverlib"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20220815091947-723fd495dde8"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-grvv-h2f9-7v9c/GHSA-grvv-h2f9-7v9c.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L"}]}