CVE-2022-39254

Description

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.

Severity
HIGH
CVSS v3
8.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N · source cna
Exploit chance (EPSS)
0.678%
chance of exploitation in the next 30 days
higher than 52.9% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationnone
Automatableyes
Technical impactpartial
Scored2025-04-23

Timeline

  1. 2022-09-29Published by the CNA14:35 UTC
  2. 2022-09-30GitHub advisory published (GHSA-w4pr-4vjg-hffh)1 day after publication
  3. 2025-04-23CISA SSVC decision recorded937 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-w4pr-4vjg-hffh, affected packages:

PackageVulnerable versionsFixed in
PyPI matrix-niobefore 0.200.20

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
matrix-nio_project matrix-niobefore 0.20fixed in 0.200.20

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources