{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-39255 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2022-39255 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-39255 is a high-severity vulnerability in matrix-org matrix-ios-sdk, published on 28 Sep 2022."},"fix_prompt":"Check this codebase for CVE-2022-39255 and fix it if it is affected.\n\nWhat it is: CVE-2022-39255 is a high-severity vulnerability in matrix-org matrix-ios-sdk, published on 28 Sep 2022. \nExploitation: There is no known exploitation of CVE-2022-39255 in the wild and no public exploit code.\n\nAffected product: matrix-org matrix-ios-sdk. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-39255/ (Markdown: https://insights.sbomify.com/CVE-2022-39255/index.md)","id":"CVE-2022-39255","markdown":"https://insights.sbomify.com/CVE-2022-39255/index.md","name":"CVE-2022-39255","record":{"aliases":["GHSA-hw6g-j8v6-9hcm"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"software_development_kit","vendor":"matrix"}],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/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 iOS SDK allows developers to build iOS apps compatible with Matrix. Prior to version 0.23.19, an attacker cooperating with a malicious homeserver can construct messages that legitimately appear to have come from another person, without any indication such as a grey shield. Additionally, a sophisticated attacker cooperating with a malicious homeserver could employ this vulnerability to perform a targeted attack in order to send fake to-device messages appearing to originate from another user. This can allow, for example, to inject the key backup secret during a self-verification, to make a targeted device start using a malicious key backup spoofed by the homeserver. These attacks are possible due to a protocol confusion vulnerability that accepts to-device messages encrypted with Megolm instead of Olm. matrix-ios-sdk version 0.23.19 has been modified to only accept Olm-encrypted to-device messages. Out of caution, several other checks have been audited or added. This attack requires coordination between a malicious home server and an attacker, so those who trust their home servers do not need a workaround. To avoid malicious backup attacks, one should not verify one's new logins using emoji/QR verifications methods until patched.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Matrix iOS SDK vulnerable ton Olm/Megolm protocol confusion","id":"CVE-2022-39255","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2022"},"n_packages":0,"n_references":4,"next":{"headline":"Orckestra C1 CMS's deserialization of untrusted data allows for arbitrary code execution.","id":"CVE-2022-39256"},"packages":[],"prev":{"headline":"When matrix-nio receives forwarded room keys, the receiver doesn't check if it requested the key from the forwarder","id":"CVE-2022-39254"},"products":["matrix-ios-sdk"],"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":7.5,"headline":"matrix-android-sdk2 vulnerable to impersonation via forwarded Megolm sessions","id":"CVE-2022-39246","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":"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":null,"url":"https://insights.sbomify.com/CVE-2022-39255/"}