{"id":"CVE-2022-39254","published":"2022-09-29T14:35:10Z","modified":"2025-04-23T16:53:59Z","title":"When matrix-nio receives forwarded room keys, the receiver doesn't check if it requested the key from the forwarder","vendor":"poljar","product":"matrix-nio","tier":"tail","description":{"text":"matrix-nio is a Python Matrix client library, designed according to sans I/O principles. Prior to version 0.20, when a users requests a room key from their devices, the software correctly remember the request. Once they receive a forwarded room key, they accept it without checking who the room key came from. This allows homeservers to try to insert room keys of questionable validity, potentially mounting an impersonation attack. Version 0.20 fixes the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00693,"percentile":0.53849,"provenance":"source"},"cwes":[{"id":"CWE-322","name":"Key Exchange without Entity Authentication"},{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/poljar/matrix-nio/security/advisories/GHSA-w4pr-4vjg-hffh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/poljar/matrix-nio/commit/b1cbf234a831daa160673defd596e6450e9c29f0","tags":["x_refsource_MISC"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":10.77},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"poljar","affectedVersions":[{"vendor":"poljar","product":"matrix-nio","versions":["< 0.20"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:50:24.477414Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"matrix-nio","vulnerableRanges":["<0.20"],"patched":["0.20"],"from":["GHSA-w4pr-4vjg-hffh","PYSEC-2026-842"],"provenance":"source"}],"summary":{"text":"The matrix-nio Python Matrix client library, prior to version 0.20, accepts forwarded room keys without verifying that they came from the device the user actually requested them from, so the receiver never confirms the key's origin. An attacker operating a homeserver can send room keys of questionable validity to a client over the network without authentication or user interaction, enabling an impersonation attack.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:54:59Z"},"euvd":{"id":"EUVD-2022-6957","exploited":false,"provenance":"source"}}