Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1ncnZ2LWgyZjktN3Y5Y84AAuiv
gomatrixserverlib and Dendrite vulnerable to incorrect parsing of the event default power level in event auth
Impact
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.
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.
Patches
gomatrixserverlib contains a fix as of commit 723fd49
and Dendrite 0.9.3 has been updated accordingly.
Workarounds
Matrix rooms where the "events_default"
power level has not been changed from the default of zero are not vulnerable.
For more information
If you have any questions or comments about this advisory, e-mail us at [email protected].
Permalink: https://github.com/advisories/GHSA-grvv-h2f9-7v9cJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1ncnZ2LWgyZjktN3Y5Y84AAuiv
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 1 year ago
Updated: about 1 year ago
CVSS Score: 5.0
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
Identifiers: GHSA-grvv-h2f9-7v9c, CVE-2022-36009
References:
- https://github.com/matrix-org/gomatrixserverlib/security/advisories/GHSA-grvv-h2f9-7v9c
- https://nvd.nist.gov/vuln/detail/CVE-2022-36009
- https://github.com/matrix-org/gomatrixserverlib/commit/723fd495dde835d078b9f2074b6b62c06dea4575
- https://matrix.org/docs/guides/moderation/#power-levels
- https://pkg.go.dev/vuln/GO-2022-0952
- https://github.com/advisories/GHSA-grvv-h2f9-7v9c
Blast Radius: 6.8
Affected Packages
go:github.com/matrix-org/gomatrixserverlib
Dependent packages: 17Dependent repositories: 23
Downloads:
Affected Version Ranges: < 0.0.0-20220815091947-723fd495dde8
Fixed in: 0.0.0-20220815091947-723fd495dde8
All affected versions: 0.0.0-20220128100033-8d79e0c35e32
All unaffected versions:
go:github.com/matrix-org/dendrite
Dependent packages: 5Dependent repositories: 2
Downloads:
Affected Version Ranges: < 0.9.3
Fixed in: 0.9.3
All affected versions: 0.1.0, 0.2.0, 0.2.1, 0.3.0, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9, 0.3.10, 0.3.11, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.6.0, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.7.0, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.8.6, 0.8.7, 0.8.8, 0.8.9, 0.9.0, 0.9.1, 0.9.2
All unaffected versions: 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 0.9.8, 0.9.9, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.10.5, 0.10.6, 0.10.7, 0.10.8, 0.10.9, 0.11.0, 0.11.1, 0.12.0, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.13.4, 0.13.5, 0.13.6, 0.13.7