{"answers":{"affected":"5 open source packages ship an affected version, including github.com/matrix-org/gomatrixserverlib and github.com/matrix-org/dendrite. It affects 2 products.","exploited":"There is no known exploitation of CVE-2022-36009 in the wild and no public exploit code.","fix":"Upgrade github.com/matrix-org/gomatrixserverlib to 0.0.0-20220815091947-723fd495dde8 or later.","what":"CVE-2022-36009 is a medium-severity missing authorization vulnerability in matrix-org gomatrixserverlib, published on 19 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-36009 and fix it if it is affected.\n\nWhat it is: CVE-2022-36009 is a medium-severity missing authorization vulnerability in matrix-org gomatrixserverlib, published on 19 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-36009 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/matrix-org/gomatrixserverlib (Go): affected all versions; fixed in 0.0.0-20220815091947-723fd495dde8\n- github.com/matrix-org/gomatrixserverlib (Go): affected all versions; fixed in 0.0.0-20220815091947-723fd495dde8\n- github.com/matrix-org/gomatrixserverlib (Go): affected all versions; fixed in 0.0.0-20220815091947-723fd495dde8\n- github.com/matrix-org/dendrite (Go): affected all versions; fixed in 0.9.3\n- github.com/matrix-org/dendrite (Go): affected all versions; fixed in 0.9.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-36009/ (Markdown: https://insights.sbomify.com/CVE-2022-36009/index.md)","id":"CVE-2022-36009","markdown":"https://insights.sbomify.com/CVE-2022-36009/index.md","name":"CVE-2022-36009","record":{"aliases":["GHSA-grvv-h2f9-7v9c","GO-2022-0952"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Matrix homeserver library","requires_auth":"low_privilege","summary":"Incorrect power level parsing in gomatrixserverlib allows unauthorized event posting or rejection in Matrix rooms with non-default settings.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"dendrite","vendor":"matrix"},{"product":"gomatrixserverlib","vendor":"matrix"}],"cvss":{"score":5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Incorrect parsing of access level in gomatrixserverlib and dendrite","id":"CVE-2022-36009","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"missing_authorization","year":"2022"},"n_packages":5,"n_references":3,"next":{"headline":"Arbitrary code execution via function parsing in react-editable-json-tree","id":"CVE-2022-36010"},"packages":[{"ecosystem":"Go","fixed":["0.9.3"],"introduced":["0"],"last_affected":[],"package":"github.com/matrix-org/dendrite","purl":null,"source":"GHSA-grvv-h2f9-7v9c"},{"ecosystem":"Go","fixed":["0.9.3"],"introduced":["0"],"last_affected":[],"package":"github.com/matrix-org/dendrite","purl":"pkg:golang/github.com/matrix-org/dendrite","source":"GHSA-grvv-h2f9-7v9c"},{"ecosystem":"Go","fixed":["0.0.0-20220815091947-723fd495dde8"],"introduced":["0"],"last_affected":[],"package":"github.com/matrix-org/gomatrixserverlib","purl":null,"source":"GHSA-grvv-h2f9-7v9c"},{"ecosystem":"Go","fixed":["0.0.0-20220815091947-723fd495dde8"],"introduced":["0"],"last_affected":[],"package":"github.com/matrix-org/gomatrixserverlib","purl":"pkg:golang/github.com/matrix-org/gomatrixserverlib","source":"GHSA-grvv-h2f9-7v9c"},{"ecosystem":"Go","fixed":["0.0.0-20220815091947-723fd495dde8"],"introduced":["0"],"last_affected":[],"package":"github.com/matrix-org/gomatrixserverlib","purl":"pkg:golang/github.com/matrix-org/gomatrixserverlib","source":"GO-2022-0952"}],"prev":{"headline":"Message length overflow in frontier","id":"CVE-2022-36008"},"products":["gomatrixserverlib"],"published":"2022-08-19","related":[{"cvss_score":7.3,"headline":"Signature checks not applied to some retrieved missing events","id":"CVE-2022-39200","kev_date_added":null,"published":"2022-09-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["matrix-org"]},"summary":"Incorrect power level parsing in gomatrixserverlib allows unauthorized event posting or rejection in Matrix rooms with non-default settings.","url":"https://insights.sbomify.com/CVE-2022-36009/"}