{"answers":{"affected":"2 open source packages ship an affected version, including org.matrix.android:matrix-android-sdk2. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-39246 in the wild and no public exploit code.","fix":"Upgrade org.matrix.android:matrix-android-sdk2 to 1.5.1 or later.","what":"CVE-2022-39246 is a high-severity authentication bypass vulnerability in matrix-org matrix-android-sdk2, published on 28 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-39246 and fix it if it is affected.\n\nWhat it is: CVE-2022-39246 is a high-severity authentication bypass vulnerability in matrix-org matrix-android-sdk2, published on 28 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-39246 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.matrix.android:matrix-android-sdk2 (Maven): affected all versions; fixed in 1.5.1\n- org.matrix.android:matrix-android-sdk2 (Maven): affected all versions; fixed in 1.5.1\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-39246/ (Markdown: https://insights.sbomify.com/CVE-2022-39246/index.md)","id":"CVE-2022-39246","markdown":"https://insights.sbomify.com/CVE-2022-39246/index.md","name":"CVE-2022-39246","record":{"aliases":["GHSA-2pvj-p485-cp3m"],"analysis":{"component_type":"mobile_application","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Matrix Android SDK","requires_auth":"none","summary":"Attackers can impersonate users by exploiting permissive key forwarding, allowing them to send messages appearing to come from others.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"software_development_kit","vendor":"matrix"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-322","name":"Key Exchange without Entity Authentication"},{"id":"CWE-287","name":"Improper Authentication"}],"description":"matrix-android-sdk2 is the Matrix SDK for Android. Prior to version 1.5.1, an attacker cooperating with a malicious homeserver can construct messages appearing to have come from another person. Such messages will be marked with a grey shield on some platforms, but this may be missing in others. This attack is possible due to the key forwarding strategy implemented in the matrix-android-sdk2 that is too permissive. Starting with version 1.5.1, the default policy for accepting key forwards has been made more strict in the matrix-android-sdk2. The matrix-android-sdk2 will now only accept forwarded keys in response to previously issued requests and only from own, verified devices. The SDK now sets a `trusted` flag on the decrypted message upon decryption, based on whether the key used to decrypt the message was received from a trusted source. Clients need to ensure that messages decrypted with a key with `trusted = false` are decorated appropriately (for example, by showing a warning for such messages). As a workaroubnd, current users of the SDK can disable key forwarding in their forks using `CryptoService#enableKeyGossiping(enable: Boolean)`.","ecosystems":["Maven"],"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":"matrix-android-sdk2 vulnerable to impersonation via forwarded Megolm sessions","id":"CVE-2022-39246","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"auth_bypass","year":"2022"},"n_packages":2,"n_references":4,"next":{"headline":"matrix-android-sdk2 vulnerable to Olm/Megolm protocol confusion","id":"CVE-2022-39248"},"packages":[{"ecosystem":"Maven","fixed":["1.5.1"],"introduced":["0"],"last_affected":[],"package":"org.matrix.android:matrix-android-sdk2","purl":null,"source":"GHSA-2pvj-p485-cp3m"},{"ecosystem":"Maven","fixed":["1.5.1"],"introduced":["0"],"last_affected":[],"package":"org.matrix.android:matrix-android-sdk2","purl":"pkg:maven/org.matrix.android/matrix-android-sdk2","source":"GHSA-2pvj-p485-cp3m"}],"prev":{"headline":"Mist vulnerable to user providing a Sudo binary for authentication checks","id":"CVE-2022-39245"},"products":["matrix-android-sdk2"],"published":"2022-09-28","related":[{"cvss_score":8.6,"headline":"matrix-android-sdk2 vulnerable to Olm/Megolm protocol confusion","id":"CVE-2022-39248","kev_date_added":null,"published":"2022-09-28"},{"cvss_score":8.6,"headline":"Matrix iOS SDK vulnerable ton Olm/Megolm protocol confusion","id":"CVE-2022-39255","kev_date_added":null,"published":"2022-09-28"},{"cvss_score":7.5,"headline":"Matrix iOS SDK vulnerable to impersonation via forwarded Megolm sessions","id":"CVE-2022-39257","kev_date_added":null,"published":"2022-09-28"}],"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":"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":"Attackers can impersonate users by exploiting permissive key forwarding, allowing them to send messages appearing to come from others.","url":"https://insights.sbomify.com/CVE-2022-39246/"}