Skip to main content
← All vulnerabilities
CVE-2022-39254PYSEC-2026-842GHSA-W4PR-4VJG-HFFH

When matrix-nio receives forwarded room keys, the receiver doesn't check if it requested the key from the forwarder

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.20
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • poljar matrix-nio

    fixed in 0.20

  • matrix-nioPyPI

    fixed in 0.20

References 2

GitHub · poljar/matrix-nio