CVE-2022-39254
published high CVSS 3.1 · 8.6When matrix-nio receives forwarded room keys, the receiver doesn't check if it requested the key from the forwarder
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| poljar | — | matrix-nio< 0.20 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| poljar | matrix-nio | < 0.20 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-322 CWE-322: Key Exchange without Entity Authentication
- CWE-287 CWE-287: Improper Authentication
References
2Provider assertions
3GitHub_M · cna
When matrix-nio receives forwarded room keys, the receiver doesn't check if it requested the key from the forwarder
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 111d358b227ffff2977ea3056a9b1db6750ca1164e2b7a39c28bddb5c3a48b9b
- Ingested
- 23 Sep 2026, 08:02:02 UTC
- Source record
- Official CVE record