{"schemaVersion":3,"id":"CVE-2022-39246","aliases":["GHSA-2pvj-p485-cp3m"],"status":"published","duplicateOf":null,"title":null,"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)`.","dates":{"published":"2022-09-28T20:00:19.000Z","modified":"2025-04-23T16:54:47.328Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00866,"percentile":0.58052,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.1619999999999999,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00704},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00866,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00866,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00866,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00866,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00866,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00866,"percentile":0.58052}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00704,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00846,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00866,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00866,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00866,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00866,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00866,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00866,"percentile":0.58052}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-287","name":"Improper Authentication","description":"When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/287.html"},{"id":"CWE-322","name":"Key Exchange without Entity Authentication","description":"The product performs a key exchange with an actor without verifying the identity of that actor.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/322.html"}],"affected":[{"vendor":"matrix-org","product":"matrix-android-sdk2","name":"matrix-android-sdk2","label":"matrix-android-sdk2","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.5.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.1","eol":null,"hubHref":"/vendor/matrix-org/matrix-android-sdk2"},{"vendor":"matrix","product":"software_development_kit","name":"software development kit","label":"software_development_kit","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.5.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.1","eol":null,"hubHref":"/vendor/matrix/software_development_kit"},{"vendor":"org.matrix.android","product":"matrix-android-sdk2","name":"org.matrix.android:matrix-android-sdk2","label":"matrix-android-sdk2","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.matrix.android/matrix-android-sdk2","purlType":"maven","versions":[{"text":"< 1.5.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5.1","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/matrix-org/matrix-spec-proposals/pull/3061","label":"github.com/matrix-org/matrix-spec-proposals/pull/3061","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/matrix-org/matrix-android-sdk2/security/advisories/GHSA-2pvj-p485-cp3m","label":"github.com/matrix-org/matrix-android-sdk2/security/advisories/GHSA-2pvj-p485-cp3m","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Mitigation","Patch","Third Party Advisory"]},{"url":"https://github.com/matrix-org/matrix-android-sdk2/commit/77df720a238d17308deab83ecaa37f7a4740a17e","label":"github.com/matrix-org/matrix-android-sdk2/commit/77df720a238d17308deab83ecaa37f7a4740a17e","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://github.com/matrix-org/matrix-android-sdk2/releases/tag/v1.5.1","label":"github.com/matrix-org/matrix-android-sdk2/releases/tag/v1.5.1","hostname":"github.com","tags":["X Refsource MISC","WEB","Release Notes","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39246","label":"nvd.nist.gov/vuln/detail/CVE-2022-39246","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/matrix-org/matrix-android-sdk2","label":"github.com/matrix-org/matrix-android-sdk2","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-09-28T20:00:19.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-23T16:54:47.328Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T23:35:43.241Z","stale":false,"partial":false}}