{"answers":{"affected":"3 open source packages ship an affected version, including github.com/matrix-org/dendrite. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-39200 in the wild and no public exploit code.","fix":"Upgrade github.com/matrix-org/dendrite to 0.9.8 or later.","what":"CVE-2022-39200 is a high-severity vulnerability in matrix-org dendrite, published on 12 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-39200 and fix it if it is affected.\n\nWhat it is: CVE-2022-39200 is a high-severity vulnerability in matrix-org dendrite, published on 12 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-39200 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/matrix-org/dendrite (Go): affected all versions; fixed in 0.9.8\n- github.com/matrix-org/dendrite (Go): affected all versions; fixed in 0.9.8\n- github.com/matrix-org/dendrite (Go): affected all versions; fixed in 0.9.8\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-39200/ (Markdown: https://insights.sbomify.com/CVE-2022-39200/index.md)","id":"CVE-2022-39200","markdown":"https://insights.sbomify.com/CVE-2022-39200/index.md","name":"CVE-2022-39200","record":{"aliases":["GHSA-pfw4-xjgm-267c","GO-2022-0989"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Matrix homeserver","requires_auth":"none","summary":"A remote homeserver can inject invalid or modified events into Dendrite via the get_missing_events endpoint due to missing signature verification.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"dendrite","vendor":"matrix"}],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"description":"Dendrite is a Matrix homeserver written in Go. In affected versions events retrieved from a remote homeserver using the `/get_missing_events` path did not have their signatures verified correctly. This could potentially allow a remote homeserver to provide invalid/modified events to Dendrite via this endpoint. Note that this does not apply to events retrieved through other endpoints (e.g. `/event`, `/state`) as they have been correctly verified. Homeservers that have federation disabled are not vulnerable. The problem has been fixed in Dendrite 0.9.8. 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":"Signature checks not applied to some retrieved missing events","id":"CVE-2022-39200","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"security_feature_bypass","year":"2022"},"n_packages":3,"n_references":2,"next":{"headline":"Data source and plugin proxy endpoints could leak the authentication cookie to some destination plugins","id":"CVE-2022-39201"},"packages":[{"ecosystem":"Go","fixed":["0.9.8"],"introduced":["0"],"last_affected":[],"package":"github.com/matrix-org/dendrite","purl":null,"source":"GHSA-pfw4-xjgm-267c"},{"ecosystem":"Go","fixed":["0.9.8"],"introduced":["0"],"last_affected":[],"package":"github.com/matrix-org/dendrite","purl":"pkg:golang/github.com/matrix-org/dendrite","source":"GHSA-pfw4-xjgm-267c"},{"ecosystem":"Go","fixed":["0.9.8"],"introduced":["0"],"last_affected":[],"package":"github.com/matrix-org/dendrite","purl":"pkg:golang/github.com/matrix-org/dendrite","source":"GO-2022-0989"}],"prev":{"headline":"Lack of proper validation in immudb","id":"CVE-2022-39199"},"products":["dendrite"],"published":"2022-09-12","related":[{"cvss_score":5,"headline":"Incorrect parsing of access level in gomatrixserverlib and dendrite","id":"CVE-2022-36009","kev_date_added":null,"published":"2022-08-19"}],"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["matrix-org"]},"summary":"A remote homeserver can inject invalid or modified events into Dendrite via the get_missing_events endpoint due to missing signature verification.","url":"https://insights.sbomify.com/CVE-2022-39200/"}