Skip to content

x/vulndb: potential Go vuln in github.com/matrix-org/gomatrixserverlib: CVE-2022-36009 #952

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GoVulnBot opened this issue Aug 19, 2022 · 3 comments
Assignees

Comments

@GoVulnBot
Copy link

CVE-2022-36009 references github.com/matrix-org/gomatrixserverlib, which may be a Go module.

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.

Links:

See doc/triage.md for instructions on how to triage this report.

packages:
  - module: github.com/matrix-org/gomatrixserverlib
    package: gomatrixserverlib
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.
cves:
  - CVE-2022-36009
links:
    commit: https://github.com/matrix-org/gomatrixserverlib/commit/723fd495dde835d078b9f2074b6b62c06dea4575
    context:
      - https://github.com/matrix-org/gomatrixserverlib/security/advisories/GHSA-grvv-h2f9-7v9c
      - https://matrix.org/docs/guides/moderation/#power-levels

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/425082 mentions this issue: x/vulndb: add data/reports/GO-2022-0952.yaml for CVE-2022-36009

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/425085 mentions this issue: x/vulndb: add data/reports/GO-2022-0952.yaml for CVE-2022-36009

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/427981 mentions this issue: data/reports: add missing ghsa in GO-2022-0952.yaml

gopherbot pushed a commit that referenced this issue Sep 2, 2022
For #952

Change-Id: I22c4ab0c61f1f2d07af08e0064c76dd6cd751980
Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/427981
Reviewed-by: Julie Qiu <[email protected]>
Reviewed-by: Tatiana Bradley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants